0e4262ea33f411961aa36680e181c73797bdff4d
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
P4RSE: P4 Runtime In Swift Environment
P4RSE (yes, the acronym is a bit forced) is a P4 parser and runtime written in Swift. The project was started as a means to better learn Swift.
Status
Very, very alpha:
- Limited parts of the language can be parsed.
- Limited programs can be evaluated.
Please check back often!
Building
Generating Documentation
To build the documentation:
$ swift package generate-documentation
To preview the generated documentation:
$ swift package swift package --disable-sandbox preview-documentation --target <some target>
For more information, see the documentation for the Swift-DocC plugin.
Checking Format
To check the format:
$ swift-format --recursive -i Sources/
Languages
Swift
88.3%
JavaScript
10.7%
P4
0.9%