d5654de519
Expose 'condition' node
2024-04-23 15:47:30 +00:00
f267a5be95
Add multi-valued select expression
2024-04-23 15:43:10 +00:00
7d8f958a90
Add boolean-typed select values
2024-04-23 15:14:16 +00:00
3bc77aab19
Remove 'selection_type' alias
2024-04-23 15:13:53 +00:00
734f4452dd
Rename fields in 'select_value'
...
This aligns with upstream, and makes more sense given their usage.
2024-04-23 15:12:55 +00:00
c56e2eca70
Simplify 'select_value' rule
...
Upstream has greatly simplified the parsing of `select` expressions, in
order to add multi-valued `select`.
To this end, we remove the hard-coded list of function names, and accept
an arbitrary number of arguments.
2024-04-23 15:11:00 +00:00
e6a2757c51
Alias 'default_case' to 'select_case'
...
There's not much use in the node being a different name.
2024-04-13 18:23:06 +01:00
8db7b053f5
Add 'default' alias
...
This makes it appear in the tree as a named node.
2024-04-13 18:21:58 +01:00
b62fc19da9
Make comments a single node in the grammar
...
This looks to be a *strong* idiom in tree-sitter parsers.
2024-04-11 18:36:20 +01:00
3e4879a593
Add 'type' field to new-style module
...
I'd forgotten it...
2024-04-09 12:28:28 +01:00
eec21c84da
Add block comments
2024-04-08 20:15:59 +01:00
6d3dd1c8cb
Fix line comments syntax
...
Don't write parsers after midnight kids.
For the explanation: I mixed up the syntax bits between Blueprint and
textual protocol buffers...
2024-04-08 20:15:59 +01:00
3e46a9b762
Add 'operator' aliases
2024-04-08 20:15:59 +01:00
25924c3c5c
Add binary expression
2024-04-08 20:15:59 +01:00
2549f6f0db
Add 'property' alias
...
It makes the syntax tree more readable.
2024-04-08 20:15:59 +01:00
644f6483fe
Add 'element' field name to list
2024-04-08 20:15:59 +01:00
d232c089df
Add 'property' field name where relevant
2024-04-08 20:15:59 +01:00
8bd249fc90
Add modules
2024-04-08 20:15:59 +01:00
a78ad8139f
Add 'soong_config_variable' selection
2024-04-08 20:15:59 +01:00
12553c3bb8
Add 'select' expression
...
Except for 'soong_config_variable' which is not yet handled.
2024-04-08 20:15:59 +01:00
9dd109b90a
Add boolean literals
2024-04-08 20:15:59 +01:00
db2e88a539
Add map expressions
2024-04-08 20:15:59 +01:00
e13f15e8db
Add list expressions
2024-04-08 20:15:59 +01:00
f548b1d5ad
Add string literals
...
Once again, taking the rules more or less straight from tree-sitter-go.
2024-04-08 20:15:59 +01:00
57b38c01c0
Add negative integers
2024-04-08 20:15:59 +01:00
26b6891160
Add comments
2024-04-08 20:15:59 +01:00
bc06816b57
Add '+=' assignment
2024-04-08 20:15:59 +01:00
38bf9532ad
Add assignment
2024-04-08 20:15:59 +01:00
213f5afb11
Bootstrap project
2024-04-08 20:13:47 +01:00