type-section-rework #6

Merged
sashakoshka merged 46 commits from type-section-rework into main 2022-09-17 16:36:27 +00:00
Owner

This implements a new, more flexible syntax for defining and setting the default values of types. This syntax should be treated as somewhat temporary, but the underlying structure of the tree that results from this new syntax should be treated as somewhat final.

This implements a new, more flexible syntax for defining and setting the default values of types. This syntax should be treated as somewhat temporary, but the underlying structure of the tree that results from this new syntax should be treated as somewhat final.
sashakoshka added 46 commits 2022-09-17 16:36:13 +00:00
3e9ff7dcd6 Altered syntax tree accordingly
🦀🦀🦀 Object sections are gone 🦀🦀🦀 and members are now stored
in the type specifier.
e123e97357 Type attributes can have whitespace before them
By type attributes I mean things like :mut :N :<defaultValue>.
After the colon and before the attribute, whitespace is now
permitted. This makes syntax like

data ro nIntegerArrayInitialized:Int:16:mut:
	<3948 293 293049 948 912
	340 0 2304 0 4785 92>

possible.
ac0444bcc9 DataSection.ToString prints external specifier
Data section is now passing unit test! Woo!
f1cd9856ea Fixed TypeMember.ToString
Type section now passes test
ea92decfe7 Fixed meta test
Parser now passes all tests
sashakoshka merged commit 844b1562c4 into main 2022-09-17 16:36:27 +00:00
sashakoshka deleted branch type-section-rework 2022-09-17 16:36:27 +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#6
No description provided.