Add list support

This commit is contained in:
Jeff 2023-09-29 08:59:27 -04:00
parent f57570f14b
commit 20e6af2257
4 changed files with 723 additions and 787 deletions

@ -1 +1 @@
Subproject commit 3182e7c860ac74d1d4e2846152eef45c4111bd63 Subproject commit b308c1852f76d21ca52c69620975590fd4871818

View File

@ -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: $ => ";",

View File

@ -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",

File diff suppressed because it is too large Load Diff