Skip to content

Commit

Permalink
Revert "regenerate the parser"
Browse files Browse the repository at this point in the history
This reverts commit 88937a3.
  • Loading branch information
resolritter committed Apr 24, 2023
1 parent 88937a3 commit da20ce4
Show file tree
Hide file tree
Showing 4 changed files with 106,236 additions and 93,047 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
run: |
git add .
if output="$(git status --porcelain=v2)"; then
files_changed_msg="$output"
diff="$(git diff --cached --color=never)"
echo "${diff::1000}"
if [ ${#diff} -gt 1000 ]; then
echo "-- TRUNCATED --"$'\n'
fi
files_changed_msg="$output"
else
fail_code=$?
fi
Expand Down
140 changes: 75 additions & 65 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1912,13 +1912,43 @@
"type": "SYMBOL",
"name": "_PrimaryTypeExpr"
},
{
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "_PrimaryTypeExpr"
},
{
"type": "SYMBOL",
"name": "FnCallArguments"
}
]
},
{
"type": "FIELD",
"name": "variable_type_function",
"content": {
"type": "SYMBOL",
"name": "IDENTIFIER"
}
},
{
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "function_call",
"content": {
"type": "SYMBOL",
"name": "IDENTIFIER"
}
},
{
"type": "SYMBOL",
"name": "FnCallArguments"
}
]
}
]
},
Expand All @@ -1932,12 +1962,21 @@
"name": "SuffixOp"
},
{
"type": "SYMBOL",
"name": "FieldOrFnCall"
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "SuffixOp"
},
{
"type": "SYMBOL",
"name": "FnCallArguments"
}
]
},
{
"type": "SYMBOL",
"name": "FnCallArguments"
"name": "FieldOrFnCall"
}
]
}
Expand Down Expand Up @@ -4102,58 +4141,6 @@
}
]
},
"_SentinelTerminatedExpr": {
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "IDENTIFIER"
},
{
"type": "STRING",
"value": ":"
},
{
"type": "SYMBOL",
"name": "_Expr"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "_Expr"
},
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ":"
},
{
"type": "SYMBOL",
"name": "_Expr"
}
]
},
{
"type": "BLANK"
}
]
}
]
}
]
},
"SuffixOp": {
"type": "CHOICE",
"members": [
Expand Down Expand Up @@ -4183,7 +4170,28 @@
"members": [
{
"type": "SYMBOL",
"name": "_SentinelTerminatedExpr"
"name": "_Expr"
},
{
"type": "BLANK"
}
]
},
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ":"
},
{
"type": "SYMBOL",
"name": "_Expr"
}
]
},
{
"type": "BLANK"
Expand Down Expand Up @@ -5483,15 +5491,17 @@
{
"type": "IMMEDIATE_TOKEN",
"content": {
"type": "STRING",
"value": "{"
}
},
{
"type": "IMMEDIATE_TOKEN",
"content": {
"type": "STRING",
"value": "}"
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "{"
},
{
"type": "STRING",
"value": "}"
}
]
}
}
]
Expand Down
14 changes: 10 additions & 4 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,16 @@
}
]
},
"function_call": {
"multiple": false,
"required": false,
"types": [
{
"type": "IDENTIFIER",
"named": true
}
]
},
"variable_type_function": {
"multiple": false,
"required": false,
Expand Down Expand Up @@ -2586,10 +2596,6 @@
"type": "ErrorUnionExpr",
"named": true
},
{
"type": "IDENTIFIER",
"named": true
},
{
"type": "IfExpr",
"named": true
Expand Down
Loading

0 comments on commit da20ce4

Please sign in to comment.