Will Hawkins
294f76acd4
compiler: Refactor Compiler To Remove Ambiguities
...
Continuous Integration / Grammar Tests (push) Successful in 39s
Continuous Integration / Library Format Tests (push) Successful in 1m51s
Continuous Integration / Library Tests (push) Failing after 4m44s
There were significant overlaps in the names of data structures
between the compiler and the language that made it necessary
to litter the code with P4Lang.xxxx. This refactor removes that
requirement in most places (Parser is ambiguous wherever TreeSitter
is used -- cannot avoid that!)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr >
2026-05-27 12:59:29 -04:00
Will Hawkins
bc51b4e280
compiler: Reworked Preprocessor To Support Better Error Messages
...
Can now support showing the trail of includes in an error
message.
Signed-off-by: Will Hawkins <hawkinsw@obs.cr >
2026-05-22 20:41:43 -04:00
Will Hawkins
041009a22e
compiler: Track/Report Relative Paths Names
...
Continuous Integration / Grammar Tests (push) Successful in 37s
Continuous Integration / Library Format Tests (push) Successful in 1m22s
Continuous Integration / Library Tests (push) Successful in 4m23s
When the user gives relative path names for p4 files, report
those in error messages (etc.). The SourceManager can/does
resolve those to absolute path names.
Signed-off-by: Will Hawkins <hawkinsw@obs.cr >
2026-05-22 04:27:37 -04:00
Will Hawkins
73b4f54bbe
Make Formatter Happy
...
Signed-off-by: Will Hawkins <hawkinsw@obs.cr >
2026-05-11 07:37:23 -04:00
Will Hawkins
0e2b13be93
compiler: Support Querying For Files In Preprocessed Code
...
Signed-off-by: Will Hawkins <hawkinsw@obs.cr >
2026-05-11 07:37:23 -04:00
Will Hawkins
f0f7a660a6
compiler: Add Ability to Annotate Preprocessed Source
...
Signed-off-by: Will Hawkins <hawkinsw@obs.cr >
2026-05-11 07:37:18 -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
754102d601
compiler: Add Preprocessor Support
...
TODO: Test that file names are properly tracked in included
files.
Signed-off-by: Will Hawkins <hawkinsw@obs.cr >
2026-05-07 23:06:41 -04:00