Regex
A regular expression matcher built using Swift.
Documentation
The auto-generated documentation is available here.
- Project specification
- Implementation document
- Testing document
- Test coverage
- Performance comparison with
grep
- User guide
- Syntax sheet
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.
- Install Xcode 10.2 from the App Store.
- Open the workspace (Regex.xcworkspace) in Xcode.
- Select the scheme for the command-line application.
- 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
- Install Swift 5.0, following the instructions under the title Linux.
- The tests and executable can the be run using the commands
swift test
andswift run
, respectively.
Docker
For those who have Docker installed and don't feel like installing Swift.
- Run
make container
in the root directory of the repository. - Once the container is up and running, the tests and executable can the be run using the commands
swift test
andswift run
, respectively.