Will Hawkins cfe78a9b29 Semicolon Cleanup
1. Semicolons were required in the wrong spot.
2. Make semicolons "invisible" (from the tree-sitter perspective).

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-27 08:23:27 -05:00
2026-02-24 01:00:32 -05:00
2026-02-24 01:00:32 -05:00
2026-02-27 08:23:27 -05:00
2026-02-27 08:23:27 -05:00
2026-02-27 08:23:27 -05:00
2026-01-14 12:49:49 -05:00
2026-01-23 23:51:49 -05:00
2026-01-23 23:51:49 -05:00
2026-02-24 00:28:41 -05:00
2026-02-24 01:00:32 -05:00

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:

  1. Limited parts of the language can be parsed.
  2. 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/
S
Description
No description provided
Readme GPL-3.0 1.3 MiB
Languages
Swift 88.3%
JavaScript 10.7%
P4 0.9%