xoudini / regex

A regular expression matcher built using Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regex

A regular expression matcher built using Swift.

Documentation

The auto-generated documentation is available here.

Reports

Running the project

The latest compiled binaries for macOS and Linux can be found in the latest release.

macOS

The most straight-forward way is to simply install Xcode, but downloading the Swift distribution should be enough.

  1. Install Xcode 10.2 from the App Store.
  2. Open the workspace (Regex.xcworkspace) in Xcode.
  3. Select the scheme for the command-line application.
  4. Tests can be run with the key combination ⌘ + U. The program can be executed with the key combination ⌘ + R, or by pressing the ▶ button.

Linux

  1. Install Swift 5.0, following the instructions under the title Linux.
  2. The tests and executable can the be run using the commands swift test and swift run, respectively.

Docker

For those who have Docker installed and don't feel like installing Swift.

  1. Run make container in the root directory of the repository.
  2. Once the container is up and running, the tests and executable can the be run using the commands swift test and swift run, respectively.

About

A regular expression matcher built using Swift.


Languages

Language:Swift 95.9%Language:Makefile 2.7%Language:Shell 1.1%Language:Objective-C 0.2%Language:Dockerfile 0.1%