3a737c05d5
Slightly change the valid test input file
Validate the build / validate-build (push) Successful in 26s
2025-04-02 11:36:33 +02:00
44254614c1
Fix parse_directive grammar rule
2025-04-02 11:36:33 +02:00
6230ade289
Add registers and fix section primitive parser
2025-04-02 11:36:33 +02:00
a436f23601
Fix parser loops in parse_any and parse_consecutive
2025-04-02 11:36:33 +02:00
3e325e4abd
Modify main to use the new print ast functionality
2025-04-02 11:36:33 +02:00
c427adbd22
Add more grammar rules to the parser
2025-04-02 11:36:33 +02:00
1bb9425546
Add a parser combinator to parse a delimited list
2025-04-02 11:36:33 +02:00
5c620870c1
make parse_success always skip past trivia in the tokenlist
2025-04-02 11:36:33 +02:00
110a9bc31e
TODO: REVIEW ME AND WRITE PROPER MESSAGE
...
Fix lexer issue where consuming n tokens always fails if there are n
tokens and always succeeds if they aren't n tokens
2025-04-02 11:36:33 +02:00
3af255baeb
Use new validator function for parse_token calls on all primitives
...
Also adds new validated primitives for NODE_SECTION and NODE_REGISTER
2025-04-02 11:36:33 +02:00
d13b6102c1
Fix incorrect error returned in parse_consecutive
2025-04-02 11:36:33 +02:00
4a4523a1f0
Extend parse_token to accept an optional validator function
2025-04-02 11:36:33 +02:00
2733d4fd7e
Expose err_parse_no_match in parser_util.h
2025-04-02 11:36:33 +02:00
cbe49b2db5
Add basic parser combinators
2025-04-02 11:36:33 +02:00
b92248ec47
Add "primitive" parsers for all the semantic tokens in the lexer grammar
2025-04-02 11:36:33 +02:00
018bb6ef9a
Add basic parser utilities
2025-04-02 11:36:33 +02:00
85fd507004
Add functions to skip over trivia in a tokenlist
2025-04-02 11:36:33 +02:00
0f9e1886cb
Fix parse_token to add the correct information to a parse node
2025-04-02 11:36:33 +02:00
d8f3838c50
Partial parser implementation
2025-04-02 11:36:33 +02:00
d3881ac19d
FIXME REORDER COMMIT -- Change main so it can parse the ast
...
FIXME THIS COMMIT NEEDS TO BE REORDERED
FIXME THIS COMMIT NEEDS TO BE REORDERED
FIXME THIS COMMIT NEEDS TO BE REORDERED
FIXME THIS COMMIT NEEDS TO BE REORDERED
2025-04-02 11:36:33 +02:00
e5be1a527e
TODO: REVIEW THIS FUNCTION Add function to print AST
2025-04-02 11:36:33 +02:00
935da30257
Add basic AST functionality
2025-04-02 11:35:53 +02:00