data-section #3

Merged
sashakoshka merged 42 commits from data-section into main 2022-08-17 12:21:20 -06:00
Owner

Changes to parser and lexer to allow for data section parsing, as well as some necessary fixes to error reporting.

Changes to parser and lexer to allow for data section parsing, as well as some necessary fixes to error reporting.
sashakoshka added 42 commits 2022-08-17 12:21:01 -06:00
Previously [[something something].something] would have been syntactically
correct. This can lead to ugly and cluttered syntax due to violating the one
thing per line guideline (that I've forgotten to write down) and would make the
parser incredibly convoluded. Member selection in arf is not an operator and
should not be treated as such. It would be much better to just use variables for
this.
Created new cases involving mutable data and phrase initialization arguments,
and always print out the correct and parsed trees.
Lexer gave wrong token locations and would skip an extra rune when digraph was
not found.
This makes the output of ToString methods deterministic, and as such they can be
used for testing.
Phrase parsing is out of scope for this branch. It will be implemented at the
same time as function parsing.
sashakoshka merged commit e069569c3c into main 2022-08-17 12:21:20 -06:00
sashakoshka deleted branch data-section 2022-08-17 12:21:20 -06:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sashakoshka/arf#3
No description provided.