func-section #1

Merged
sashakoshka merged 52 commits from func-section into main 2022-09-04 00:09:14 +00:00
Owner

This PR adds function section parsing, phrase parsing, and other various improvements.

This PR adds function section parsing, phrase parsing, and other various improvements.
sashakoshka added 52 commits 2022-09-04 00:08:58 +00:00
06a99ce232 Implement new tokens
I think this is all of them. The test will tell.
09706ef7f3 Commented out some things in func test case
Apparently, cBasicPhrases is somehow causing the mysterious nil
tree bug. this will be investigated further soon.
08f111ccbf Various fixes to function parsing
- Newlines are handled better
- Types are actually parsed
32e5b0ce98 Fixed parser test case
The octal literals with 9 in them were causing the parser to fail.
bcd44828dc Blocks under control flow phrases now parse
... except for switch cases. This will be added momentarily.
977ecba78c The entirety of phrase command parsing is in one function
This function is also responsible for setting a kind attribute on
the phrase. This will make the semantic analyzer's job easier.
sashakoshka merged commit 845c12c78b into main 2022-09-04 00:09:14 +00:00
sashakoshka deleted branch func-section 2022-09-04 00:09:14 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
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: fspl/arf#1
No description provided.