Fix zero operand parser bugs #17

Merged
omicron merged 4 commits from fix_parser_bugs into main 2025-04-16 11:32:47 +00:00
Owner

Fix issues #15 and #16

Fix issues #15 and #16
omicron added 4 commits 2025-04-16 11:32:20 +00:00
When two identifiers follow eachother it could be two instruction
mnemonics or one instruction mnemonic and one operand. To fix this
TOKEN_NEWLINE has been reintroduced as a semantic token. The grammar has
been changed to allow empty statements and every instruction and
directive has to end in a newline. Labels do not have to end in a
newline.

In addition to updating the grammar, the implementation of tokenlist,
ast and parser has been updated to reflect these changes.
Add regression test for parse zero operands at eof
All checks were successful
Validate the build / validate-build (push) Successful in 30s
00272d69bf
omicron merged commit 00272d69bf into main 2025-04-16 11:32:47 +00:00
omicron deleted branch fix_parser_bugs 2025-04-16 11:32:47 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: omicron/oas#17
No description provided.