Commit graph

27 commits

Author SHA1 Message Date
61f03a116c Add additional test for comments 2022-06-02 22:20:37 +02:00
b836117a21 Add literals highlighting 2022-06-02 22:20:37 +02:00
b9376ccd35 Add comment syntax highlighting 2022-06-02 22:20:37 +02:00
50a0eaa071 Add support for nested comments
Unfortunately, the 'extras' array expects single tokens only, so one
can't really use a recursive parsing rule to express nesting comments...
2022-06-02 22:20:37 +02:00
75bb2c7009 Add comments
For now it only supports non-nested comments. It seems like I *will*
need to write an external lexer to account for nesting properly.
2022-06-02 17:07:30 +02:00
e5e958cac9 Add tests for sequence expressions 2022-06-02 17:07:30 +02:00
76b558a982 Add return type to function declarations 2022-06-02 17:07:30 +02:00
1e5f7cd5d5 Add array types 2022-06-02 17:07:30 +02:00
dd0af53fa0 Add record types 2022-06-02 17:07:30 +02:00
506fab8896 Add type declarations
For now, simplified to type aliases only.
2022-06-02 17:07:30 +02:00
e898312c95 Add function declarations 2022-06-02 17:07:30 +02:00
3eb6b0a0d0 Add variable declarations 2022-06-02 17:07:30 +02:00
3cf701dbb1 Add top-level declarations 2022-06-02 17:07:30 +02:00
1449aa939f Add let expressions 2022-06-02 17:07:30 +02:00
d32fd4fd6c Add break expressions 2022-06-02 17:07:30 +02:00
bb6875a11d Add for expressions 2022-06-02 17:07:30 +02:00
26999482a3 Add while expressions 2022-06-02 17:07:30 +02:00
19c1f11414 Add if expressions 2022-06-02 17:07:30 +02:00
93cd163707 Add assignment expressions 2022-06-02 17:07:30 +02:00
6a3e4663ed Add lvalue expressions 2022-06-02 17:07:30 +02:00
8921953bbb Add function calls 2022-06-02 17:07:30 +02:00
136924cb26 Add record expression 2022-06-02 17:07:30 +02:00
babf666642 Add array expression 2022-06-02 17:07:30 +02:00
02f83784b1 Use explicit 'nil_literal' rule
Makes the dumped AST more readable, and will probably help in writing
future queries.
2022-06-02 17:07:30 +02:00
0bc7e59fc7 Disable keyword extraction
For now bare keywords are errors, since we have not included them as
valid expressions.
2022-06-02 17:07:30 +02:00
03fa0427cf Add arithmetic expressions 2022-06-02 17:07:30 +02:00
e7ba93870e Add simple atoms 2022-06-01 22:19:04 +02:00