Generate parser

This commit is contained in:
the-mikedavis 2022-02-13 19:21:30 +00:00 committed by GitHub Actions
parent 08dbe8978c
commit a11a686303
3 changed files with 326417 additions and 324587 deletions

74
src/grammar.json generated
View File

@ -167,6 +167,10 @@
"type": "SYMBOL",
"name": "map"
},
{
"type": "SYMBOL",
"name": "_nullary_operator"
},
{
"type": "SYMBOL",
"name": "unary_operator"
@ -804,6 +808,10 @@
"type": "STRING",
"value": "//"
},
{
"type": "STRING",
"value": ".."
},
{
"type": "STRING",
"value": "**"
@ -928,10 +936,6 @@
"type": "STRING",
"value": "---"
},
{
"type": "STRING",
"value": ".."
},
{
"type": "STRING",
"value": "<>"
@ -2287,6 +2291,10 @@
"type": "STRING",
"value": "//"
},
{
"type": "STRING",
"value": ".."
},
{
"type": "STRING",
"value": "**"
@ -2411,10 +2419,6 @@
"type": "STRING",
"value": "---"
},
{
"type": "STRING",
"value": ".."
},
{
"type": "STRING",
"value": "<>"
@ -2784,6 +2788,19 @@
}
]
},
"_nullary_operator": {
"type": "ALIAS",
"content": {
"type": "PREC",
"value": 160,
"content": {
"type": "STRING",
"value": ".."
}
},
"named": true,
"value": "operator_identifier"
},
"unary_operator": {
"type": "CHOICE",
"members": [
@ -3651,10 +3668,6 @@
"type": "STRING",
"value": "---"
},
{
"type": "STRING",
"value": ".."
},
{
"type": "STRING",
"value": "<>"
@ -3673,6 +3686,39 @@
]
}
},
{
"type": "PREC_RIGHT",
"value": 160,
"content": {
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "left",
"content": {
"type": "SYMBOL",
"name": "_expression"
}
},
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "STRING",
"value": ".."
}
},
{
"type": "FIELD",
"name": "right",
"content": {
"type": "SYMBOL",
"name": "_expression"
}
}
]
}
},
{
"type": "PREC_LEFT",
"value": 170,
@ -4030,10 +4076,6 @@
"type": "STRING",
"value": "---"
},
{
"type": "STRING",
"value": ".."
},
{
"type": "STRING",
"value": "<>"

80
src/node-types.json generated
View File

@ -79,6 +79,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -177,6 +181,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -281,6 +289,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -407,6 +419,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -810,6 +826,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -918,6 +938,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -1021,6 +1045,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -1128,6 +1156,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -1274,6 +1306,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -1445,6 +1481,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -1556,6 +1596,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -1700,6 +1744,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -1812,6 +1860,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -1934,6 +1986,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -2060,6 +2116,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -2187,6 +2247,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -2395,6 +2459,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -2626,6 +2694,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -2864,6 +2936,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true
@ -2975,6 +3051,10 @@
"type": "nil",
"named": true
},
{
"type": "operator_identifier",
"named": true
},
{
"type": "quoted_atom",
"named": true

650850
src/parser.c generated

File diff suppressed because it is too large Load Diff