diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-22 22:41:37 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-22 22:41:37 +0200 |
commit | 6d5f28ada1b0452dad88f1954fd4434ad4d2b109 (patch) | |
tree | 212183e73a2c3ca3a3170d0a0ecd2ad57cac514b /src/grammar.json | |
parent | cf97e10eae80d4be90a771dcec38ce6b3a119173 (diff) |
Fix some grammar issues
Diffstat (limited to 'src/grammar.json')
-rw-r--r-- | src/grammar.json | 82 |
1 files changed, 50 insertions, 32 deletions
diff --git a/src/grammar.json b/src/grammar.json index 5132fed..35347d4 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -32,28 +32,33 @@ "type": "CHOICE", "members": [ { - "type": "FIELD", - "name": "name", - "content": { - "type": "SYMBOL", - "name": "ident" - } - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "FIELD", - "name": "attrs", - "content": { - "type": "SYMBOL", - "name": "attr_list" - } + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "name", + "content": { + "type": "SYMBOL", + "name": "ident" + } + }, + { + "type": "CHOICE", + "members": [ + { + "type": "FIELD", + "name": "attrs", + "content": { + "type": "SYMBOL", + "name": "attr_list" + } + }, + { + "type": "BLANK" + } + ] + } + ] }, { "type": "BLANK" @@ -194,16 +199,29 @@ } }, { - "type": "STRING", - "value": "=" - }, - { - "type": "FIELD", - "name": "value", - "content": { - "type": "SYMBOL", - "name": "string" - } + "type": "CHOICE", + "members": [ + { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "=" + }, + { + "type": "FIELD", + "name": "value", + "content": { + "type": "SYMBOL", + "name": "string" + } + } + ] + }, + { + "type": "BLANK" + } + ] } ] }, |