Commit Graph

153 Commits

Author SHA1 Message Date
Will Hawkins 377f40447f Add update Methods for Compilation Context
update method will allow the creation of a new compilation context
based on the current one with new types/names.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-13 07:03:31 -04:00
Will Hawkins 636db140ce Untrack One-off Test File
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-13 06:27:29 -04:00
Will Hawkins 2f7d05a3fd Refactor Compilation Interface
Compilation interface(s) now contain a compilation context.
The change will make it easier to expand on what each step
of the compilation process needs to know to complete its task
without having to make major changes to the interface.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-13 06:25:30 -04:00
Will Hawkins df841a0a1b Update README.md
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-10 06:04:23 -04:00
Will Hawkins 271092359c Make Formatter Happy
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-10 05:53:11 -04:00
Will Hawkins 4e9927c601 Add Tree Sitter Tests for Annotations (And General Test Updates)
Update Tests

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-10 05:52:04 -04:00
Will Hawkins 4269104379 Refactor Parser Interfaces
Do not pass around the MutableTree -- now that we are not
using queries for walking the AST, it is unnecessary.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-10 05:52:04 -04:00
Will Hawkins 829bfb6ac8 Refactor Program Compilation
Do not use query.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-10 05:52:04 -04:00
Will Hawkins f82c69e4f9 Add Tests For Unsupported Features
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-10 05:52:04 -04:00
Will Hawkins 3188b52965 Refactor Parsers and Parser States
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-10 03:56:18 -04:00
Will Hawkins 7c7416fa64 Make Formatter Happy
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-07 02:45:22 -05:00
Will Hawkins 0b84951f8b Fix String Interpolation Warning
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-07 01:14:13 -05: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 570438b6ba Attempt To Enable Experimental Feature
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-07 00:58:47 -05:00
Will Hawkins 19b983653b Attempt To Enable Experimental Feature
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-07 00:39:26 -05:00
Will Hawkins cb6881e1a2 Attempt To Enable Experimental Feature
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-07 00:38:27 -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 61865e7cf9 Update CI/CD Workflow
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-06 23:56:26 -05:00
Will Hawkins 81b9345c7f Make Formatter Happy
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-06 21:40:37 -05:00
Will Hawkins eff19df968 Completely Refactor Execution
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-06 21:40:19 -05:00
Will Hawkins f96350f89d Make Formatter Happy
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-06 08:03:07 -05:00
Will Hawkins c3b3be77eb Update Compiler To Use Macros
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-06 08:02:35 -05:00
Will Hawkins 8ca03cdca5 Add booleanLiteralExpression To Make Compiling Easier
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-06 08:01:41 -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 991e20917c P4 Parser States Do Not Have Local Elements
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-02 08:32:09 -05:00
Will Hawkins 59d56e7b73 Make Formatter Happy
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-02 08:26:37 -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 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
Will Hawkins 1495074459 Add UseErrorResult Macro
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-27 08:22:50 -05:00
Will Hawkins 2c5bfc3e1c Start Moving Away From Queries
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-27 06:16:14 -05:00
Will Hawkins 2c7f71dbd4 Make Formatter Happy
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 06:10:33 -05:00
Will Hawkins a2335a01ed Initial Support For If Statements
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 06:08:12 -05:00
Will Hawkins 3752dd01ab Add Formatting To CI/CD
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 01:00:32 -05:00
Will Hawkins 5dbb8d3d60 Make Formatter Happy
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:44:04 -05:00
Will Hawkins b4c5ce55e1 Remove Debugging Print
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:30:40 -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 f9353c683e Use Generic Scope for Lexical Scope
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:28:04 -05:00
Will Hawkins d0d00857ff Generic Scope Type
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:27:29 -05:00
Will Hawkins d9c8c5aeb0 Refactor Runtime
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-19 22:50:19 -05:00
Will Hawkins 3693bdc02d Start Evaluation
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-10 03:37:57 -05:00
Will Hawkins 0dd5ce4be3 Update README.md 2026-02-06 18:46:07 -05:00
Will Hawkins 5f956fed45 Update README.md
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-06 18:42:33 -05:00
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