aboutsummaryrefslogtreecommitdiff
path: root/src/grammar.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar.json')
-rw-r--r--src/grammar.json82
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"
+ }
+ ]
}
]
},