Commit Graph

19 Commits

Author SHA1 Message Date
Will Hawkins 6c23cf7458 Refactor P4Compiler to P4Parser
Continuous Integration / Grammar Tests (push) Successful in 36s
Continuous Integration / Library Format Tests (push) Successful in 1m46s
Continuous Integration / Library Tests (push) Successful in 4m23s
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-06-12 23:23:54 -04:00
Will Hawkins b9ff228362 Start Rewrite
Continuous Integration / Grammar Tests (push) Successful in 3m54s
Continuous Integration / Library Format Tests (push) Failing after 4m49s
Continuous Integration / Library Tests (push) Successful in 7m40s
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-06-12 06:24:53 -04:00
Will Hawkins d28ccd79e4 common, compiler: Upgrade to SystemPackage
Continuous Integration / Grammar Tests (push) Successful in 35s
Continuous Integration / Library Format Tests (push) Successful in 1m16s
Continuous Integration / Library Tests (push) Successful in 4m11s
For cross-platform support.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-05-07 23:43:29 -04:00
Will Hawkins 333270deee cli: Add Initial Cli Work
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-05-04 11:31:44 -04:00
Will Hawkins 0f0662709e compiler, testing: Build System for Compilation
The compilation code was written as a precursor for implementation
with macros. The updates in this commit make the switch.

There is still plenty to do:

1. Comment Walker.
2. Comment Macros.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-04-27 08:39:40 -04:00
Will Hawkins 0e4262ea33 Remove Extraneous Experimental Flags
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-07 01:13:48 -05:00
Will Hawkins db520fe0a6 Attempt To Enable Experimental Feature
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-07 00:30:12 -05:00
Will Hawkins f778ee384e Add NodeType-Checking Macros
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-06 07:47:05 -05:00
Will Hawkins 6dba17c97a Refactor Parsing -> Compiling
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-02 08:25:29 -05:00
Will Hawkins 64a0fe4255 Refactor Parsing/Runtime
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:28:41 -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 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 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 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 d6d5cc8df7 Runtime Work
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-23 23:30:28 -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 08beba6cb1 Initial Commit
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-14 12:49:49 -05:00