Commit Graph

61 Commits

Author SHA1 Message Date
Will Hawkins bb08a350a1 Fix Typo in README.md
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-06 12:07:46 -05:00
Will Hawkins fe01197c25 Swift 6.2.3 Not Available in CI/CD
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-06 07:52:20 -05:00
Will Hawkins dc2849f722 CI/CD On Proper Swift Version
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-06 07:48:23 -05:00
Will Hawkins 90135d7f24 Rename Package to p4rse
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-06 07:48:05 -05:00
Will Hawkins c3fdfb62e8 Refactor Type System
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-06 07:46:18 -05:00
Will Hawkins bc700509c1 Add Instantations to Grammar
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-06 07:45:29 -05:00
Will Hawkins 285ba829cb Add Runtime As Dependency of Parser
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-03 08:51:26 -05:00
Will Hawkins 37ceb31834 Add README.md
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-03 08:30:49 -05:00
Will Hawkins 989c9b1212 Refactor
Refactor into four major components:

1. Common: Things shared among all other components.
2. Lang: P4-language-related components.
3. Runtime: Components required to run a P4 program.
4. Parser: Components for parsing a P4 program from source.

Other components:

1. Macros
2. Tests
3. TreeSitterExtensions: Extra tree sitter functionality

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-03 08:22:58 -05:00
Will Hawkins 1203c0c90a Improve Parsing of P4 Parsers And Continue Runtime Implementation
1. Parsing of P4 Parsers was broken: Multiple local elements and
statements were not allowed.
2. Support more functionality on scopes.
3. Refactor variable/identifier.
4. Add more tests.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-30 08:33:40 -05:00
Will Hawkins 9b307bcd66 Customize swift-format Configuration
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-30 08:33:40 -05:00
Will Hawkins 23b775bf4f Conditionally Support CustomStringConvertible on Result
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-30 08:33:40 -05:00
Will Hawkins 27332870d9 Factor Tree-Sitter Extensions
Don't build.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-30 08:33:40 -05:00
Will Hawkins 78a1121a3c Add Testing Macros
Don't build.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-30 08:33:32 -05:00
Will Hawkins d8f6ff3b0b Update Variable Declarations
Refactor a literal '=' to a production and allow expressions
of string-literal type.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-30 08:24:44 -05:00
Will Hawkins 4c5b75bb4f Remove Extraneous CustomStringConvertible
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-23 23:54:28 -05:00
Will Hawkins 995abcc470 Add License Information
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-23 23:51:49 -05:00
Will Hawkins d6d5cc8df7 Runtime Work
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-23 23:30:28 -05:00
Will Hawkins f9ed3e7fbd Support (One) Local Element
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-23 23:29:38 -05:00
Will Hawkins f81f00103e Update CI/CD -- Don't Check Grammar Twice
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:26:16 -05:00
Will Hawkins d6fda0595e Add empty queries directory (Tree Sitter)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:24:07 -05:00
Will Hawkins 441ce87559 Update CI/CD (5)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:17:34 -05:00
Will Hawkins 4cb259c6f2 Update CI/CD (4)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:17:04 -05:00
Will Hawkins 7b930dcca3 Update CI/CD (3)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:14:44 -05:00
Will Hawkins 5fd21b43eb Update CI/CD (2)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:14:11 -05:00
Will Hawkins 1da4c509d4 Update CI/CD (1)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:12:12 -05:00
Will Hawkins 2a6dfa7a4d Update CI/CD
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:11:18 -05:00
Will Hawkins 4bec71dcf4 Refactor Library And Start Runtime
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-20 07:10:58 -05:00
Will Hawkins 45a8baa323 Add Reusable Workflows (12)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 15:03:34 -05:00
Will Hawkins 1435119cb0 Add Reusable Workflows (12)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 15:02:18 -05:00
Will Hawkins 0b3b11594e Add Reusable Workflows (11)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:59:54 -05:00
Will Hawkins 5d5ed96492 Add Reusable Workflows (10)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:58:35 -05:00
Will Hawkins 448903ac90 Add Reusable Workflows (9)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:54:34 -05:00
Will Hawkins d76a4b5bc6 Add Reusable Workflows (8)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:47:13 -05:00
Will Hawkins a7faa762c2 Add Reusable Workflows (7)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:46:06 -05:00
Will Hawkins 1a486f1d9b Add Reusable Workflows (6)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:43:59 -05:00
Will Hawkins fa9873db9b Add Reusable Workflows (5)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:41:50 -05:00
Will Hawkins 031bb06523 Add Reusable Workflows (4)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:39:55 -05:00
Will Hawkins 3628c35d66 Add Reusable Workflows (3)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:33:30 -05:00
Will Hawkins 13d9ddf659 Add Reusable Workflows (2)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:19:45 -05:00
Will Hawkins fc4cbb0814 Add Reusable Workflows
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 14:17:56 -05:00
Will Hawkins 79e890f757 Add CI For Grammar (17)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:38:55 -05:00
Will Hawkins 4c1a823117 Add CI For Grammar (16)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:30:21 -05:00
Will Hawkins 33f350a423 Add CI For Grammar (15)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:21:03 -05:00
Will Hawkins c5c7bd078d Add CI For Grammar (14)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:19:19 -05:00
Will Hawkins d36777f772 Add CI For Grammar (13)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:16:52 -05:00
Will Hawkins 3489e2d8c7 Add CI For Grammar (12)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:16:12 -05:00
Will Hawkins 15be016e67 Add CI For Grammar (11)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:09:06 -05:00
Will Hawkins a9be242b9f Add CI For Grammar (10)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:04:53 -05:00
Will Hawkins 65583a7a42 Add CI For Grammar (9)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-17 01:01:19 -05:00