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",
|
"type": "SYMBOL",
|
||||||
"value": 1,
|
"name": "value"
|
||||||
"content": {
|
|
||||||
"type": "SYMBOL",
|
|
||||||
"name": "value"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "PREC",
|
"type": "SYMBOL",
|
||||||
"value": 2,
|
"name": "identifier"
|
||||||
"content": {
|
|
||||||
"type": "SYMBOL",
|
|
||||||
"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