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)),
|
open_statement: $ => prec.left(seq($.expression)),
|
||||||
|
|
||||||
expression: $ => choice(
|
expression: $ => choice(
|
||||||
|
$.value,
|
||||||
|
$.identifier,
|
||||||
prec(0, $.control_flow),
|
prec(0, $.control_flow),
|
||||||
prec(1, $.value),
|
prec(1, $.operation),
|
||||||
prec(2, $.identifier),
|
|
||||||
prec(3, $.operation),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
close: $ => ";",
|
close: $ => ";",
|
||||||
|
@ -92,20 +92,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "PREC",
|
|
||||||
"value": 1,
|
|
||||||
"content": {
|
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "value"
|
"name": "value"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "PREC",
|
|
||||||
"value": 2,
|
|
||||||
"content": {
|
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "identifier"
|
"name": "identifier"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "PREC",
|
"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