Add list support
This commit is contained in:
parent
f57570f14b
commit
20e6af2257
@ -1 +1 @@
|
||||
Subproject commit 3182e7c860ac74d1d4e2846152eef45c4111bd63
|
||||
Subproject commit b308c1852f76d21ca52c69620975590fd4871818
|
@ -21,10 +21,10 @@ module.exports = grammar({
|
||||
open_statement: $ => prec.left(seq($.expression)),
|
||||
|
||||
expression: $ => choice(
|
||||
$.value,
|
||||
$.identifier,
|
||||
prec(0, $.control_flow),
|
||||
prec(1, $.value),
|
||||
prec(2, $.identifier),
|
||||
prec(3, $.operation),
|
||||
prec(1, $.operation),
|
||||
),
|
||||
|
||||
close: $ => ";",
|
||||
|
@ -92,20 +92,12 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "PREC",
|
||||
"value": 1,
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "value"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "PREC",
|
||||
"value": 2,
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "PREC",
|
||||
|
1486
src/parser.c
1486
src/parser.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user