Generate parser

This commit is contained in:
jonatanklosko 2021-10-14 18:10:50 +00:00 committed by GitHub Actions
parent 5d3f7edbc2
commit f5d7bda543
3 changed files with 39 additions and 12 deletions

27
src/grammar.json generated
View File

@ -1005,8 +1005,13 @@
"type": "SEQ", "type": "SEQ",
"members": [ "members": [
{ {
"type": "SYMBOL", "type": "ALIAS",
"name": "_quoted_atom_start" "content": {
"type": "SYMBOL",
"name": "_quoted_atom_start"
},
"named": false,
"value": ":"
}, },
{ {
"type": "CHOICE", "type": "CHOICE",
@ -3522,8 +3527,13 @@
"value": "in" "value": "in"
}, },
{ {
"type": "SYMBOL", "type": "ALIAS",
"name": "_not_in" "content": {
"type": "SYMBOL",
"name": "_not_in"
},
"named": false,
"value": "not in"
} }
] ]
} }
@ -3992,8 +4002,13 @@
"value": "in" "value": "in"
}, },
{ {
"type": "SYMBOL", "type": "ALIAS",
"name": "_not_in" "content": {
"type": "SYMBOL",
"name": "_not_in"
},
"named": false,
"value": "not in"
}, },
{ {
"type": "STRING", "type": "STRING",

12
src/node-types.json generated
View File

@ -692,6 +692,10 @@
"type": "in", "type": "in",
"named": false "named": false
}, },
{
"type": "not in",
"named": false
},
{ {
"type": "or", "type": "or",
"named": false "named": false
@ -3149,6 +3153,10 @@
"type": "//", "type": "//",
"named": false "named": false
}, },
{
"type": ":",
"named": false
},
{ {
"type": "::", "type": "::",
"named": false "named": false
@ -3337,6 +3345,10 @@
"type": "not", "type": "not",
"named": false "named": false
}, },
{
"type": "not in",
"named": false
},
{ {
"type": "or", "type": "or",
"named": false "named": false

12
src/parser.c generated
View File

@ -385,8 +385,8 @@ static const char * const ts_symbol_names[] = {
[sym__newline_before_binary_operator] = "_newline_before_binary_operator", [sym__newline_before_binary_operator] = "_newline_before_binary_operator",
[sym__newline_before_comment] = "_newline_before_comment", [sym__newline_before_comment] = "_newline_before_comment",
[sym__before_unary_op] = "_before_unary_op", [sym__before_unary_op] = "_before_unary_op",
[sym__not_in] = "_not_in", [sym__not_in] = "not in",
[sym__quoted_atom_start] = "_quoted_atom_start", [sym__quoted_atom_start] = ":",
[sym_source] = "source", [sym_source] = "source",
[sym__terminator] = "_terminator", [sym__terminator] = "_terminator",
[sym__expression] = "_expression", [sym__expression] = "_expression",
@ -1231,12 +1231,12 @@ static const TSSymbolMetadata ts_symbol_metadata[] = {
.named = true, .named = true,
}, },
[sym__not_in] = { [sym__not_in] = {
.visible = false, .visible = true,
.named = true, .named = false,
}, },
[sym__quoted_atom_start] = { [sym__quoted_atom_start] = {
.visible = false, .visible = true,
.named = true, .named = false,
}, },
[sym_source] = { [sym_source] = {
.visible = true, .visible = true,