Commit graph

7 commits

Author SHA1 Message Date
James Westman
878ff1b37b
Change menu item shorthand syntax
I'm changing the syntax a bit because I want it to be more general in
the future.
2021-11-28 23:01:51 -06:00
James Westman
0afa62654d
Fix error handling on keyword blocks
Some blocks (menu, layout, etc) would emit an error if they didn't find
an opening brace, which would fail if, for example, you had an object
with ID "menu" and tried to use it as a property value.
2021-11-24 21:43:45 -06:00
James Westman
097c7df326
Fix issue with menus
Trying to use a menu as an object would fail because it didn't have a
gir_class.
2021-11-24 21:35:01 -06:00
James Westman
b776163cd7
Add accessibility properties 2021-11-12 00:51:01 -06:00
James Westman
80b5698533
Improve value parsing
Parse values as different AST nodes rather than just strings. This
allows for better validation and will eventually make expressions
possible.
2021-11-01 21:51:25 -05:00
James Westman
5f0eef5f2e
Add compilation tests
Added a set of test inputs and expected outputs, for regression testing.
2021-10-31 23:36:20 -05:00
James Westman
bfd9daf6a9
Reorganize the parser/AST code
The code is now organized by syntax: `menu {}` in one file, `style` in
another, etc. This should make it easier to add syntax in the future.
2021-10-31 21:42:41 -05:00