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

File diff suppressed because it is too large Load Diff