Implement lists

This commit is contained in:
Jeff 2023-10-02 15:20:00 -04:00
parent 80f5fce14a
commit 89a9f6ebb9
5 changed files with 352 additions and 318 deletions

@ -1 +1 @@
Subproject commit 597d6bd8b8aed37512ef8b27a4e2d5dea52d7cad
Subproject commit 41483f6b84b83488ff02512bfad8719cd62481fc

View File

@ -72,7 +72,7 @@ module.exports = grammar({
list: $ => seq(
'[',
repeat1(seq($.value, optional(','))),
repeat1(seq(field('item', $.value), optional(','))),
']'
),

View File

@ -258,8 +258,12 @@
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "value"
"type": "FIELD",
"name": "item",
"content": {
"type": "SYMBOL",
"name": "value"
}
},
{
"type": "CHOICE",

View File

@ -200,16 +200,17 @@
{
"type": "list",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "value",
"named": true
}
]
"fields": {
"item": {
"multiple": true,
"required": true,
"types": [
{
"type": "value",
"named": true
}
]
}
}
},
{

File diff suppressed because it is too large Load Diff