Implement lists
This commit is contained in:
parent
80f5fce14a
commit
89a9f6ebb9
@ -1 +1 @@
|
|||||||
Subproject commit 597d6bd8b8aed37512ef8b27a4e2d5dea52d7cad
|
Subproject commit 41483f6b84b83488ff02512bfad8719cd62481fc
|
@ -72,7 +72,7 @@ module.exports = grammar({
|
|||||||
|
|
||||||
list: $ => seq(
|
list: $ => seq(
|
||||||
'[',
|
'[',
|
||||||
repeat1(seq($.value, optional(','))),
|
repeat1(seq(field('item', $.value), optional(','))),
|
||||||
']'
|
']'
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -258,8 +258,12 @@
|
|||||||
"type": "SEQ",
|
"type": "SEQ",
|
||||||
"members": [
|
"members": [
|
||||||
{
|
{
|
||||||
|
"type": "FIELD",
|
||||||
|
"name": "item",
|
||||||
|
"content": {
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "value"
|
"name": "value"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "CHOICE",
|
"type": "CHOICE",
|
||||||
|
@ -200,8 +200,8 @@
|
|||||||
{
|
{
|
||||||
"type": "list",
|
"type": "list",
|
||||||
"named": true,
|
"named": true,
|
||||||
"fields": {},
|
"fields": {
|
||||||
"children": {
|
"item": {
|
||||||
"multiple": true,
|
"multiple": true,
|
||||||
"required": true,
|
"required": true,
|
||||||
"types": [
|
"types": [
|
||||||
@ -211,6 +211,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "logic",
|
"type": "logic",
|
||||||
|
637
src/parser.c
637
src/parser.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user