diff --git a/grammar.js b/grammar.js index 0bfcacf..7e310c9 100644 --- a/grammar.js +++ b/grammar.js @@ -21,50 +21,65 @@ module.exports = grammar({ $.bool, $.word, $.binexp, - $.callexp, - $.parexp, - $.block, + $.eqexp, $.vardef, - $.lambda, + $.callexp, $.funcdef, + $.lambda, + $.seqexp, $.ifexp, + $.tern_ifexp, + $.block, + $.parexp, ), num: (_) => /\d+/, - bool: (_) => choice("TRUE", "T", "FALSE", "F"), + + bool: (_) => choice("T", "F"), + word: (_) => /[a-zA-Z_]\w*/, - binexp: ($) => + seqexp: ($) => prec.left( - 1, - seq( - field("left", $._exp), - field("op", choice("+", "-", "*", "/", "eq")), - field("right", $._exp), + -1, // lowest + seq(field("first", $._exp), repeat1(seq(";", field("rest", $._exp)))), + ), + + vardef: ($) => + prec.right(1, seq(field("name", $.word), "=", field("value", $._exp))), + + eqexp: ($) => + prec.left(2, seq(field("left", $._exp), "==", field("right", $._exp))), + + binexp: ($) => + choice( + prec.left( + 3, + seq( + field("left", $._exp), + field("op", choice("+", "-")), + field("right", $._exp), + ), + ), + prec.left( + 4, + seq( + field("left", $._exp), + field("op", choice("*", "/")), + field("right", $._exp), + ), ), ), callexp: ($) => prec.left( - 1, // lower than funcdef + 5, seq(field("fn", $.word), "(", optional(commaSep($._exp)), ")"), ), - parexp: ($) => seq("(", $._exp, ")"), - block: ($) => seq("{", repeat($._exp), "}"), - - vardef: ($) => - prec.right(1, seq(field("name", $.word), "=", field("value", $._exp))), - - lambda: ($) => - prec.right( - 2, - seq("\\", field("params", $.params), field("body", $._exp)), - ), - funcdef: ($) => prec.right( - 3, // higher precedence than call + 6, seq( field("name", $.word), field("params", $.params), @@ -72,33 +87,36 @@ module.exports = grammar({ ), ), + lambda: ($) => + prec.right( + 6, + seq("\\", field("params", $.params), field("body", $._exp)), + ), + + parexp: ($) => seq("(", $._exp, ")"), + + block: ($) => seq("{", repeat($._exp), "}"), + params: ($) => seq("(", optional(commaSep($.word)), ")"), ifexp: ($) => - choice( - seq( - "_if", - "(", - field("cond", $._exp), - ",", - field("then", $._exp), - ",", - field("else", $._exp), - ")", - ), + prec.right( seq( "if", field("cond", $._exp), field("then", $._exp), - choice(seq("else", field("else", $._exp)), field("else", $._exp)), - ), - seq( - "?", - field("cond", $._exp), - field("then", $._exp), + optional("else"), field("else", $._exp), ), ), + + tern_ifexp: ($) => + seq( + "?", + field("cond", $._exp), + field("then", $._exp), + field("else", $._exp), + ), }, }); diff --git a/src/grammar.json b/src/grammar.json index eb582dd..91a0923 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -30,15 +30,7 @@ }, { "type": "SYMBOL", - "name": "callexp" - }, - { - "type": "SYMBOL", - "name": "parexp" - }, - { - "type": "SYMBOL", - "name": "block" + "name": "eqexp" }, { "type": "SYMBOL", @@ -46,15 +38,35 @@ }, { "type": "SYMBOL", - "name": "lambda" + "name": "callexp" }, { "type": "SYMBOL", "name": "funcdef" }, + { + "type": "SYMBOL", + "name": "lambda" + }, + { + "type": "SYMBOL", + "name": "seqexp" + }, { "type": "SYMBOL", "name": "ifexp" + }, + { + "type": "SYMBOL", + "name": "tern_ifexp" + }, + { + "type": "SYMBOL", + "name": "block" + }, + { + "type": "SYMBOL", + "name": "parexp" } ] }, @@ -65,18 +77,10 @@ "bool": { "type": "CHOICE", "members": [ - { - "type": "STRING", - "value": "TRUE" - }, { "type": "STRING", "value": "T" }, - { - "type": "STRING", - "value": "FALSE" - }, { "type": "STRING", "value": "F" @@ -87,9 +91,75 @@ "type": "PATTERN", "value": "[a-zA-Z_]\\w*" }, - "binexp": { + "seqexp": { "type": "PREC_LEFT", + "value": -1, + "content": { + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "first", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + }, + { + "type": "REPEAT1", + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": ";" + }, + { + "type": "FIELD", + "name": "rest", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + } + ] + } + } + ] + } + }, + "vardef": { + "type": "PREC_RIGHT", "value": 1, + "content": { + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "name", + "content": { + "type": "SYMBOL", + "name": "word" + } + }, + { + "type": "STRING", + "value": "=" + }, + { + "type": "FIELD", + "name": "value", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + } + ] + } + }, + "eqexp": { + "type": "PREC_LEFT", + "value": 2, "content": { "type": "SEQ", "members": [ @@ -102,33 +172,8 @@ } }, { - "type": "FIELD", - "name": "op", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "+" - }, - { - "type": "STRING", - "value": "-" - }, - { - "type": "STRING", - "value": "*" - }, - { - "type": "STRING", - "value": "/" - }, - { - "type": "STRING", - "value": "eq" - } - ] - } + "type": "STRING", + "value": "==" }, { "type": "FIELD", @@ -141,9 +186,98 @@ ] } }, + "binexp": { + "type": "CHOICE", + "members": [ + { + "type": "PREC_LEFT", + "value": 3, + "content": { + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "left", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + }, + { + "type": "FIELD", + "name": "op", + "content": { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "+" + }, + { + "type": "STRING", + "value": "-" + } + ] + } + }, + { + "type": "FIELD", + "name": "right", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + } + ] + } + }, + { + "type": "PREC_LEFT", + "value": 4, + "content": { + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "left", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + }, + { + "type": "FIELD", + "name": "op", + "content": { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "*" + }, + { + "type": "STRING", + "value": "/" + } + ] + } + }, + { + "type": "FIELD", + "name": "right", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + } + ] + } + } + ] + }, "callexp": { "type": "PREC_LEFT", - "value": 1, + "value": 5, "content": { "type": "SEQ", "members": [ @@ -199,6 +333,68 @@ ] } }, + "funcdef": { + "type": "PREC_RIGHT", + "value": 6, + "content": { + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "name", + "content": { + "type": "SYMBOL", + "name": "word" + } + }, + { + "type": "FIELD", + "name": "params", + "content": { + "type": "SYMBOL", + "name": "params" + } + }, + { + "type": "FIELD", + "name": "body", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + } + ] + } + }, + "lambda": { + "type": "PREC_RIGHT", + "value": 6, + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "\\" + }, + { + "type": "FIELD", + "name": "params", + "content": { + "type": "SYMBOL", + "name": "params" + } + }, + { + "type": "FIELD", + "name": "body", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + } + ] + } + }, "parexp": { "type": "SEQ", "members": [ @@ -236,97 +432,6 @@ } ] }, - "vardef": { - "type": "PREC_RIGHT", - "value": 1, - "content": { - "type": "SEQ", - "members": [ - { - "type": "FIELD", - "name": "name", - "content": { - "type": "SYMBOL", - "name": "word" - } - }, - { - "type": "STRING", - "value": "=" - }, - { - "type": "FIELD", - "name": "value", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - } - ] - } - }, - "lambda": { - "type": "PREC_RIGHT", - "value": 2, - "content": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\\" - }, - { - "type": "FIELD", - "name": "params", - "content": { - "type": "SYMBOL", - "name": "params" - } - }, - { - "type": "FIELD", - "name": "body", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - } - ] - } - }, - "funcdef": { - "type": "PREC_RIGHT", - "value": 3, - "content": { - "type": "SEQ", - "members": [ - { - "type": "FIELD", - "name": "name", - "content": { - "type": "SYMBOL", - "name": "word" - } - }, - { - "type": "FIELD", - "name": "params", - "content": { - "type": "SYMBOL", - "name": "params" - } - }, - { - "type": "FIELD", - "name": "body", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - } - ] - } - }, "params": { "type": "SEQ", "members": [ @@ -374,144 +479,84 @@ ] }, "ifexp": { - "type": "CHOICE", + "type": "PREC_RIGHT", + "value": 0, + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "if" + }, + { + "type": "FIELD", + "name": "cond", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + }, + { + "type": "FIELD", + "name": "then", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + }, + { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "else" + }, + { + "type": "BLANK" + } + ] + }, + { + "type": "FIELD", + "name": "else", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + } + ] + } + }, + "tern_ifexp": { + "type": "SEQ", "members": [ { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "_if" - }, - { - "type": "STRING", - "value": "(" - }, - { - "type": "FIELD", - "name": "cond", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - }, - { - "type": "STRING", - "value": "," - }, - { - "type": "FIELD", - "name": "then", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - }, - { - "type": "STRING", - "value": "," - }, - { - "type": "FIELD", - "name": "else", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - }, - { - "type": "STRING", - "value": ")" - } - ] + "type": "STRING", + "value": "?" }, { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "if" - }, - { - "type": "FIELD", - "name": "cond", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - }, - { - "type": "FIELD", - "name": "then", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "else" - }, - { - "type": "FIELD", - "name": "else", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - } - ] - }, - { - "type": "FIELD", - "name": "else", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - } - ] - } - ] + "type": "FIELD", + "name": "cond", + "content": { + "type": "SYMBOL", + "name": "_exp" + } }, { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "?" - }, - { - "type": "FIELD", - "name": "cond", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - }, - { - "type": "FIELD", - "name": "then", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - }, - { - "type": "FIELD", - "name": "else", - "content": { - "type": "SYMBOL", - "name": "_exp" - } - } - ] + "type": "FIELD", + "name": "then", + "content": { + "type": "SYMBOL", + "name": "_exp" + } + }, + { + "type": "FIELD", + "name": "else", + "content": { + "type": "SYMBOL", + "name": "_exp" + } } ] } diff --git a/src/node-types.json b/src/node-types.json index 09d1822..535a184 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -23,6 +23,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -43,6 +47,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -72,10 +84,6 @@ { "type": "/", "named": false - }, - { - "type": "eq", - "named": false } ] }, @@ -99,6 +107,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -119,6 +131,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -155,6 +175,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -175,6 +199,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -226,6 +258,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -246,6 +282,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -257,6 +301,136 @@ ] } }, + { + "type": "eqexp", + "named": true, + "fields": { + "left": { + "multiple": false, + "required": true, + "types": [ + { + "type": "binexp", + "named": true + }, + { + "type": "block", + "named": true + }, + { + "type": "bool", + "named": true + }, + { + "type": "callexp", + "named": true + }, + { + "type": "eqexp", + "named": true + }, + { + "type": "funcdef", + "named": true + }, + { + "type": "ifexp", + "named": true + }, + { + "type": "lambda", + "named": true + }, + { + "type": "num", + "named": true + }, + { + "type": "parexp", + "named": true + }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, + { + "type": "vardef", + "named": true + }, + { + "type": "word", + "named": true + } + ] + }, + "right": { + "multiple": false, + "required": true, + "types": [ + { + "type": "binexp", + "named": true + }, + { + "type": "block", + "named": true + }, + { + "type": "bool", + "named": true + }, + { + "type": "callexp", + "named": true + }, + { + "type": "eqexp", + "named": true + }, + { + "type": "funcdef", + "named": true + }, + { + "type": "ifexp", + "named": true + }, + { + "type": "lambda", + "named": true + }, + { + "type": "num", + "named": true + }, + { + "type": "parexp", + "named": true + }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, + { + "type": "vardef", + "named": true + }, + { + "type": "word", + "named": true + } + ] + } + } + }, { "type": "funcdef", "named": true, @@ -281,6 +455,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -301,6 +479,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -357,6 +543,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -377,6 +567,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -407,6 +605,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -427,6 +629,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -457,6 +667,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -477,6 +691,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -513,6 +735,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -533,6 +759,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -594,6 +828,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -614,6 +852,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -625,6 +871,136 @@ ] } }, + { + "type": "seqexp", + "named": true, + "fields": { + "first": { + "multiple": false, + "required": true, + "types": [ + { + "type": "binexp", + "named": true + }, + { + "type": "block", + "named": true + }, + { + "type": "bool", + "named": true + }, + { + "type": "callexp", + "named": true + }, + { + "type": "eqexp", + "named": true + }, + { + "type": "funcdef", + "named": true + }, + { + "type": "ifexp", + "named": true + }, + { + "type": "lambda", + "named": true + }, + { + "type": "num", + "named": true + }, + { + "type": "parexp", + "named": true + }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, + { + "type": "vardef", + "named": true + }, + { + "type": "word", + "named": true + } + ] + }, + "rest": { + "multiple": true, + "required": true, + "types": [ + { + "type": "binexp", + "named": true + }, + { + "type": "block", + "named": true + }, + { + "type": "bool", + "named": true + }, + { + "type": "callexp", + "named": true + }, + { + "type": "eqexp", + "named": true + }, + { + "type": "funcdef", + "named": true + }, + { + "type": "ifexp", + "named": true + }, + { + "type": "lambda", + "named": true + }, + { + "type": "num", + "named": true + }, + { + "type": "parexp", + "named": true + }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, + { + "type": "vardef", + "named": true + }, + { + "type": "word", + "named": true + } + ] + } + } + }, { "type": "source_file", "named": true, @@ -650,6 +1026,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -670,6 +1050,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -681,6 +1069,198 @@ ] } }, + { + "type": "tern_ifexp", + "named": true, + "fields": { + "cond": { + "multiple": false, + "required": true, + "types": [ + { + "type": "binexp", + "named": true + }, + { + "type": "block", + "named": true + }, + { + "type": "bool", + "named": true + }, + { + "type": "callexp", + "named": true + }, + { + "type": "eqexp", + "named": true + }, + { + "type": "funcdef", + "named": true + }, + { + "type": "ifexp", + "named": true + }, + { + "type": "lambda", + "named": true + }, + { + "type": "num", + "named": true + }, + { + "type": "parexp", + "named": true + }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, + { + "type": "vardef", + "named": true + }, + { + "type": "word", + "named": true + } + ] + }, + "else": { + "multiple": false, + "required": true, + "types": [ + { + "type": "binexp", + "named": true + }, + { + "type": "block", + "named": true + }, + { + "type": "bool", + "named": true + }, + { + "type": "callexp", + "named": true + }, + { + "type": "eqexp", + "named": true + }, + { + "type": "funcdef", + "named": true + }, + { + "type": "ifexp", + "named": true + }, + { + "type": "lambda", + "named": true + }, + { + "type": "num", + "named": true + }, + { + "type": "parexp", + "named": true + }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, + { + "type": "vardef", + "named": true + }, + { + "type": "word", + "named": true + } + ] + }, + "then": { + "multiple": false, + "required": true, + "types": [ + { + "type": "binexp", + "named": true + }, + { + "type": "block", + "named": true + }, + { + "type": "bool", + "named": true + }, + { + "type": "callexp", + "named": true + }, + { + "type": "eqexp", + "named": true + }, + { + "type": "funcdef", + "named": true + }, + { + "type": "ifexp", + "named": true + }, + { + "type": "lambda", + "named": true + }, + { + "type": "num", + "named": true + }, + { + "type": "parexp", + "named": true + }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, + { + "type": "vardef", + "named": true + }, + { + "type": "word", + "named": true + } + ] + } + } + }, { "type": "vardef", "named": true, @@ -715,6 +1295,10 @@ "type": "callexp", "named": true }, + { + "type": "eqexp", + "named": true + }, { "type": "funcdef", "named": true @@ -735,6 +1319,14 @@ "type": "parexp", "named": true }, + { + "type": "seqexp", + "named": true + }, + { + "type": "tern_ifexp", + "named": true + }, { "type": "vardef", "named": true @@ -775,10 +1367,18 @@ "type": "/", "named": false }, + { + "type": ";", + "named": false + }, { "type": "=", "named": false }, + { + "type": "==", + "named": false + }, { "type": "?", "named": false @@ -787,34 +1387,18 @@ "type": "F", "named": false }, - { - "type": "FALSE", - "named": false - }, { "type": "T", "named": false }, - { - "type": "TRUE", - "named": false - }, { "type": "\\", "named": false }, - { - "type": "_if", - "named": false - }, { "type": "else", "named": false }, - { - "type": "eq", - "named": false - }, { "type": "if", "named": false diff --git a/src/parser.c b/src/parser.c index 7c81e73..ea286c4 100644 --- a/src/parser.c +++ b/src/parser.c @@ -7,95 +7,99 @@ #endif #define LANGUAGE_VERSION 15 -#define STATE_COUNT 142 -#define LARGE_STATE_COUNT 61 -#define SYMBOL_COUNT 38 +#define STATE_COUNT 133 +#define LARGE_STATE_COUNT 56 +#define SYMBOL_COUNT 40 #define ALIAS_COUNT 0 -#define TOKEN_COUNT 23 +#define TOKEN_COUNT 21 #define EXTERNAL_TOKEN_COUNT 0 -#define FIELD_COUNT 11 -#define MAX_ALIAS_SEQUENCE_LENGTH 8 +#define FIELD_COUNT 13 +#define MAX_ALIAS_SEQUENCE_LENGTH 5 #define MAX_RESERVED_WORD_SET_SIZE 0 -#define PRODUCTION_ID_COUNT 9 +#define PRODUCTION_ID_COUNT 12 #define SUPERTYPE_COUNT 0 enum ts_symbol_identifiers { sym_num = 1, - anon_sym_TRUE = 2, - anon_sym_T = 3, - anon_sym_FALSE = 4, - anon_sym_F = 5, - sym_word = 6, - anon_sym_PLUS = 7, - anon_sym_DASH = 8, - anon_sym_STAR = 9, - anon_sym_SLASH = 10, - anon_sym_eq = 11, + anon_sym_T = 2, + anon_sym_F = 3, + sym_word = 4, + anon_sym_SEMI = 5, + anon_sym_EQ = 6, + anon_sym_EQ_EQ = 7, + anon_sym_PLUS = 8, + anon_sym_DASH = 9, + anon_sym_STAR = 10, + anon_sym_SLASH = 11, anon_sym_LPAREN = 12, anon_sym_COMMA = 13, anon_sym_RPAREN = 14, - anon_sym_LBRACE = 15, - anon_sym_RBRACE = 16, - anon_sym_EQ = 17, - anon_sym_BSLASH = 18, - anon_sym__if = 19, - anon_sym_if = 20, - anon_sym_else = 21, - anon_sym_QMARK = 22, - sym_source_file = 23, - sym__exp = 24, - sym_bool = 25, - sym_binexp = 26, - sym_callexp = 27, - sym_parexp = 28, - sym_block = 29, - sym_vardef = 30, - sym_lambda = 31, - sym_funcdef = 32, + anon_sym_BSLASH = 15, + anon_sym_LBRACE = 16, + anon_sym_RBRACE = 17, + anon_sym_if = 18, + anon_sym_else = 19, + anon_sym_QMARK = 20, + sym_source_file = 21, + sym__exp = 22, + sym_bool = 23, + sym_seqexp = 24, + sym_vardef = 25, + sym_eqexp = 26, + sym_binexp = 27, + sym_callexp = 28, + sym_funcdef = 29, + sym_lambda = 30, + sym_parexp = 31, + sym_block = 32, sym_params = 33, sym_ifexp = 34, - aux_sym_source_file_repeat1 = 35, - aux_sym_callexp_repeat1 = 36, - aux_sym_params_repeat1 = 37, + sym_tern_ifexp = 35, + aux_sym_source_file_repeat1 = 36, + aux_sym_seqexp_repeat1 = 37, + aux_sym_callexp_repeat1 = 38, + aux_sym_params_repeat1 = 39, }; static const char * const ts_symbol_names[] = { [ts_builtin_sym_end] = "end", [sym_num] = "num", - [anon_sym_TRUE] = "TRUE", [anon_sym_T] = "T", - [anon_sym_FALSE] = "FALSE", [anon_sym_F] = "F", [sym_word] = "word", + [anon_sym_SEMI] = ";", + [anon_sym_EQ] = "=", + [anon_sym_EQ_EQ] = "==", [anon_sym_PLUS] = "+", [anon_sym_DASH] = "-", [anon_sym_STAR] = "*", [anon_sym_SLASH] = "/", - [anon_sym_eq] = "eq", [anon_sym_LPAREN] = "(", [anon_sym_COMMA] = ",", [anon_sym_RPAREN] = ")", + [anon_sym_BSLASH] = "\\", [anon_sym_LBRACE] = "{", [anon_sym_RBRACE] = "}", - [anon_sym_EQ] = "=", - [anon_sym_BSLASH] = "\\", - [anon_sym__if] = "_if", [anon_sym_if] = "if", [anon_sym_else] = "else", [anon_sym_QMARK] = "\?", [sym_source_file] = "source_file", [sym__exp] = "_exp", [sym_bool] = "bool", + [sym_seqexp] = "seqexp", + [sym_vardef] = "vardef", + [sym_eqexp] = "eqexp", [sym_binexp] = "binexp", [sym_callexp] = "callexp", + [sym_funcdef] = "funcdef", + [sym_lambda] = "lambda", [sym_parexp] = "parexp", [sym_block] = "block", - [sym_vardef] = "vardef", - [sym_lambda] = "lambda", - [sym_funcdef] = "funcdef", [sym_params] = "params", [sym_ifexp] = "ifexp", + [sym_tern_ifexp] = "tern_ifexp", [aux_sym_source_file_repeat1] = "source_file_repeat1", + [aux_sym_seqexp_repeat1] = "seqexp_repeat1", [aux_sym_callexp_repeat1] = "callexp_repeat1", [aux_sym_params_repeat1] = "params_repeat1", }; @@ -103,40 +107,42 @@ static const char * const ts_symbol_names[] = { static const TSSymbol ts_symbol_map[] = { [ts_builtin_sym_end] = ts_builtin_sym_end, [sym_num] = sym_num, - [anon_sym_TRUE] = anon_sym_TRUE, [anon_sym_T] = anon_sym_T, - [anon_sym_FALSE] = anon_sym_FALSE, [anon_sym_F] = anon_sym_F, [sym_word] = sym_word, + [anon_sym_SEMI] = anon_sym_SEMI, + [anon_sym_EQ] = anon_sym_EQ, + [anon_sym_EQ_EQ] = anon_sym_EQ_EQ, [anon_sym_PLUS] = anon_sym_PLUS, [anon_sym_DASH] = anon_sym_DASH, [anon_sym_STAR] = anon_sym_STAR, [anon_sym_SLASH] = anon_sym_SLASH, - [anon_sym_eq] = anon_sym_eq, [anon_sym_LPAREN] = anon_sym_LPAREN, [anon_sym_COMMA] = anon_sym_COMMA, [anon_sym_RPAREN] = anon_sym_RPAREN, + [anon_sym_BSLASH] = anon_sym_BSLASH, [anon_sym_LBRACE] = anon_sym_LBRACE, [anon_sym_RBRACE] = anon_sym_RBRACE, - [anon_sym_EQ] = anon_sym_EQ, - [anon_sym_BSLASH] = anon_sym_BSLASH, - [anon_sym__if] = anon_sym__if, [anon_sym_if] = anon_sym_if, [anon_sym_else] = anon_sym_else, [anon_sym_QMARK] = anon_sym_QMARK, [sym_source_file] = sym_source_file, [sym__exp] = sym__exp, [sym_bool] = sym_bool, + [sym_seqexp] = sym_seqexp, + [sym_vardef] = sym_vardef, + [sym_eqexp] = sym_eqexp, [sym_binexp] = sym_binexp, [sym_callexp] = sym_callexp, + [sym_funcdef] = sym_funcdef, + [sym_lambda] = sym_lambda, [sym_parexp] = sym_parexp, [sym_block] = sym_block, - [sym_vardef] = sym_vardef, - [sym_lambda] = sym_lambda, - [sym_funcdef] = sym_funcdef, [sym_params] = sym_params, [sym_ifexp] = sym_ifexp, + [sym_tern_ifexp] = sym_tern_ifexp, [aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1, + [aux_sym_seqexp_repeat1] = aux_sym_seqexp_repeat1, [aux_sym_callexp_repeat1] = aux_sym_callexp_repeat1, [aux_sym_params_repeat1] = aux_sym_params_repeat1, }; @@ -150,18 +156,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [anon_sym_TRUE] = { - .visible = true, - .named = false, - }, [anon_sym_T] = { .visible = true, .named = false, }, - [anon_sym_FALSE] = { - .visible = true, - .named = false, - }, [anon_sym_F] = { .visible = true, .named = false, @@ -170,6 +168,18 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [anon_sym_SEMI] = { + .visible = true, + .named = false, + }, + [anon_sym_EQ] = { + .visible = true, + .named = false, + }, + [anon_sym_EQ_EQ] = { + .visible = true, + .named = false, + }, [anon_sym_PLUS] = { .visible = true, .named = false, @@ -186,10 +196,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = false, }, - [anon_sym_eq] = { - .visible = true, - .named = false, - }, [anon_sym_LPAREN] = { .visible = true, .named = false, @@ -202,6 +208,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = false, }, + [anon_sym_BSLASH] = { + .visible = true, + .named = false, + }, [anon_sym_LBRACE] = { .visible = true, .named = false, @@ -210,18 +220,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = false, }, - [anon_sym_EQ] = { - .visible = true, - .named = false, - }, - [anon_sym_BSLASH] = { - .visible = true, - .named = false, - }, - [anon_sym__if] = { - .visible = true, - .named = false, - }, [anon_sym_if] = { .visible = true, .named = false, @@ -246,6 +244,18 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [sym_seqexp] = { + .visible = true, + .named = true, + }, + [sym_vardef] = { + .visible = true, + .named = true, + }, + [sym_eqexp] = { + .visible = true, + .named = true, + }, [sym_binexp] = { .visible = true, .named = true, @@ -254,6 +264,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [sym_funcdef] = { + .visible = true, + .named = true, + }, + [sym_lambda] = { + .visible = true, + .named = true, + }, [sym_parexp] = { .visible = true, .named = true, @@ -262,18 +280,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym_vardef] = { - .visible = true, - .named = true, - }, - [sym_lambda] = { - .visible = true, - .named = true, - }, - [sym_funcdef] = { - .visible = true, - .named = true, - }, [sym_params] = { .visible = true, .named = true, @@ -282,10 +288,18 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [sym_tern_ifexp] = { + .visible = true, + .named = true, + }, [aux_sym_source_file_repeat1] = { .visible = false, .named = false, }, + [aux_sym_seqexp_repeat1] = { + .visible = false, + .named = false, + }, [aux_sym_callexp_repeat1] = { .visible = false, .named = false, @@ -300,14 +314,16 @@ enum ts_field_identifiers { field_body = 1, field_cond = 2, field_else = 3, - field_fn = 4, - field_left = 5, - field_name = 6, - field_op = 7, - field_params = 8, - field_right = 9, - field_then = 10, - field_value = 11, + field_first = 4, + field_fn = 5, + field_left = 6, + field_name = 7, + field_op = 8, + field_params = 9, + field_rest = 10, + field_right = 11, + field_then = 12, + field_value = 13, }; static const char * const ts_field_names[] = { @@ -315,56 +331,68 @@ static const char * const ts_field_names[] = { [field_body] = "body", [field_cond] = "cond", [field_else] = "else", + [field_first] = "first", [field_fn] = "fn", [field_left] = "left", [field_name] = "name", [field_op] = "op", [field_params] = "params", + [field_rest] = "rest", [field_right] = "right", [field_then] = "then", [field_value] = "value", }; static const TSMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { - [1] = {.index = 0, .length = 1}, - [2] = {.index = 1, .length = 2}, - [3] = {.index = 3, .length = 3}, - [4] = {.index = 6, .length = 2}, - [5] = {.index = 8, .length = 3}, - [6] = {.index = 11, .length = 3}, - [7] = {.index = 14, .length = 3}, - [8] = {.index = 17, .length = 3}, + [1] = {.index = 0, .length = 2}, + [2] = {.index = 2, .length = 2}, + [3] = {.index = 4, .length = 1}, + [4] = {.index = 5, .length = 3}, + [5] = {.index = 8, .length = 2}, + [6] = {.index = 10, .length = 1}, + [7] = {.index = 11, .length = 2}, + [8] = {.index = 13, .length = 3}, + [9] = {.index = 16, .length = 2}, + [10] = {.index = 18, .length = 3}, + [11] = {.index = 21, .length = 3}, }; static const TSFieldMapEntry ts_field_map_entries[] = { [0] = - {field_fn, 0}, - [1] = + {field_first, 0}, + {field_rest, 1, .inherited = true}, + [2] = {field_name, 0}, {field_value, 2}, - [3] = + [4] = + {field_fn, 0}, + [5] = {field_body, 2}, {field_name, 0}, {field_params, 1}, - [6] = + [8] = {field_body, 2}, {field_params, 1}, - [8] = + [10] = + {field_rest, 1}, + [11] = + {field_left, 0}, + {field_right, 2}, + [13] = {field_left, 0}, {field_op, 1}, {field_right, 2}, - [11] = + [16] = + {field_rest, 0, .inherited = true}, + {field_rest, 1, .inherited = true}, + [18] = {field_cond, 1}, {field_else, 3}, {field_then, 2}, - [14] = + [21] = {field_cond, 1}, {field_else, 4}, {field_then, 2}, - [17] = - {field_cond, 2}, - {field_else, 6}, - {field_then, 4}, }; static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = { @@ -385,9 +413,9 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [6] = 6, [7] = 7, [8] = 7, - [9] = 7, - [10] = 5, - [11] = 6, + [9] = 5, + [10] = 6, + [11] = 7, [12] = 6, [13] = 5, [14] = 14, @@ -396,47 +424,47 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [17] = 17, [18] = 16, [19] = 17, - [20] = 16, - [21] = 17, - [22] = 22, - [23] = 22, - [24] = 22, + [20] = 20, + [21] = 20, + [22] = 20, + [23] = 23, + [24] = 24, [25] = 25, [26] = 26, [27] = 27, - [28] = 28, + [28] = 23, [29] = 29, [30] = 30, - [31] = 25, + [31] = 31, [32] = 32, - [33] = 33, - [34] = 34, + [33] = 29, + [34] = 27, [35] = 35, - [36] = 25, - [37] = 32, - [38] = 33, - [39] = 34, - [40] = 32, - [41] = 29, - [42] = 33, - [43] = 26, - [44] = 44, - [45] = 34, - [46] = 46, - [47] = 35, - [48] = 44, - [49] = 46, - [50] = 30, - [51] = 35, - [52] = 44, - [53] = 46, - [54] = 30, - [55] = 28, - [56] = 28, - [57] = 26, - [58] = 29, + [36] = 32, + [37] = 26, + [38] = 38, + [39] = 35, + [40] = 40, + [41] = 24, + [42] = 27, + [43] = 23, + [44] = 38, + [45] = 30, + [46] = 31, + [47] = 32, + [48] = 29, + [49] = 40, + [50] = 24, + [51] = 26, + [52] = 30, + [53] = 31, + [54] = 40, + [55] = 38, + [56] = 56, + [57] = 57, + [58] = 58, [59] = 59, - [60] = 59, + [60] = 60, [61] = 61, [62] = 62, [63] = 63, @@ -444,7 +472,7 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [65] = 65, [66] = 66, [67] = 67, - [68] = 66, + [68] = 61, [69] = 69, [70] = 70, [71] = 71, @@ -453,71 +481,62 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [74] = 74, [75] = 75, [76] = 76, - [77] = 76, - [78] = 67, - [79] = 73, - [80] = 61, - [81] = 69, - [82] = 66, - [83] = 63, - [84] = 74, - [85] = 62, - [86] = 65, - [87] = 72, - [88] = 70, - [89] = 71, - [90] = 75, - [91] = 91, - [92] = 92, - [93] = 93, - [94] = 94, - [95] = 59, - [96] = 96, - [97] = 96, - [98] = 96, - [99] = 70, - [100] = 65, - [101] = 72, - [102] = 73, + [77] = 71, + [78] = 74, + [79] = 72, + [80] = 73, + [81] = 66, + [82] = 75, + [83] = 65, + [84] = 67, + [85] = 85, + [86] = 76, + [87] = 64, + [88] = 85, + [89] = 63, + [90] = 70, + [91] = 62, + [92] = 57, + [93] = 59, + [94] = 85, + [95] = 58, + [96] = 56, + [97] = 60, + [98] = 98, + [99] = 61, + [100] = 100, + [101] = 100, + [102] = 72, [103] = 103, - [104] = 76, - [105] = 61, + [104] = 104, + [105] = 105, [106] = 63, - [107] = 67, - [108] = 69, - [109] = 74, - [110] = 75, - [111] = 62, - [112] = 71, - [113] = 113, + [107] = 64, + [108] = 76, + [109] = 70, + [110] = 74, + [111] = 71, + [112] = 67, + [113] = 73, [114] = 114, - [115] = 115, - [116] = 116, - [117] = 115, - [118] = 114, - [119] = 114, - [120] = 116, - [121] = 116, - [122] = 113, - [123] = 113, - [124] = 115, + [115] = 75, + [116] = 65, + [117] = 66, + [118] = 118, + [119] = 118, + [120] = 120, + [121] = 121, + [122] = 122, + [123] = 123, + [124] = 121, [125] = 125, [126] = 126, [127] = 127, - [128] = 126, - [129] = 129, + [128] = 128, + [129] = 126, [130] = 126, [131] = 131, [132] = 132, - [133] = 132, - [134] = 134, - [135] = 132, - [136] = 136, - [137] = 137, - [138] = 138, - [139] = 139, - [140] = 138, - [141] = 138, }; static bool ts_lex(TSLexer *lexer, TSStateId state) { @@ -525,311 +544,183 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { eof = lexer->eof(lexer); switch (state) { case 0: - if (eof) ADVANCE(6); + if (eof) ADVANCE(3); ADVANCE_MAP( - '(', 31, - ')', 33, - '*', 27, - '+', 25, - ',', 32, - '-', 26, - '/', 28, - '=', 36, - '?', 41, - 'F', 11, - 'T', 9, - '\\', 37, - '_', 20, - 'e', 21, - 'i', 18, - '{', 34, - '}', 35, + '(', 19, + ')', 21, + '*', 17, + '+', 15, + ',', 20, + '-', 16, + '/', 18, + ';', 12, + '=', 13, + '?', 27, + 'F', 6, + 'T', 5, + '\\', 22, + 'e', 9, + 'i', 8, + '{', 23, + '}', 24, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(0); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(7); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(4); if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + lookahead == '_' || + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); case 1: - ADVANCE_MAP( - '(', 31, - ')', 33, - '*', 27, - '+', 25, - ',', 32, - '-', 26, - '/', 28, - '=', 36, - 'e', 3, - ); + if (lookahead == ')') ADVANCE(21); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(1); + if (('A' <= lookahead && lookahead <= 'Z') || + lookahead == '_' || + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); case 2: - if (lookahead == ')') ADVANCE(33); + if (eof) ADVANCE(3); + ADVANCE_MAP( + '(', 19, + ')', 21, + '*', 17, + '+', 15, + ',', 20, + '-', 16, + '/', 18, + ';', 12, + '=', 13, + '?', 27, + 'F', 6, + 'T', 5, + '\\', 22, + 'i', 8, + '{', 23, + '}', 24, + ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(2); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(4); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); case 3: - if (lookahead == 'q') ADVANCE(29); - END_STATE(); - case 4: - if (eof) ADVANCE(6); - ADVANCE_MAP( - '(', 31, - ')', 33, - '*', 27, - '+', 25, - ',', 32, - '-', 26, - '/', 28, - '=', 36, - '?', 41, - 'F', 11, - 'T', 9, - '\\', 37, - '_', 20, - 'e', 22, - 'i', 18, - '{', 34, - '}', 35, - ); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(4); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(7); - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 5: - if (eof) ADVANCE(6); - ADVANCE_MAP( - '(', 31, - ')', 33, - '?', 41, - 'F', 11, - 'T', 9, - '\\', 37, - '_', 20, - 'i', 18, - '{', 34, - '}', 35, - ); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(5); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(7); - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 6: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); - case 7: + case 4: ACCEPT_TOKEN(sym_num); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(7); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(4); + END_STATE(); + case 5: + ACCEPT_TOKEN(anon_sym_T); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'Z') || + lookahead == '_' || + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); + END_STATE(); + case 6: + ACCEPT_TOKEN(anon_sym_F); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'Z') || + lookahead == '_' || + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); + END_STATE(); + case 7: + ACCEPT_TOKEN(sym_word); + if (lookahead == 'e') ADVANCE(26); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'Z') || + lookahead == '_' || + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); case 8: - ACCEPT_TOKEN(anon_sym_TRUE); + ACCEPT_TOKEN(sym_word); + if (lookahead == 'f') ADVANCE(25); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); case 9: - ACCEPT_TOKEN(anon_sym_T); - if (lookahead == 'R') ADVANCE(16); + ACCEPT_TOKEN(sym_word); + if (lookahead == 'l') ADVANCE(10); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); case 10: - ACCEPT_TOKEN(anon_sym_FALSE); + ACCEPT_TOKEN(sym_word); + if (lookahead == 's') ADVANCE(7); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); case 11: - ACCEPT_TOKEN(anon_sym_F); - if (lookahead == 'A') ADVANCE(14); + ACCEPT_TOKEN(sym_word); if (('0' <= lookahead && lookahead <= '9') || - ('B' <= lookahead && lookahead <= 'Z') || + ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); case 12: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'E') ADVANCE(8); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ACCEPT_TOKEN(anon_sym_SEMI); END_STATE(); case 13: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'E') ADVANCE(10); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ACCEPT_TOKEN(anon_sym_EQ); + if (lookahead == '=') ADVANCE(14); END_STATE(); case 14: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'L') ADVANCE(15); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ACCEPT_TOKEN(anon_sym_EQ_EQ); END_STATE(); case 15: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'S') ADVANCE(13); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 16: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'U') ADVANCE(12); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 17: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'e') ADVANCE(40); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 18: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'f') ADVANCE(39); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 19: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'f') ADVANCE(38); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 20: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'i') ADVANCE(19); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 21: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'l') ADVANCE(23); - if (lookahead == 'q') ADVANCE(30); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 22: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'q') ADVANCE(30); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 23: - ACCEPT_TOKEN(sym_word); - if (lookahead == 's') ADVANCE(17); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 24: - ACCEPT_TOKEN(sym_word); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 25: ACCEPT_TOKEN(anon_sym_PLUS); END_STATE(); - case 26: + case 16: ACCEPT_TOKEN(anon_sym_DASH); END_STATE(); - case 27: + case 17: ACCEPT_TOKEN(anon_sym_STAR); END_STATE(); - case 28: + case 18: ACCEPT_TOKEN(anon_sym_SLASH); END_STATE(); - case 29: - ACCEPT_TOKEN(anon_sym_eq); - END_STATE(); - case 30: - ACCEPT_TOKEN(anon_sym_eq); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); - END_STATE(); - case 31: + case 19: ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); - case 32: + case 20: ACCEPT_TOKEN(anon_sym_COMMA); END_STATE(); - case 33: + case 21: ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); - case 34: - ACCEPT_TOKEN(anon_sym_LBRACE); - END_STATE(); - case 35: - ACCEPT_TOKEN(anon_sym_RBRACE); - END_STATE(); - case 36: - ACCEPT_TOKEN(anon_sym_EQ); - END_STATE(); - case 37: + case 22: ACCEPT_TOKEN(anon_sym_BSLASH); END_STATE(); - case 38: - ACCEPT_TOKEN(anon_sym__if); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + case 23: + ACCEPT_TOKEN(anon_sym_LBRACE); END_STATE(); - case 39: + case 24: + ACCEPT_TOKEN(anon_sym_RBRACE); + END_STATE(); + case 25: ACCEPT_TOKEN(anon_sym_if); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); - case 40: + case 26: ACCEPT_TOKEN(anon_sym_else); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(24); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(11); END_STATE(); - case 41: + case 27: ACCEPT_TOKEN(anon_sym_QMARK); END_STATE(); default: @@ -839,82 +730,82 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static const TSLexerMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, - [1] = {.lex_state = 5}, + [1] = {.lex_state = 2}, [2] = {.lex_state = 0}, [3] = {.lex_state = 0}, [4] = {.lex_state = 0}, - [5] = {.lex_state = 4}, - [6] = {.lex_state = 4}, - [7] = {.lex_state = 4}, - [8] = {.lex_state = 4}, - [9] = {.lex_state = 4}, - [10] = {.lex_state = 4}, - [11] = {.lex_state = 4}, - [12] = {.lex_state = 4}, - [13] = {.lex_state = 4}, - [14] = {.lex_state = 5}, - [15] = {.lex_state = 5}, - [16] = {.lex_state = 5}, - [17] = {.lex_state = 5}, - [18] = {.lex_state = 5}, - [19] = {.lex_state = 5}, - [20] = {.lex_state = 5}, - [21] = {.lex_state = 5}, - [22] = {.lex_state = 5}, - [23] = {.lex_state = 5}, - [24] = {.lex_state = 5}, - [25] = {.lex_state = 5}, - [26] = {.lex_state = 5}, - [27] = {.lex_state = 5}, - [28] = {.lex_state = 5}, - [29] = {.lex_state = 5}, - [30] = {.lex_state = 5}, - [31] = {.lex_state = 5}, - [32] = {.lex_state = 5}, - [33] = {.lex_state = 5}, - [34] = {.lex_state = 5}, - [35] = {.lex_state = 5}, - [36] = {.lex_state = 5}, - [37] = {.lex_state = 5}, - [38] = {.lex_state = 5}, - [39] = {.lex_state = 5}, - [40] = {.lex_state = 5}, - [41] = {.lex_state = 5}, - [42] = {.lex_state = 5}, - [43] = {.lex_state = 5}, - [44] = {.lex_state = 5}, - [45] = {.lex_state = 5}, - [46] = {.lex_state = 5}, - [47] = {.lex_state = 5}, - [48] = {.lex_state = 5}, - [49] = {.lex_state = 5}, - [50] = {.lex_state = 5}, - [51] = {.lex_state = 5}, - [52] = {.lex_state = 5}, - [53] = {.lex_state = 5}, - [54] = {.lex_state = 5}, - [55] = {.lex_state = 5}, - [56] = {.lex_state = 5}, - [57] = {.lex_state = 5}, - [58] = {.lex_state = 5}, - [59] = {.lex_state = 4}, - [60] = {.lex_state = 0}, - [61] = {.lex_state = 4}, - [62] = {.lex_state = 4}, - [63] = {.lex_state = 4}, - [64] = {.lex_state = 4}, - [65] = {.lex_state = 4}, - [66] = {.lex_state = 4}, - [67] = {.lex_state = 4}, - [68] = {.lex_state = 4}, - [69] = {.lex_state = 4}, - [70] = {.lex_state = 4}, - [71] = {.lex_state = 4}, - [72] = {.lex_state = 4}, - [73] = {.lex_state = 4}, - [74] = {.lex_state = 4}, - [75] = {.lex_state = 4}, - [76] = {.lex_state = 4}, + [5] = {.lex_state = 2}, + [6] = {.lex_state = 2}, + [7] = {.lex_state = 2}, + [8] = {.lex_state = 2}, + [9] = {.lex_state = 2}, + [10] = {.lex_state = 2}, + [11] = {.lex_state = 2}, + [12] = {.lex_state = 2}, + [13] = {.lex_state = 2}, + [14] = {.lex_state = 2}, + [15] = {.lex_state = 2}, + [16] = {.lex_state = 2}, + [17] = {.lex_state = 2}, + [18] = {.lex_state = 2}, + [19] = {.lex_state = 2}, + [20] = {.lex_state = 2}, + [21] = {.lex_state = 2}, + [22] = {.lex_state = 2}, + [23] = {.lex_state = 2}, + [24] = {.lex_state = 2}, + [25] = {.lex_state = 2}, + [26] = {.lex_state = 2}, + [27] = {.lex_state = 2}, + [28] = {.lex_state = 2}, + [29] = {.lex_state = 2}, + [30] = {.lex_state = 2}, + [31] = {.lex_state = 2}, + [32] = {.lex_state = 2}, + [33] = {.lex_state = 2}, + [34] = {.lex_state = 2}, + [35] = {.lex_state = 2}, + [36] = {.lex_state = 2}, + [37] = {.lex_state = 2}, + [38] = {.lex_state = 2}, + [39] = {.lex_state = 2}, + [40] = {.lex_state = 2}, + [41] = {.lex_state = 2}, + [42] = {.lex_state = 2}, + [43] = {.lex_state = 2}, + [44] = {.lex_state = 2}, + [45] = {.lex_state = 2}, + [46] = {.lex_state = 2}, + [47] = {.lex_state = 2}, + [48] = {.lex_state = 2}, + [49] = {.lex_state = 2}, + [50] = {.lex_state = 2}, + [51] = {.lex_state = 2}, + [52] = {.lex_state = 2}, + [53] = {.lex_state = 2}, + [54] = {.lex_state = 2}, + [55] = {.lex_state = 2}, + [56] = {.lex_state = 2}, + [57] = {.lex_state = 2}, + [58] = {.lex_state = 2}, + [59] = {.lex_state = 2}, + [60] = {.lex_state = 2}, + [61] = {.lex_state = 2}, + [62] = {.lex_state = 2}, + [63] = {.lex_state = 2}, + [64] = {.lex_state = 2}, + [65] = {.lex_state = 2}, + [66] = {.lex_state = 2}, + [67] = {.lex_state = 2}, + [68] = {.lex_state = 0}, + [69] = {.lex_state = 2}, + [70] = {.lex_state = 2}, + [71] = {.lex_state = 2}, + [72] = {.lex_state = 2}, + [73] = {.lex_state = 2}, + [74] = {.lex_state = 2}, + [75] = {.lex_state = 2}, + [76] = {.lex_state = 2}, [77] = {.lex_state = 0}, [78] = {.lex_state = 0}, [79] = {.lex_state = 0}, @@ -923,2993 +814,3099 @@ static const TSLexerMode ts_lex_modes[STATE_COUNT] = { [82] = {.lex_state = 0}, [83] = {.lex_state = 0}, [84] = {.lex_state = 0}, - [85] = {.lex_state = 0}, + [85] = {.lex_state = 2}, [86] = {.lex_state = 0}, [87] = {.lex_state = 0}, - [88] = {.lex_state = 0}, + [88] = {.lex_state = 2}, [89] = {.lex_state = 0}, [90] = {.lex_state = 0}, - [91] = {.lex_state = 5}, - [92] = {.lex_state = 5}, - [93] = {.lex_state = 5}, - [94] = {.lex_state = 1}, - [95] = {.lex_state = 1}, - [96] = {.lex_state = 1}, - [97] = {.lex_state = 1}, - [98] = {.lex_state = 1}, - [99] = {.lex_state = 1}, - [100] = {.lex_state = 1}, - [101] = {.lex_state = 1}, - [102] = {.lex_state = 1}, - [103] = {.lex_state = 1}, - [104] = {.lex_state = 1}, - [105] = {.lex_state = 1}, - [106] = {.lex_state = 1}, - [107] = {.lex_state = 1}, - [108] = {.lex_state = 1}, - [109] = {.lex_state = 1}, - [110] = {.lex_state = 1}, - [111] = {.lex_state = 1}, - [112] = {.lex_state = 1}, - [113] = {.lex_state = 1}, - [114] = {.lex_state = 1}, - [115] = {.lex_state = 1}, - [116] = {.lex_state = 1}, - [117] = {.lex_state = 1}, - [118] = {.lex_state = 1}, - [119] = {.lex_state = 1}, - [120] = {.lex_state = 1}, - [121] = {.lex_state = 1}, - [122] = {.lex_state = 1}, - [123] = {.lex_state = 1}, - [124] = {.lex_state = 1}, + [91] = {.lex_state = 0}, + [92] = {.lex_state = 0}, + [93] = {.lex_state = 0}, + [94] = {.lex_state = 0}, + [95] = {.lex_state = 0}, + [96] = {.lex_state = 0}, + [97] = {.lex_state = 0}, + [98] = {.lex_state = 0}, + [99] = {.lex_state = 0}, + [100] = {.lex_state = 0}, + [101] = {.lex_state = 0}, + [102] = {.lex_state = 0}, + [103] = {.lex_state = 2}, + [104] = {.lex_state = 2}, + [105] = {.lex_state = 2}, + [106] = {.lex_state = 0}, + [107] = {.lex_state = 0}, + [108] = {.lex_state = 0}, + [109] = {.lex_state = 0}, + [110] = {.lex_state = 0}, + [111] = {.lex_state = 0}, + [112] = {.lex_state = 0}, + [113] = {.lex_state = 0}, + [114] = {.lex_state = 0}, + [115] = {.lex_state = 0}, + [116] = {.lex_state = 0}, + [117] = {.lex_state = 0}, + [118] = {.lex_state = 0}, + [119] = {.lex_state = 0}, + [120] = {.lex_state = 0}, + [121] = {.lex_state = 0}, + [122] = {.lex_state = 0}, + [123] = {.lex_state = 0}, + [124] = {.lex_state = 0}, [125] = {.lex_state = 0}, [126] = {.lex_state = 0}, - [127] = {.lex_state = 0}, + [127] = {.lex_state = 1}, [128] = {.lex_state = 0}, [129] = {.lex_state = 0}, [130] = {.lex_state = 0}, [131] = {.lex_state = 0}, - [132] = {.lex_state = 0}, - [133] = {.lex_state = 0}, - [134] = {.lex_state = 2}, - [135] = {.lex_state = 0}, - [136] = {.lex_state = 0}, - [137] = {.lex_state = 0}, - [138] = {.lex_state = 0}, - [139] = {.lex_state = 2}, - [140] = {.lex_state = 0}, - [141] = {.lex_state = 0}, + [132] = {.lex_state = 1}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [STATE(0)] = { [ts_builtin_sym_end] = ACTIONS(1), [sym_num] = ACTIONS(1), - [anon_sym_TRUE] = ACTIONS(1), [anon_sym_T] = ACTIONS(1), - [anon_sym_FALSE] = ACTIONS(1), [anon_sym_F] = ACTIONS(1), [sym_word] = ACTIONS(1), + [anon_sym_SEMI] = ACTIONS(1), + [anon_sym_EQ] = ACTIONS(1), + [anon_sym_EQ_EQ] = ACTIONS(1), [anon_sym_PLUS] = ACTIONS(1), [anon_sym_DASH] = ACTIONS(1), [anon_sym_STAR] = ACTIONS(1), [anon_sym_SLASH] = ACTIONS(1), - [anon_sym_eq] = ACTIONS(1), [anon_sym_LPAREN] = ACTIONS(1), [anon_sym_COMMA] = ACTIONS(1), [anon_sym_RPAREN] = ACTIONS(1), + [anon_sym_BSLASH] = ACTIONS(1), [anon_sym_LBRACE] = ACTIONS(1), [anon_sym_RBRACE] = ACTIONS(1), - [anon_sym_EQ] = ACTIONS(1), - [anon_sym_BSLASH] = ACTIONS(1), - [anon_sym__if] = ACTIONS(1), [anon_sym_if] = ACTIONS(1), [anon_sym_else] = ACTIONS(1), [anon_sym_QMARK] = ACTIONS(1), }, [STATE(1)] = { - [sym_source_file] = STATE(137), - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), + [sym_source_file] = STATE(131), + [sym__exp] = STATE(69), + [sym_bool] = STATE(69), + [sym_seqexp] = STATE(69), + [sym_vardef] = STATE(69), + [sym_eqexp] = STATE(69), + [sym_binexp] = STATE(69), + [sym_callexp] = STATE(69), + [sym_funcdef] = STATE(69), + [sym_lambda] = STATE(69), + [sym_parexp] = STATE(69), + [sym_block] = STATE(69), + [sym_ifexp] = STATE(69), + [sym_tern_ifexp] = STATE(69), [aux_sym_source_file_repeat1] = STATE(15), [ts_builtin_sym_end] = ACTIONS(3), [sym_num] = ACTIONS(5), - [anon_sym_TRUE] = ACTIONS(7), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(2)] = { - [sym__exp] = STATE(70), - [sym_bool] = STATE(70), - [sym_binexp] = STATE(70), - [sym_callexp] = STATE(70), - [sym_parexp] = STATE(70), - [sym_block] = STATE(70), - [sym_vardef] = STATE(70), - [sym_lambda] = STATE(70), - [sym_funcdef] = STATE(70), - [sym_ifexp] = STATE(70), - [sym_num] = ACTIONS(23), - [anon_sym_TRUE] = ACTIONS(7), + [sym__exp] = STATE(66), + [sym_bool] = STATE(66), + [sym_seqexp] = STATE(66), + [sym_vardef] = STATE(66), + [sym_eqexp] = STATE(66), + [sym_binexp] = STATE(66), + [sym_callexp] = STATE(66), + [sym_funcdef] = STATE(66), + [sym_lambda] = STATE(66), + [sym_parexp] = STATE(66), + [sym_block] = STATE(66), + [sym_ifexp] = STATE(66), + [sym_tern_ifexp] = STATE(66), + [aux_sym_seqexp_repeat1] = STATE(87), + [sym_num] = ACTIONS(21), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), - [anon_sym_PLUS] = ACTIONS(25), - [anon_sym_DASH] = ACTIONS(25), - [anon_sym_STAR] = ACTIONS(25), - [anon_sym_SLASH] = ACTIONS(25), - [anon_sym_eq] = ACTIONS(27), + [anon_sym_SEMI] = ACTIONS(23), + [anon_sym_EQ_EQ] = ACTIONS(25), + [anon_sym_PLUS] = ACTIONS(27), + [anon_sym_DASH] = ACTIONS(27), + [anon_sym_STAR] = ACTIONS(29), + [anon_sym_SLASH] = ACTIONS(29), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_else] = ACTIONS(29), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_else] = ACTIONS(31), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(3)] = { - [sym__exp] = STATE(99), - [sym_bool] = STATE(99), - [sym_binexp] = STATE(99), - [sym_callexp] = STATE(99), - [sym_parexp] = STATE(99), - [sym_block] = STATE(99), - [sym_vardef] = STATE(99), - [sym_lambda] = STATE(99), - [sym_funcdef] = STATE(99), - [sym_ifexp] = STATE(99), - [sym_num] = ACTIONS(31), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_PLUS] = ACTIONS(25), - [anon_sym_DASH] = ACTIONS(25), - [anon_sym_STAR] = ACTIONS(25), - [anon_sym_SLASH] = ACTIONS(25), - [anon_sym_eq] = ACTIONS(27), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym__exp] = STATE(81), + [sym_bool] = STATE(81), + [sym_seqexp] = STATE(81), + [sym_vardef] = STATE(81), + [sym_eqexp] = STATE(81), + [sym_binexp] = STATE(81), + [sym_callexp] = STATE(81), + [sym_funcdef] = STATE(81), + [sym_lambda] = STATE(81), + [sym_parexp] = STATE(81), + [sym_block] = STATE(81), + [sym_ifexp] = STATE(81), + [sym_tern_ifexp] = STATE(81), + [aux_sym_seqexp_repeat1] = STATE(87), + [sym_num] = ACTIONS(33), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_SEMI] = ACTIONS(23), + [anon_sym_EQ_EQ] = ACTIONS(25), + [anon_sym_PLUS] = ACTIONS(27), + [anon_sym_DASH] = ACTIONS(27), + [anon_sym_STAR] = ACTIONS(29), + [anon_sym_SLASH] = ACTIONS(29), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_else] = ACTIONS(47), [anon_sym_QMARK] = ACTIONS(49), }, [STATE(4)] = { - [sym__exp] = STATE(88), - [sym_bool] = STATE(88), - [sym_binexp] = STATE(88), - [sym_callexp] = STATE(88), - [sym_parexp] = STATE(88), - [sym_block] = STATE(88), - [sym_vardef] = STATE(88), - [sym_lambda] = STATE(88), - [sym_funcdef] = STATE(88), - [sym_ifexp] = STATE(88), + [sym__exp] = STATE(117), + [sym_bool] = STATE(117), + [sym_seqexp] = STATE(117), + [sym_vardef] = STATE(117), + [sym_eqexp] = STATE(117), + [sym_binexp] = STATE(117), + [sym_callexp] = STATE(117), + [sym_funcdef] = STATE(117), + [sym_lambda] = STATE(117), + [sym_parexp] = STATE(117), + [sym_block] = STATE(117), + [sym_ifexp] = STATE(117), + [sym_tern_ifexp] = STATE(117), + [aux_sym_seqexp_repeat1] = STATE(87), [sym_num] = ACTIONS(51), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_PLUS] = ACTIONS(25), - [anon_sym_DASH] = ACTIONS(25), - [anon_sym_STAR] = ACTIONS(25), - [anon_sym_SLASH] = ACTIONS(25), - [anon_sym_eq] = ACTIONS(27), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_else] = ACTIONS(67), - [anon_sym_QMARK] = ACTIONS(69), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_SEMI] = ACTIONS(23), + [anon_sym_EQ_EQ] = ACTIONS(25), + [anon_sym_PLUS] = ACTIONS(27), + [anon_sym_DASH] = ACTIONS(27), + [anon_sym_STAR] = ACTIONS(29), + [anon_sym_SLASH] = ACTIONS(29), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_else] = ACTIONS(59), + [anon_sym_QMARK] = ACTIONS(61), }, [STATE(5)] = { [sym__exp] = STATE(7), [sym_bool] = STATE(7), + [sym_seqexp] = STATE(7), + [sym_vardef] = STATE(7), + [sym_eqexp] = STATE(7), [sym_binexp] = STATE(7), [sym_callexp] = STATE(7), + [sym_funcdef] = STATE(7), + [sym_lambda] = STATE(7), [sym_parexp] = STATE(7), [sym_block] = STATE(7), - [sym_vardef] = STATE(7), - [sym_lambda] = STATE(7), - [sym_funcdef] = STATE(7), [sym_ifexp] = STATE(7), - [sym_num] = ACTIONS(71), - [anon_sym_TRUE] = ACTIONS(7), + [sym_tern_ifexp] = STATE(7), + [aux_sym_seqexp_repeat1] = STATE(64), + [sym_num] = ACTIONS(63), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(6)] = { [sym__exp] = STATE(2), [sym_bool] = STATE(2), + [sym_seqexp] = STATE(2), + [sym_vardef] = STATE(2), + [sym_eqexp] = STATE(2), [sym_binexp] = STATE(2), [sym_callexp] = STATE(2), + [sym_funcdef] = STATE(2), + [sym_lambda] = STATE(2), [sym_parexp] = STATE(2), [sym_block] = STATE(2), - [sym_vardef] = STATE(2), - [sym_lambda] = STATE(2), - [sym_funcdef] = STATE(2), [sym_ifexp] = STATE(2), - [sym_num] = ACTIONS(77), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), + [sym_tern_ifexp] = STATE(2), + [aux_sym_seqexp_repeat1] = STATE(64), + [sym_num] = ACTIONS(73), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), + [anon_sym_LPAREN] = ACTIONS(39), + [anon_sym_BSLASH] = ACTIONS(41), + [anon_sym_LBRACE] = ACTIONS(43), + [anon_sym_if] = ACTIONS(45), + [anon_sym_QMARK] = ACTIONS(49), }, [STATE(7)] = { - [sym__exp] = STATE(70), - [sym_bool] = STATE(70), - [sym_binexp] = STATE(70), - [sym_callexp] = STATE(70), - [sym_parexp] = STATE(70), - [sym_block] = STATE(70), - [sym_vardef] = STATE(70), - [sym_lambda] = STATE(70), - [sym_funcdef] = STATE(70), - [sym_ifexp] = STATE(70), - [sym_num] = ACTIONS(23), - [anon_sym_TRUE] = ACTIONS(7), + [sym__exp] = STATE(65), + [sym_bool] = STATE(65), + [sym_seqexp] = STATE(65), + [sym_vardef] = STATE(65), + [sym_eqexp] = STATE(65), + [sym_binexp] = STATE(65), + [sym_callexp] = STATE(65), + [sym_funcdef] = STATE(65), + [sym_lambda] = STATE(65), + [sym_parexp] = STATE(65), + [sym_block] = STATE(65), + [sym_ifexp] = STATE(65), + [sym_tern_ifexp] = STATE(65), + [aux_sym_seqexp_repeat1] = STATE(64), + [sym_num] = ACTIONS(75), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(8)] = { - [sym__exp] = STATE(99), - [sym_bool] = STATE(99), - [sym_binexp] = STATE(99), - [sym_callexp] = STATE(99), - [sym_parexp] = STATE(99), - [sym_block] = STATE(99), - [sym_vardef] = STATE(99), - [sym_lambda] = STATE(99), - [sym_funcdef] = STATE(99), - [sym_ifexp] = STATE(99), - [sym_num] = ACTIONS(31), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym__exp] = STATE(83), + [sym_bool] = STATE(83), + [sym_seqexp] = STATE(83), + [sym_vardef] = STATE(83), + [sym_eqexp] = STATE(83), + [sym_binexp] = STATE(83), + [sym_callexp] = STATE(83), + [sym_funcdef] = STATE(83), + [sym_lambda] = STATE(83), + [sym_parexp] = STATE(83), + [sym_block] = STATE(83), + [sym_ifexp] = STATE(83), + [sym_tern_ifexp] = STATE(83), + [aux_sym_seqexp_repeat1] = STATE(64), + [sym_num] = ACTIONS(77), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, [STATE(9)] = { - [sym__exp] = STATE(88), - [sym_bool] = STATE(88), - [sym_binexp] = STATE(88), - [sym_callexp] = STATE(88), - [sym_parexp] = STATE(88), - [sym_block] = STATE(88), - [sym_vardef] = STATE(88), - [sym_lambda] = STATE(88), - [sym_funcdef] = STATE(88), - [sym_ifexp] = STATE(88), - [sym_num] = ACTIONS(51), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), - }, - [STATE(10)] = { [sym__exp] = STATE(8), [sym_bool] = STATE(8), + [sym_seqexp] = STATE(8), + [sym_vardef] = STATE(8), + [sym_eqexp] = STATE(8), [sym_binexp] = STATE(8), [sym_callexp] = STATE(8), + [sym_funcdef] = STATE(8), + [sym_lambda] = STATE(8), [sym_parexp] = STATE(8), [sym_block] = STATE(8), - [sym_vardef] = STATE(8), - [sym_lambda] = STATE(8), - [sym_funcdef] = STATE(8), [sym_ifexp] = STATE(8), + [sym_tern_ifexp] = STATE(8), + [aux_sym_seqexp_repeat1] = STATE(64), [sym_num] = ACTIONS(79), - [anon_sym_TRUE] = ACTIONS(7), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, - [STATE(11)] = { + [STATE(10)] = { [sym__exp] = STATE(3), [sym_bool] = STATE(3), + [sym_seqexp] = STATE(3), + [sym_vardef] = STATE(3), + [sym_eqexp] = STATE(3), [sym_binexp] = STATE(3), [sym_callexp] = STATE(3), + [sym_funcdef] = STATE(3), + [sym_lambda] = STATE(3), [sym_parexp] = STATE(3), [sym_block] = STATE(3), - [sym_vardef] = STATE(3), - [sym_lambda] = STATE(3), - [sym_funcdef] = STATE(3), [sym_ifexp] = STATE(3), + [sym_tern_ifexp] = STATE(3), + [aux_sym_seqexp_repeat1] = STATE(64), [sym_num] = ACTIONS(81), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), + [anon_sym_LPAREN] = ACTIONS(39), + [anon_sym_BSLASH] = ACTIONS(41), + [anon_sym_LBRACE] = ACTIONS(43), + [anon_sym_if] = ACTIONS(45), + [anon_sym_QMARK] = ACTIONS(49), + }, + [STATE(11)] = { + [sym__exp] = STATE(116), + [sym_bool] = STATE(116), + [sym_seqexp] = STATE(116), + [sym_vardef] = STATE(116), + [sym_eqexp] = STATE(116), + [sym_binexp] = STATE(116), + [sym_callexp] = STATE(116), + [sym_funcdef] = STATE(116), + [sym_lambda] = STATE(116), + [sym_parexp] = STATE(116), + [sym_block] = STATE(116), + [sym_ifexp] = STATE(116), + [sym_tern_ifexp] = STATE(116), + [aux_sym_seqexp_repeat1] = STATE(64), + [sym_num] = ACTIONS(83), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), }, [STATE(12)] = { [sym__exp] = STATE(4), [sym_bool] = STATE(4), + [sym_seqexp] = STATE(4), + [sym_vardef] = STATE(4), + [sym_eqexp] = STATE(4), [sym_binexp] = STATE(4), [sym_callexp] = STATE(4), + [sym_funcdef] = STATE(4), + [sym_lambda] = STATE(4), [sym_parexp] = STATE(4), [sym_block] = STATE(4), - [sym_vardef] = STATE(4), - [sym_lambda] = STATE(4), - [sym_funcdef] = STATE(4), [sym_ifexp] = STATE(4), - [sym_num] = ACTIONS(83), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), + [sym_tern_ifexp] = STATE(4), + [aux_sym_seqexp_repeat1] = STATE(64), + [sym_num] = ACTIONS(85), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), + [anon_sym_LPAREN] = ACTIONS(39), + [anon_sym_BSLASH] = ACTIONS(41), + [anon_sym_LBRACE] = ACTIONS(43), + [anon_sym_if] = ACTIONS(45), + [anon_sym_QMARK] = ACTIONS(49), }, [STATE(13)] = { - [sym__exp] = STATE(9), - [sym_bool] = STATE(9), - [sym_binexp] = STATE(9), - [sym_callexp] = STATE(9), - [sym_parexp] = STATE(9), - [sym_block] = STATE(9), - [sym_vardef] = STATE(9), - [sym_lambda] = STATE(9), - [sym_funcdef] = STATE(9), - [sym_ifexp] = STATE(9), - [sym_num] = ACTIONS(85), - [anon_sym_TRUE] = ACTIONS(7), + [sym__exp] = STATE(11), + [sym_bool] = STATE(11), + [sym_seqexp] = STATE(11), + [sym_vardef] = STATE(11), + [sym_eqexp] = STATE(11), + [sym_binexp] = STATE(11), + [sym_callexp] = STATE(11), + [sym_funcdef] = STATE(11), + [sym_lambda] = STATE(11), + [sym_parexp] = STATE(11), + [sym_block] = STATE(11), + [sym_ifexp] = STATE(11), + [sym_tern_ifexp] = STATE(11), + [aux_sym_seqexp_repeat1] = STATE(64), + [sym_num] = ACTIONS(87), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), - [anon_sym_PLUS] = ACTIONS(73), - [anon_sym_DASH] = ACTIONS(73), - [anon_sym_STAR] = ACTIONS(73), - [anon_sym_SLASH] = ACTIONS(73), - [anon_sym_eq] = ACTIONS(75), + [anon_sym_SEMI] = ACTIONS(65), + [anon_sym_EQ_EQ] = ACTIONS(67), + [anon_sym_PLUS] = ACTIONS(69), + [anon_sym_DASH] = ACTIONS(69), + [anon_sym_STAR] = ACTIONS(71), + [anon_sym_SLASH] = ACTIONS(71), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(14)] = { - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), + [sym__exp] = STATE(69), + [sym_bool] = STATE(69), + [sym_seqexp] = STATE(69), + [sym_vardef] = STATE(69), + [sym_eqexp] = STATE(69), + [sym_binexp] = STATE(69), + [sym_callexp] = STATE(69), + [sym_funcdef] = STATE(69), + [sym_lambda] = STATE(69), + [sym_parexp] = STATE(69), + [sym_block] = STATE(69), + [sym_ifexp] = STATE(69), + [sym_tern_ifexp] = STATE(69), [aux_sym_source_file_repeat1] = STATE(14), - [ts_builtin_sym_end] = ACTIONS(87), - [sym_num] = ACTIONS(89), - [anon_sym_TRUE] = ACTIONS(92), - [anon_sym_T] = ACTIONS(92), - [anon_sym_FALSE] = ACTIONS(92), - [anon_sym_F] = ACTIONS(92), - [sym_word] = ACTIONS(95), - [anon_sym_LPAREN] = ACTIONS(98), - [anon_sym_LBRACE] = ACTIONS(101), - [anon_sym_RBRACE] = ACTIONS(87), - [anon_sym_BSLASH] = ACTIONS(104), - [anon_sym__if] = ACTIONS(107), - [anon_sym_if] = ACTIONS(110), - [anon_sym_QMARK] = ACTIONS(113), + [ts_builtin_sym_end] = ACTIONS(89), + [sym_num] = ACTIONS(91), + [anon_sym_T] = ACTIONS(94), + [anon_sym_F] = ACTIONS(94), + [sym_word] = ACTIONS(97), + [anon_sym_LPAREN] = ACTIONS(100), + [anon_sym_BSLASH] = ACTIONS(103), + [anon_sym_LBRACE] = ACTIONS(106), + [anon_sym_RBRACE] = ACTIONS(89), + [anon_sym_if] = ACTIONS(109), + [anon_sym_QMARK] = ACTIONS(112), }, [STATE(15)] = { - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), + [sym__exp] = STATE(69), + [sym_bool] = STATE(69), + [sym_seqexp] = STATE(69), + [sym_vardef] = STATE(69), + [sym_eqexp] = STATE(69), + [sym_binexp] = STATE(69), + [sym_callexp] = STATE(69), + [sym_funcdef] = STATE(69), + [sym_lambda] = STATE(69), + [sym_parexp] = STATE(69), + [sym_block] = STATE(69), + [sym_ifexp] = STATE(69), + [sym_tern_ifexp] = STATE(69), [aux_sym_source_file_repeat1] = STATE(14), - [ts_builtin_sym_end] = ACTIONS(116), + [ts_builtin_sym_end] = ACTIONS(115), [sym_num] = ACTIONS(5), - [anon_sym_TRUE] = ACTIONS(7), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(16)] = { - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), + [sym__exp] = STATE(69), + [sym_bool] = STATE(69), + [sym_seqexp] = STATE(69), + [sym_vardef] = STATE(69), + [sym_eqexp] = STATE(69), + [sym_binexp] = STATE(69), + [sym_callexp] = STATE(69), + [sym_funcdef] = STATE(69), + [sym_lambda] = STATE(69), + [sym_parexp] = STATE(69), + [sym_block] = STATE(69), + [sym_ifexp] = STATE(69), + [sym_tern_ifexp] = STATE(69), [aux_sym_source_file_repeat1] = STATE(14), [sym_num] = ACTIONS(5), - [anon_sym_TRUE] = ACTIONS(7), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_RBRACE] = ACTIONS(118), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_RBRACE] = ACTIONS(117), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(17)] = { - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), + [sym__exp] = STATE(69), + [sym_bool] = STATE(69), + [sym_seqexp] = STATE(69), + [sym_vardef] = STATE(69), + [sym_eqexp] = STATE(69), + [sym_binexp] = STATE(69), + [sym_callexp] = STATE(69), + [sym_funcdef] = STATE(69), + [sym_lambda] = STATE(69), + [sym_parexp] = STATE(69), + [sym_block] = STATE(69), + [sym_ifexp] = STATE(69), + [sym_tern_ifexp] = STATE(69), [aux_sym_source_file_repeat1] = STATE(16), [sym_num] = ACTIONS(5), - [anon_sym_TRUE] = ACTIONS(7), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_RBRACE] = ACTIONS(120), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_RBRACE] = ACTIONS(119), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(18)] = { - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), + [sym__exp] = STATE(69), + [sym_bool] = STATE(69), + [sym_seqexp] = STATE(69), + [sym_vardef] = STATE(69), + [sym_eqexp] = STATE(69), + [sym_binexp] = STATE(69), + [sym_callexp] = STATE(69), + [sym_funcdef] = STATE(69), + [sym_lambda] = STATE(69), + [sym_parexp] = STATE(69), + [sym_block] = STATE(69), + [sym_ifexp] = STATE(69), + [sym_tern_ifexp] = STATE(69), [aux_sym_source_file_repeat1] = STATE(14), [sym_num] = ACTIONS(5), - [anon_sym_TRUE] = ACTIONS(7), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_RBRACE] = ACTIONS(122), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_RBRACE] = ACTIONS(121), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(19)] = { - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), + [sym__exp] = STATE(69), + [sym_bool] = STATE(69), + [sym_seqexp] = STATE(69), + [sym_vardef] = STATE(69), + [sym_eqexp] = STATE(69), + [sym_binexp] = STATE(69), + [sym_callexp] = STATE(69), + [sym_funcdef] = STATE(69), + [sym_lambda] = STATE(69), + [sym_parexp] = STATE(69), + [sym_block] = STATE(69), + [sym_ifexp] = STATE(69), + [sym_tern_ifexp] = STATE(69), [aux_sym_source_file_repeat1] = STATE(18), [sym_num] = ACTIONS(5), - [anon_sym_TRUE] = ACTIONS(7), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_RBRACE] = ACTIONS(124), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_RBRACE] = ACTIONS(123), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(20)] = { - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), - [aux_sym_source_file_repeat1] = STATE(14), - [sym_num] = ACTIONS(5), - [anon_sym_TRUE] = ACTIONS(7), + [sym__exp] = STATE(101), + [sym_bool] = STATE(101), + [sym_seqexp] = STATE(101), + [sym_vardef] = STATE(101), + [sym_eqexp] = STATE(101), + [sym_binexp] = STATE(101), + [sym_callexp] = STATE(101), + [sym_funcdef] = STATE(101), + [sym_lambda] = STATE(101), + [sym_parexp] = STATE(101), + [sym_block] = STATE(101), + [sym_ifexp] = STATE(101), + [sym_tern_ifexp] = STATE(101), + [sym_num] = ACTIONS(125), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), + [sym_word] = ACTIONS(127), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_RBRACE] = ACTIONS(126), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_RPAREN] = ACTIONS(129), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), }, [STATE(21)] = { - [sym__exp] = STATE(64), - [sym_bool] = STATE(64), - [sym_binexp] = STATE(64), - [sym_callexp] = STATE(64), - [sym_parexp] = STATE(64), - [sym_block] = STATE(64), - [sym_vardef] = STATE(64), - [sym_lambda] = STATE(64), - [sym_funcdef] = STATE(64), - [sym_ifexp] = STATE(64), - [aux_sym_source_file_repeat1] = STATE(20), - [sym_num] = ACTIONS(5), - [anon_sym_TRUE] = ACTIONS(7), + [sym__exp] = STATE(100), + [sym_bool] = STATE(100), + [sym_seqexp] = STATE(100), + [sym_vardef] = STATE(100), + [sym_eqexp] = STATE(100), + [sym_binexp] = STATE(100), + [sym_callexp] = STATE(100), + [sym_funcdef] = STATE(100), + [sym_lambda] = STATE(100), + [sym_parexp] = STATE(100), + [sym_block] = STATE(100), + [sym_ifexp] = STATE(100), + [sym_tern_ifexp] = STATE(100), + [sym_num] = ACTIONS(131), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), + [sym_word] = ACTIONS(127), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_RBRACE] = ACTIONS(128), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_RPAREN] = ACTIONS(133), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), }, [STATE(22)] = { - [sym__exp] = STATE(96), - [sym_bool] = STATE(96), - [sym_binexp] = STATE(96), - [sym_callexp] = STATE(96), - [sym_parexp] = STATE(96), - [sym_block] = STATE(96), - [sym_vardef] = STATE(96), - [sym_lambda] = STATE(96), - [sym_funcdef] = STATE(96), - [sym_ifexp] = STATE(96), - [sym_num] = ACTIONS(130), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(132), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_RPAREN] = ACTIONS(134), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), + [sym__exp] = STATE(101), + [sym_bool] = STATE(101), + [sym_seqexp] = STATE(101), + [sym_vardef] = STATE(101), + [sym_eqexp] = STATE(101), + [sym_binexp] = STATE(101), + [sym_callexp] = STATE(101), + [sym_funcdef] = STATE(101), + [sym_lambda] = STATE(101), + [sym_parexp] = STATE(101), + [sym_block] = STATE(101), + [sym_ifexp] = STATE(101), + [sym_tern_ifexp] = STATE(101), + [sym_num] = ACTIONS(125), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(127), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_RPAREN] = ACTIONS(135), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), }, [STATE(23)] = { - [sym__exp] = STATE(98), - [sym_bool] = STATE(98), - [sym_binexp] = STATE(98), - [sym_callexp] = STATE(98), - [sym_parexp] = STATE(98), - [sym_block] = STATE(98), - [sym_vardef] = STATE(98), - [sym_lambda] = STATE(98), - [sym_funcdef] = STATE(98), - [sym_ifexp] = STATE(98), - [sym_num] = ACTIONS(136), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(132), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_RPAREN] = ACTIONS(138), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(24)] = { - [sym__exp] = STATE(97), - [sym_bool] = STATE(97), - [sym_binexp] = STATE(97), - [sym_callexp] = STATE(97), - [sym_parexp] = STATE(97), - [sym_block] = STATE(97), - [sym_vardef] = STATE(97), - [sym_lambda] = STATE(97), - [sym_funcdef] = STATE(97), - [sym_ifexp] = STATE(97), - [sym_num] = ACTIONS(140), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(132), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_RPAREN] = ACTIONS(142), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(25)] = { - [sym__exp] = STATE(61), - [sym_bool] = STATE(61), - [sym_binexp] = STATE(61), - [sym_callexp] = STATE(61), - [sym_parexp] = STATE(61), - [sym_block] = STATE(61), - [sym_vardef] = STATE(61), - [sym_lambda] = STATE(61), - [sym_funcdef] = STATE(61), - [sym_ifexp] = STATE(61), - [sym_num] = ACTIONS(144), - [anon_sym_TRUE] = ACTIONS(7), + [sym__exp] = STATE(63), + [sym_bool] = STATE(63), + [sym_seqexp] = STATE(63), + [sym_vardef] = STATE(63), + [sym_eqexp] = STATE(63), + [sym_binexp] = STATE(63), + [sym_callexp] = STATE(63), + [sym_funcdef] = STATE(63), + [sym_lambda] = STATE(63), + [sym_parexp] = STATE(63), + [sym_block] = STATE(63), + [sym_ifexp] = STATE(63), + [sym_tern_ifexp] = STATE(63), + [sym_num] = ACTIONS(137), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(24)] = { + [sym__exp] = STATE(13), + [sym_bool] = STATE(13), + [sym_seqexp] = STATE(13), + [sym_vardef] = STATE(13), + [sym_eqexp] = STATE(13), + [sym_binexp] = STATE(13), + [sym_callexp] = STATE(13), + [sym_funcdef] = STATE(13), + [sym_lambda] = STATE(13), + [sym_parexp] = STATE(13), + [sym_block] = STATE(13), + [sym_ifexp] = STATE(13), + [sym_tern_ifexp] = STATE(13), + [sym_num] = ACTIONS(139), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(25)] = { + [sym__exp] = STATE(114), + [sym_bool] = STATE(114), + [sym_seqexp] = STATE(114), + [sym_vardef] = STATE(114), + [sym_eqexp] = STATE(114), + [sym_binexp] = STATE(114), + [sym_callexp] = STATE(114), + [sym_funcdef] = STATE(114), + [sym_lambda] = STATE(114), + [sym_parexp] = STATE(114), + [sym_block] = STATE(114), + [sym_ifexp] = STATE(114), + [sym_tern_ifexp] = STATE(114), + [sym_num] = ACTIONS(141), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), }, [STATE(26)] = { - [sym__exp] = STATE(118), - [sym_bool] = STATE(118), - [sym_binexp] = STATE(118), - [sym_callexp] = STATE(118), - [sym_parexp] = STATE(118), - [sym_block] = STATE(118), - [sym_vardef] = STATE(118), - [sym_lambda] = STATE(118), - [sym_funcdef] = STATE(118), - [sym_ifexp] = STATE(118), - [sym_num] = ACTIONS(146), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), + [sym__exp] = STATE(67), + [sym_bool] = STATE(67), + [sym_seqexp] = STATE(67), + [sym_vardef] = STATE(67), + [sym_eqexp] = STATE(67), + [sym_binexp] = STATE(67), + [sym_callexp] = STATE(67), + [sym_funcdef] = STATE(67), + [sym_lambda] = STATE(67), + [sym_parexp] = STATE(67), + [sym_block] = STATE(67), + [sym_ifexp] = STATE(67), + [sym_tern_ifexp] = STATE(67), + [sym_num] = ACTIONS(143), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(27)] = { - [sym__exp] = STATE(103), - [sym_bool] = STATE(103), - [sym_binexp] = STATE(103), - [sym_callexp] = STATE(103), - [sym_parexp] = STATE(103), - [sym_block] = STATE(103), - [sym_vardef] = STATE(103), - [sym_lambda] = STATE(103), - [sym_funcdef] = STATE(103), - [sym_ifexp] = STATE(103), - [sym_num] = ACTIONS(148), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym__exp] = STATE(86), + [sym_bool] = STATE(86), + [sym_seqexp] = STATE(86), + [sym_vardef] = STATE(86), + [sym_eqexp] = STATE(86), + [sym_binexp] = STATE(86), + [sym_callexp] = STATE(86), + [sym_funcdef] = STATE(86), + [sym_lambda] = STATE(86), + [sym_parexp] = STATE(86), + [sym_block] = STATE(86), + [sym_ifexp] = STATE(86), + [sym_tern_ifexp] = STATE(86), + [sym_num] = ACTIONS(145), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, [STATE(28)] = { - [sym__exp] = STATE(113), - [sym_bool] = STATE(113), - [sym_binexp] = STATE(113), - [sym_callexp] = STATE(113), - [sym_parexp] = STATE(113), - [sym_block] = STATE(113), - [sym_vardef] = STATE(113), - [sym_lambda] = STATE(113), - [sym_funcdef] = STATE(113), - [sym_ifexp] = STATE(113), - [sym_num] = ACTIONS(150), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym__exp] = STATE(89), + [sym_bool] = STATE(89), + [sym_seqexp] = STATE(89), + [sym_vardef] = STATE(89), + [sym_eqexp] = STATE(89), + [sym_binexp] = STATE(89), + [sym_callexp] = STATE(89), + [sym_funcdef] = STATE(89), + [sym_lambda] = STATE(89), + [sym_parexp] = STATE(89), + [sym_block] = STATE(89), + [sym_ifexp] = STATE(89), + [sym_tern_ifexp] = STATE(89), + [sym_num] = ACTIONS(147), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, [STATE(29)] = { - [sym__exp] = STATE(72), - [sym_bool] = STATE(72), - [sym_binexp] = STATE(72), - [sym_callexp] = STATE(72), - [sym_parexp] = STATE(72), - [sym_block] = STATE(72), - [sym_vardef] = STATE(72), - [sym_lambda] = STATE(72), - [sym_funcdef] = STATE(72), - [sym_ifexp] = STATE(72), - [sym_num] = ACTIONS(152), - [anon_sym_TRUE] = ACTIONS(7), + [sym__exp] = STATE(74), + [sym_bool] = STATE(74), + [sym_seqexp] = STATE(74), + [sym_vardef] = STATE(74), + [sym_eqexp] = STATE(74), + [sym_binexp] = STATE(74), + [sym_callexp] = STATE(74), + [sym_funcdef] = STATE(74), + [sym_lambda] = STATE(74), + [sym_parexp] = STATE(74), + [sym_block] = STATE(74), + [sym_ifexp] = STATE(74), + [sym_tern_ifexp] = STATE(74), + [sym_num] = ACTIONS(149), [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), [anon_sym_F] = ACTIONS(7), [sym_word] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(30)] = { - [sym__exp] = STATE(120), - [sym_bool] = STATE(120), - [sym_binexp] = STATE(120), - [sym_callexp] = STATE(120), - [sym_parexp] = STATE(120), - [sym_block] = STATE(120), - [sym_vardef] = STATE(120), - [sym_lambda] = STATE(120), - [sym_funcdef] = STATE(120), - [sym_ifexp] = STATE(120), - [sym_num] = ACTIONS(154), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym__exp] = STATE(77), + [sym_bool] = STATE(77), + [sym_seqexp] = STATE(77), + [sym_vardef] = STATE(77), + [sym_eqexp] = STATE(77), + [sym_binexp] = STATE(77), + [sym_callexp] = STATE(77), + [sym_funcdef] = STATE(77), + [sym_lambda] = STATE(77), + [sym_parexp] = STATE(77), + [sym_block] = STATE(77), + [sym_ifexp] = STATE(77), + [sym_tern_ifexp] = STATE(77), + [sym_num] = ACTIONS(151), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, [STATE(31)] = { - [sym__exp] = STATE(105), - [sym_bool] = STATE(105), - [sym_binexp] = STATE(105), - [sym_callexp] = STATE(105), - [sym_parexp] = STATE(105), - [sym_block] = STATE(105), - [sym_vardef] = STATE(105), - [sym_lambda] = STATE(105), - [sym_funcdef] = STATE(105), - [sym_ifexp] = STATE(105), - [sym_num] = ACTIONS(156), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym__exp] = STATE(79), + [sym_bool] = STATE(79), + [sym_seqexp] = STATE(79), + [sym_vardef] = STATE(79), + [sym_eqexp] = STATE(79), + [sym_binexp] = STATE(79), + [sym_callexp] = STATE(79), + [sym_funcdef] = STATE(79), + [sym_lambda] = STATE(79), + [sym_parexp] = STATE(79), + [sym_block] = STATE(79), + [sym_ifexp] = STATE(79), + [sym_tern_ifexp] = STATE(79), + [sym_num] = ACTIONS(153), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, [STATE(32)] = { - [sym__exp] = STATE(106), - [sym_bool] = STATE(106), - [sym_binexp] = STATE(106), - [sym_callexp] = STATE(106), - [sym_parexp] = STATE(106), - [sym_block] = STATE(106), - [sym_vardef] = STATE(106), - [sym_lambda] = STATE(106), - [sym_funcdef] = STATE(106), - [sym_ifexp] = STATE(106), - [sym_num] = ACTIONS(158), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym__exp] = STATE(80), + [sym_bool] = STATE(80), + [sym_seqexp] = STATE(80), + [sym_vardef] = STATE(80), + [sym_eqexp] = STATE(80), + [sym_binexp] = STATE(80), + [sym_callexp] = STATE(80), + [sym_funcdef] = STATE(80), + [sym_lambda] = STATE(80), + [sym_parexp] = STATE(80), + [sym_block] = STATE(80), + [sym_ifexp] = STATE(80), + [sym_tern_ifexp] = STATE(80), + [sym_num] = ACTIONS(155), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, [STATE(33)] = { - [sym__exp] = STATE(109), - [sym_bool] = STATE(109), - [sym_binexp] = STATE(109), - [sym_callexp] = STATE(109), - [sym_parexp] = STATE(109), - [sym_block] = STATE(109), - [sym_vardef] = STATE(109), - [sym_lambda] = STATE(109), - [sym_funcdef] = STATE(109), - [sym_ifexp] = STATE(109), - [sym_num] = ACTIONS(160), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym__exp] = STATE(78), + [sym_bool] = STATE(78), + [sym_seqexp] = STATE(78), + [sym_vardef] = STATE(78), + [sym_eqexp] = STATE(78), + [sym_binexp] = STATE(78), + [sym_callexp] = STATE(78), + [sym_funcdef] = STATE(78), + [sym_lambda] = STATE(78), + [sym_parexp] = STATE(78), + [sym_block] = STATE(78), + [sym_ifexp] = STATE(78), + [sym_tern_ifexp] = STATE(78), + [sym_num] = ACTIONS(157), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, [STATE(34)] = { - [sym__exp] = STATE(111), - [sym_bool] = STATE(111), - [sym_binexp] = STATE(111), - [sym_callexp] = STATE(111), - [sym_parexp] = STATE(111), - [sym_block] = STATE(111), - [sym_vardef] = STATE(111), - [sym_lambda] = STATE(111), - [sym_funcdef] = STATE(111), - [sym_ifexp] = STATE(111), - [sym_num] = ACTIONS(162), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), + [sym__exp] = STATE(76), + [sym_bool] = STATE(76), + [sym_seqexp] = STATE(76), + [sym_vardef] = STATE(76), + [sym_eqexp] = STATE(76), + [sym_binexp] = STATE(76), + [sym_callexp] = STATE(76), + [sym_funcdef] = STATE(76), + [sym_lambda] = STATE(76), + [sym_parexp] = STATE(76), + [sym_block] = STATE(76), + [sym_ifexp] = STATE(76), + [sym_tern_ifexp] = STATE(76), + [sym_num] = ACTIONS(159), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), }, [STATE(35)] = { - [sym__exp] = STATE(124), - [sym_bool] = STATE(124), - [sym_binexp] = STATE(124), - [sym_callexp] = STATE(124), - [sym_parexp] = STATE(124), - [sym_block] = STATE(124), - [sym_vardef] = STATE(124), - [sym_lambda] = STATE(124), - [sym_funcdef] = STATE(124), - [sym_ifexp] = STATE(124), - [sym_num] = ACTIONS(164), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(36)] = { - [sym__exp] = STATE(80), - [sym_bool] = STATE(80), - [sym_binexp] = STATE(80), - [sym_callexp] = STATE(80), - [sym_parexp] = STATE(80), - [sym_block] = STATE(80), - [sym_vardef] = STATE(80), - [sym_lambda] = STATE(80), - [sym_funcdef] = STATE(80), - [sym_ifexp] = STATE(80), - [sym_num] = ACTIONS(166), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), - }, - [STATE(37)] = { - [sym__exp] = STATE(83), - [sym_bool] = STATE(83), - [sym_binexp] = STATE(83), - [sym_callexp] = STATE(83), - [sym_parexp] = STATE(83), - [sym_block] = STATE(83), - [sym_vardef] = STATE(83), - [sym_lambda] = STATE(83), - [sym_funcdef] = STATE(83), - [sym_ifexp] = STATE(83), - [sym_num] = ACTIONS(168), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), - }, - [STATE(38)] = { - [sym__exp] = STATE(84), - [sym_bool] = STATE(84), - [sym_binexp] = STATE(84), - [sym_callexp] = STATE(84), - [sym_parexp] = STATE(84), - [sym_block] = STATE(84), - [sym_vardef] = STATE(84), - [sym_lambda] = STATE(84), - [sym_funcdef] = STATE(84), - [sym_ifexp] = STATE(84), - [sym_num] = ACTIONS(170), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), - }, - [STATE(39)] = { - [sym__exp] = STATE(85), - [sym_bool] = STATE(85), - [sym_binexp] = STATE(85), - [sym_callexp] = STATE(85), - [sym_parexp] = STATE(85), - [sym_block] = STATE(85), - [sym_vardef] = STATE(85), - [sym_lambda] = STATE(85), - [sym_funcdef] = STATE(85), - [sym_ifexp] = STATE(85), - [sym_num] = ACTIONS(172), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), - }, - [STATE(40)] = { - [sym__exp] = STATE(63), - [sym_bool] = STATE(63), - [sym_binexp] = STATE(63), - [sym_callexp] = STATE(63), - [sym_parexp] = STATE(63), - [sym_block] = STATE(63), - [sym_vardef] = STATE(63), - [sym_lambda] = STATE(63), - [sym_funcdef] = STATE(63), - [sym_ifexp] = STATE(63), - [sym_num] = ACTIONS(174), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(41)] = { - [sym__exp] = STATE(87), - [sym_bool] = STATE(87), - [sym_binexp] = STATE(87), - [sym_callexp] = STATE(87), - [sym_parexp] = STATE(87), - [sym_block] = STATE(87), - [sym_vardef] = STATE(87), - [sym_lambda] = STATE(87), - [sym_funcdef] = STATE(87), - [sym_ifexp] = STATE(87), - [sym_num] = ACTIONS(176), - [anon_sym_TRUE] = ACTIONS(53), - [anon_sym_T] = ACTIONS(53), - [anon_sym_FALSE] = ACTIONS(53), - [anon_sym_F] = ACTIONS(53), - [sym_word] = ACTIONS(55), - [anon_sym_LPAREN] = ACTIONS(57), - [anon_sym_LBRACE] = ACTIONS(59), - [anon_sym_BSLASH] = ACTIONS(61), - [anon_sym__if] = ACTIONS(63), - [anon_sym_if] = ACTIONS(65), - [anon_sym_QMARK] = ACTIONS(69), - }, - [STATE(42)] = { - [sym__exp] = STATE(74), - [sym_bool] = STATE(74), - [sym_binexp] = STATE(74), - [sym_callexp] = STATE(74), - [sym_parexp] = STATE(74), - [sym_block] = STATE(74), - [sym_vardef] = STATE(74), - [sym_lambda] = STATE(74), - [sym_funcdef] = STATE(74), - [sym_ifexp] = STATE(74), - [sym_num] = ACTIONS(178), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(43)] = { - [sym__exp] = STATE(114), - [sym_bool] = STATE(114), - [sym_binexp] = STATE(114), - [sym_callexp] = STATE(114), - [sym_parexp] = STATE(114), - [sym_block] = STATE(114), - [sym_vardef] = STATE(114), - [sym_lambda] = STATE(114), - [sym_funcdef] = STATE(114), - [sym_ifexp] = STATE(114), - [sym_num] = ACTIONS(180), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(44)] = { - [sym__exp] = STATE(6), - [sym_bool] = STATE(6), - [sym_binexp] = STATE(6), - [sym_callexp] = STATE(6), - [sym_parexp] = STATE(6), - [sym_block] = STATE(6), - [sym_vardef] = STATE(6), - [sym_lambda] = STATE(6), - [sym_funcdef] = STATE(6), - [sym_ifexp] = STATE(6), - [sym_num] = ACTIONS(182), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(45)] = { - [sym__exp] = STATE(62), - [sym_bool] = STATE(62), - [sym_binexp] = STATE(62), - [sym_callexp] = STATE(62), - [sym_parexp] = STATE(62), - [sym_block] = STATE(62), - [sym_vardef] = STATE(62), - [sym_lambda] = STATE(62), - [sym_funcdef] = STATE(62), - [sym_ifexp] = STATE(62), - [sym_num] = ACTIONS(184), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(46)] = { - [sym__exp] = STATE(5), - [sym_bool] = STATE(5), - [sym_binexp] = STATE(5), - [sym_callexp] = STATE(5), - [sym_parexp] = STATE(5), - [sym_block] = STATE(5), - [sym_vardef] = STATE(5), - [sym_lambda] = STATE(5), - [sym_funcdef] = STATE(5), - [sym_ifexp] = STATE(5), - [sym_num] = ACTIONS(186), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(47)] = { - [sym__exp] = STATE(117), - [sym_bool] = STATE(117), - [sym_binexp] = STATE(117), - [sym_callexp] = STATE(117), - [sym_parexp] = STATE(117), - [sym_block] = STATE(117), - [sym_vardef] = STATE(117), - [sym_lambda] = STATE(117), - [sym_funcdef] = STATE(117), - [sym_ifexp] = STATE(117), - [sym_num] = ACTIONS(188), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(48)] = { - [sym__exp] = STATE(11), - [sym_bool] = STATE(11), - [sym_binexp] = STATE(11), - [sym_callexp] = STATE(11), - [sym_parexp] = STATE(11), - [sym_block] = STATE(11), - [sym_vardef] = STATE(11), - [sym_lambda] = STATE(11), - [sym_funcdef] = STATE(11), - [sym_ifexp] = STATE(11), - [sym_num] = ACTIONS(190), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(49)] = { - [sym__exp] = STATE(10), - [sym_bool] = STATE(10), - [sym_binexp] = STATE(10), - [sym_callexp] = STATE(10), - [sym_parexp] = STATE(10), - [sym_block] = STATE(10), - [sym_vardef] = STATE(10), - [sym_lambda] = STATE(10), - [sym_funcdef] = STATE(10), - [sym_ifexp] = STATE(10), - [sym_num] = ACTIONS(192), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(50)] = { - [sym__exp] = STATE(121), - [sym_bool] = STATE(121), - [sym_binexp] = STATE(121), - [sym_callexp] = STATE(121), - [sym_parexp] = STATE(121), - [sym_block] = STATE(121), - [sym_vardef] = STATE(121), - [sym_lambda] = STATE(121), - [sym_funcdef] = STATE(121), - [sym_ifexp] = STATE(121), - [sym_num] = ACTIONS(194), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(51)] = { - [sym__exp] = STATE(115), - [sym_bool] = STATE(115), - [sym_binexp] = STATE(115), - [sym_callexp] = STATE(115), - [sym_parexp] = STATE(115), - [sym_block] = STATE(115), - [sym_vardef] = STATE(115), - [sym_lambda] = STATE(115), - [sym_funcdef] = STATE(115), - [sym_ifexp] = STATE(115), - [sym_num] = ACTIONS(196), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(52)] = { - [sym__exp] = STATE(12), - [sym_bool] = STATE(12), - [sym_binexp] = STATE(12), - [sym_callexp] = STATE(12), - [sym_parexp] = STATE(12), - [sym_block] = STATE(12), - [sym_vardef] = STATE(12), - [sym_lambda] = STATE(12), - [sym_funcdef] = STATE(12), - [sym_ifexp] = STATE(12), - [sym_num] = ACTIONS(198), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(53)] = { - [sym__exp] = STATE(13), - [sym_bool] = STATE(13), - [sym_binexp] = STATE(13), - [sym_callexp] = STATE(13), - [sym_parexp] = STATE(13), - [sym_block] = STATE(13), - [sym_vardef] = STATE(13), - [sym_lambda] = STATE(13), - [sym_funcdef] = STATE(13), - [sym_ifexp] = STATE(13), - [sym_num] = ACTIONS(200), - [anon_sym_TRUE] = ACTIONS(7), - [anon_sym_T] = ACTIONS(7), - [anon_sym_FALSE] = ACTIONS(7), - [anon_sym_F] = ACTIONS(7), - [sym_word] = ACTIONS(9), - [anon_sym_LPAREN] = ACTIONS(11), - [anon_sym_LBRACE] = ACTIONS(13), - [anon_sym_BSLASH] = ACTIONS(15), - [anon_sym__if] = ACTIONS(17), - [anon_sym_if] = ACTIONS(19), - [anon_sym_QMARK] = ACTIONS(21), - }, - [STATE(54)] = { - [sym__exp] = STATE(116), - [sym_bool] = STATE(116), - [sym_binexp] = STATE(116), - [sym_callexp] = STATE(116), - [sym_parexp] = STATE(116), - [sym_block] = STATE(116), - [sym_vardef] = STATE(116), - [sym_lambda] = STATE(116), - [sym_funcdef] = STATE(116), - [sym_ifexp] = STATE(116), - [sym_num] = ACTIONS(202), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(55)] = { - [sym__exp] = STATE(122), - [sym_bool] = STATE(122), - [sym_binexp] = STATE(122), - [sym_callexp] = STATE(122), - [sym_parexp] = STATE(122), - [sym_block] = STATE(122), - [sym_vardef] = STATE(122), - [sym_lambda] = STATE(122), - [sym_funcdef] = STATE(122), - [sym_ifexp] = STATE(122), - [sym_num] = ACTIONS(204), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(56)] = { - [sym__exp] = STATE(123), - [sym_bool] = STATE(123), - [sym_binexp] = STATE(123), - [sym_callexp] = STATE(123), - [sym_parexp] = STATE(123), - [sym_block] = STATE(123), - [sym_vardef] = STATE(123), - [sym_lambda] = STATE(123), - [sym_funcdef] = STATE(123), - [sym_ifexp] = STATE(123), - [sym_num] = ACTIONS(206), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), - [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), - [anon_sym_if] = ACTIONS(45), - [anon_sym_QMARK] = ACTIONS(49), - }, - [STATE(57)] = { [sym__exp] = STATE(119), [sym_bool] = STATE(119), + [sym_seqexp] = STATE(119), + [sym_vardef] = STATE(119), + [sym_eqexp] = STATE(119), [sym_binexp] = STATE(119), [sym_callexp] = STATE(119), + [sym_funcdef] = STATE(119), + [sym_lambda] = STATE(119), [sym_parexp] = STATE(119), [sym_block] = STATE(119), - [sym_vardef] = STATE(119), - [sym_lambda] = STATE(119), - [sym_funcdef] = STATE(119), [sym_ifexp] = STATE(119), - [sym_num] = ACTIONS(208), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [sym_tern_ifexp] = STATE(119), + [sym_num] = ACTIONS(161), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(36)] = { + [sym__exp] = STATE(73), + [sym_bool] = STATE(73), + [sym_seqexp] = STATE(73), + [sym_vardef] = STATE(73), + [sym_eqexp] = STATE(73), + [sym_binexp] = STATE(73), + [sym_callexp] = STATE(73), + [sym_funcdef] = STATE(73), + [sym_lambda] = STATE(73), + [sym_parexp] = STATE(73), + [sym_block] = STATE(73), + [sym_ifexp] = STATE(73), + [sym_tern_ifexp] = STATE(73), + [sym_num] = ACTIONS(163), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(37)] = { + [sym__exp] = STATE(84), + [sym_bool] = STATE(84), + [sym_seqexp] = STATE(84), + [sym_vardef] = STATE(84), + [sym_eqexp] = STATE(84), + [sym_binexp] = STATE(84), + [sym_callexp] = STATE(84), + [sym_funcdef] = STATE(84), + [sym_lambda] = STATE(84), + [sym_parexp] = STATE(84), + [sym_block] = STATE(84), + [sym_ifexp] = STATE(84), + [sym_tern_ifexp] = STATE(84), + [sym_num] = ACTIONS(165), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, - [STATE(58)] = { - [sym__exp] = STATE(101), - [sym_bool] = STATE(101), - [sym_binexp] = STATE(101), - [sym_callexp] = STATE(101), - [sym_parexp] = STATE(101), - [sym_block] = STATE(101), - [sym_vardef] = STATE(101), - [sym_lambda] = STATE(101), - [sym_funcdef] = STATE(101), - [sym_ifexp] = STATE(101), - [sym_num] = ACTIONS(210), - [anon_sym_TRUE] = ACTIONS(33), - [anon_sym_T] = ACTIONS(33), - [anon_sym_FALSE] = ACTIONS(33), - [anon_sym_F] = ACTIONS(33), - [sym_word] = ACTIONS(35), - [anon_sym_LPAREN] = ACTIONS(37), - [anon_sym_LBRACE] = ACTIONS(39), + [STATE(38)] = { + [sym__exp] = STATE(70), + [sym_bool] = STATE(70), + [sym_seqexp] = STATE(70), + [sym_vardef] = STATE(70), + [sym_eqexp] = STATE(70), + [sym_binexp] = STATE(70), + [sym_callexp] = STATE(70), + [sym_funcdef] = STATE(70), + [sym_lambda] = STATE(70), + [sym_parexp] = STATE(70), + [sym_block] = STATE(70), + [sym_ifexp] = STATE(70), + [sym_tern_ifexp] = STATE(70), + [sym_num] = ACTIONS(167), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(39)] = { + [sym__exp] = STATE(118), + [sym_bool] = STATE(118), + [sym_seqexp] = STATE(118), + [sym_vardef] = STATE(118), + [sym_eqexp] = STATE(118), + [sym_binexp] = STATE(118), + [sym_callexp] = STATE(118), + [sym_funcdef] = STATE(118), + [sym_lambda] = STATE(118), + [sym_parexp] = STATE(118), + [sym_block] = STATE(118), + [sym_ifexp] = STATE(118), + [sym_tern_ifexp] = STATE(118), + [sym_num] = ACTIONS(169), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(40)] = { + [sym__exp] = STATE(10), + [sym_bool] = STATE(10), + [sym_seqexp] = STATE(10), + [sym_vardef] = STATE(10), + [sym_eqexp] = STATE(10), + [sym_binexp] = STATE(10), + [sym_callexp] = STATE(10), + [sym_funcdef] = STATE(10), + [sym_lambda] = STATE(10), + [sym_parexp] = STATE(10), + [sym_block] = STATE(10), + [sym_ifexp] = STATE(10), + [sym_tern_ifexp] = STATE(10), + [sym_num] = ACTIONS(171), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(41)] = { + [sym__exp] = STATE(9), + [sym_bool] = STATE(9), + [sym_seqexp] = STATE(9), + [sym_vardef] = STATE(9), + [sym_eqexp] = STATE(9), + [sym_binexp] = STATE(9), + [sym_callexp] = STATE(9), + [sym_funcdef] = STATE(9), + [sym_lambda] = STATE(9), + [sym_parexp] = STATE(9), + [sym_block] = STATE(9), + [sym_ifexp] = STATE(9), + [sym_tern_ifexp] = STATE(9), + [sym_num] = ACTIONS(173), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(42)] = { + [sym__exp] = STATE(108), + [sym_bool] = STATE(108), + [sym_seqexp] = STATE(108), + [sym_vardef] = STATE(108), + [sym_eqexp] = STATE(108), + [sym_binexp] = STATE(108), + [sym_callexp] = STATE(108), + [sym_funcdef] = STATE(108), + [sym_lambda] = STATE(108), + [sym_parexp] = STATE(108), + [sym_block] = STATE(108), + [sym_ifexp] = STATE(108), + [sym_tern_ifexp] = STATE(108), + [sym_num] = ACTIONS(175), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(43)] = { + [sym__exp] = STATE(106), + [sym_bool] = STATE(106), + [sym_seqexp] = STATE(106), + [sym_vardef] = STATE(106), + [sym_eqexp] = STATE(106), + [sym_binexp] = STATE(106), + [sym_callexp] = STATE(106), + [sym_funcdef] = STATE(106), + [sym_lambda] = STATE(106), + [sym_parexp] = STATE(106), + [sym_block] = STATE(106), + [sym_ifexp] = STATE(106), + [sym_tern_ifexp] = STATE(106), + [sym_num] = ACTIONS(177), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(44)] = { + [sym__exp] = STATE(109), + [sym_bool] = STATE(109), + [sym_seqexp] = STATE(109), + [sym_vardef] = STATE(109), + [sym_eqexp] = STATE(109), + [sym_binexp] = STATE(109), + [sym_callexp] = STATE(109), + [sym_funcdef] = STATE(109), + [sym_lambda] = STATE(109), + [sym_parexp] = STATE(109), + [sym_block] = STATE(109), + [sym_ifexp] = STATE(109), + [sym_tern_ifexp] = STATE(109), + [sym_num] = ACTIONS(179), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(45)] = { + [sym__exp] = STATE(111), + [sym_bool] = STATE(111), + [sym_seqexp] = STATE(111), + [sym_vardef] = STATE(111), + [sym_eqexp] = STATE(111), + [sym_binexp] = STATE(111), + [sym_callexp] = STATE(111), + [sym_funcdef] = STATE(111), + [sym_lambda] = STATE(111), + [sym_parexp] = STATE(111), + [sym_block] = STATE(111), + [sym_ifexp] = STATE(111), + [sym_tern_ifexp] = STATE(111), + [sym_num] = ACTIONS(181), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(46)] = { + [sym__exp] = STATE(102), + [sym_bool] = STATE(102), + [sym_seqexp] = STATE(102), + [sym_vardef] = STATE(102), + [sym_eqexp] = STATE(102), + [sym_binexp] = STATE(102), + [sym_callexp] = STATE(102), + [sym_funcdef] = STATE(102), + [sym_lambda] = STATE(102), + [sym_parexp] = STATE(102), + [sym_block] = STATE(102), + [sym_ifexp] = STATE(102), + [sym_tern_ifexp] = STATE(102), + [sym_num] = ACTIONS(183), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(47)] = { + [sym__exp] = STATE(113), + [sym_bool] = STATE(113), + [sym_seqexp] = STATE(113), + [sym_vardef] = STATE(113), + [sym_eqexp] = STATE(113), + [sym_binexp] = STATE(113), + [sym_callexp] = STATE(113), + [sym_funcdef] = STATE(113), + [sym_lambda] = STATE(113), + [sym_parexp] = STATE(113), + [sym_block] = STATE(113), + [sym_ifexp] = STATE(113), + [sym_tern_ifexp] = STATE(113), + [sym_num] = ACTIONS(185), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(48)] = { + [sym__exp] = STATE(110), + [sym_bool] = STATE(110), + [sym_seqexp] = STATE(110), + [sym_vardef] = STATE(110), + [sym_eqexp] = STATE(110), + [sym_binexp] = STATE(110), + [sym_callexp] = STATE(110), + [sym_funcdef] = STATE(110), + [sym_lambda] = STATE(110), + [sym_parexp] = STATE(110), + [sym_block] = STATE(110), + [sym_ifexp] = STATE(110), + [sym_tern_ifexp] = STATE(110), + [sym_num] = ACTIONS(187), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(49)] = { + [sym__exp] = STATE(6), + [sym_bool] = STATE(6), + [sym_seqexp] = STATE(6), + [sym_vardef] = STATE(6), + [sym_eqexp] = STATE(6), + [sym_binexp] = STATE(6), + [sym_callexp] = STATE(6), + [sym_funcdef] = STATE(6), + [sym_lambda] = STATE(6), + [sym_parexp] = STATE(6), + [sym_block] = STATE(6), + [sym_ifexp] = STATE(6), + [sym_tern_ifexp] = STATE(6), + [sym_num] = ACTIONS(189), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(50)] = { + [sym__exp] = STATE(5), + [sym_bool] = STATE(5), + [sym_seqexp] = STATE(5), + [sym_vardef] = STATE(5), + [sym_eqexp] = STATE(5), + [sym_binexp] = STATE(5), + [sym_callexp] = STATE(5), + [sym_funcdef] = STATE(5), + [sym_lambda] = STATE(5), + [sym_parexp] = STATE(5), + [sym_block] = STATE(5), + [sym_ifexp] = STATE(5), + [sym_tern_ifexp] = STATE(5), + [sym_num] = ACTIONS(191), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(51)] = { + [sym__exp] = STATE(112), + [sym_bool] = STATE(112), + [sym_seqexp] = STATE(112), + [sym_vardef] = STATE(112), + [sym_eqexp] = STATE(112), + [sym_binexp] = STATE(112), + [sym_callexp] = STATE(112), + [sym_funcdef] = STATE(112), + [sym_lambda] = STATE(112), + [sym_parexp] = STATE(112), + [sym_block] = STATE(112), + [sym_ifexp] = STATE(112), + [sym_tern_ifexp] = STATE(112), + [sym_num] = ACTIONS(193), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(53), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(55), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(57), + [anon_sym_QMARK] = ACTIONS(61), + }, + [STATE(52)] = { + [sym__exp] = STATE(71), + [sym_bool] = STATE(71), + [sym_seqexp] = STATE(71), + [sym_vardef] = STATE(71), + [sym_eqexp] = STATE(71), + [sym_binexp] = STATE(71), + [sym_callexp] = STATE(71), + [sym_funcdef] = STATE(71), + [sym_lambda] = STATE(71), + [sym_parexp] = STATE(71), + [sym_block] = STATE(71), + [sym_ifexp] = STATE(71), + [sym_tern_ifexp] = STATE(71), + [sym_num] = ACTIONS(195), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(53)] = { + [sym__exp] = STATE(72), + [sym_bool] = STATE(72), + [sym_seqexp] = STATE(72), + [sym_vardef] = STATE(72), + [sym_eqexp] = STATE(72), + [sym_binexp] = STATE(72), + [sym_callexp] = STATE(72), + [sym_funcdef] = STATE(72), + [sym_lambda] = STATE(72), + [sym_parexp] = STATE(72), + [sym_block] = STATE(72), + [sym_ifexp] = STATE(72), + [sym_tern_ifexp] = STATE(72), + [sym_num] = ACTIONS(197), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(54)] = { + [sym__exp] = STATE(12), + [sym_bool] = STATE(12), + [sym_seqexp] = STATE(12), + [sym_vardef] = STATE(12), + [sym_eqexp] = STATE(12), + [sym_binexp] = STATE(12), + [sym_callexp] = STATE(12), + [sym_funcdef] = STATE(12), + [sym_lambda] = STATE(12), + [sym_parexp] = STATE(12), + [sym_block] = STATE(12), + [sym_ifexp] = STATE(12), + [sym_tern_ifexp] = STATE(12), + [sym_num] = ACTIONS(199), + [anon_sym_T] = ACTIONS(7), + [anon_sym_F] = ACTIONS(7), + [sym_word] = ACTIONS(9), + [anon_sym_LPAREN] = ACTIONS(11), + [anon_sym_BSLASH] = ACTIONS(13), + [anon_sym_LBRACE] = ACTIONS(15), + [anon_sym_if] = ACTIONS(17), + [anon_sym_QMARK] = ACTIONS(19), + }, + [STATE(55)] = { + [sym__exp] = STATE(90), + [sym_bool] = STATE(90), + [sym_seqexp] = STATE(90), + [sym_vardef] = STATE(90), + [sym_eqexp] = STATE(90), + [sym_binexp] = STATE(90), + [sym_callexp] = STATE(90), + [sym_funcdef] = STATE(90), + [sym_lambda] = STATE(90), + [sym_parexp] = STATE(90), + [sym_block] = STATE(90), + [sym_ifexp] = STATE(90), + [sym_tern_ifexp] = STATE(90), + [sym_num] = ACTIONS(201), + [anon_sym_T] = ACTIONS(35), + [anon_sym_F] = ACTIONS(35), + [sym_word] = ACTIONS(37), + [anon_sym_LPAREN] = ACTIONS(39), [anon_sym_BSLASH] = ACTIONS(41), - [anon_sym__if] = ACTIONS(43), + [anon_sym_LBRACE] = ACTIONS(43), [anon_sym_if] = ACTIONS(45), [anon_sym_QMARK] = ACTIONS(49), }, - [STATE(59)] = { - [sym_params] = STATE(40), - [ts_builtin_sym_end] = ACTIONS(212), - [sym_num] = ACTIONS(212), - [anon_sym_TRUE] = ACTIONS(214), - [anon_sym_T] = ACTIONS(214), - [anon_sym_FALSE] = ACTIONS(214), - [anon_sym_F] = ACTIONS(214), - [sym_word] = ACTIONS(214), - [anon_sym_PLUS] = ACTIONS(212), - [anon_sym_DASH] = ACTIONS(212), - [anon_sym_STAR] = ACTIONS(212), - [anon_sym_SLASH] = ACTIONS(212), - [anon_sym_eq] = ACTIONS(214), - [anon_sym_LPAREN] = ACTIONS(216), - [anon_sym_LBRACE] = ACTIONS(212), - [anon_sym_RBRACE] = ACTIONS(212), - [anon_sym_EQ] = ACTIONS(218), - [anon_sym_BSLASH] = ACTIONS(212), - [anon_sym__if] = ACTIONS(214), - [anon_sym_if] = ACTIONS(214), - [anon_sym_QMARK] = ACTIONS(212), - }, - [STATE(60)] = { - [sym_params] = STATE(37), - [sym_num] = ACTIONS(212), - [anon_sym_TRUE] = ACTIONS(214), - [anon_sym_T] = ACTIONS(214), - [anon_sym_FALSE] = ACTIONS(214), - [anon_sym_F] = ACTIONS(214), - [sym_word] = ACTIONS(214), - [anon_sym_PLUS] = ACTIONS(212), - [anon_sym_DASH] = ACTIONS(212), - [anon_sym_STAR] = ACTIONS(212), - [anon_sym_SLASH] = ACTIONS(212), - [anon_sym_eq] = ACTIONS(214), - [anon_sym_LPAREN] = ACTIONS(220), - [anon_sym_LBRACE] = ACTIONS(212), - [anon_sym_EQ] = ACTIONS(222), - [anon_sym_BSLASH] = ACTIONS(212), - [anon_sym__if] = ACTIONS(214), - [anon_sym_if] = ACTIONS(214), - [anon_sym_else] = ACTIONS(214), - [anon_sym_QMARK] = ACTIONS(212), - }, }; static const uint16_t ts_small_parse_table[] = { - [0] = 4, - ACTIONS(75), 1, - anon_sym_eq, - ACTIONS(73), 4, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - ACTIONS(224), 7, - ts_builtin_sym_end, - sym_num, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_RBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(226), 7, - anon_sym_TRUE, + [0] = 2, + ACTIONS(205), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym__if, anon_sym_if, - [28] = 2, - ACTIONS(230), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - ACTIONS(228), 11, + ACTIONS(203), 15, ts_builtin_sym_end, sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_RBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - [52] = 2, - ACTIONS(234), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - ACTIONS(232), 11, - ts_builtin_sym_end, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_RBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - [76] = 4, - ACTIONS(75), 1, - anon_sym_eq, - ACTIONS(73), 4, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - ACTIONS(236), 7, - ts_builtin_sym_end, - sym_num, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_RBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(238), 7, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym__if, - anon_sym_if, - [104] = 2, - ACTIONS(242), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - ACTIONS(240), 11, - ts_builtin_sym_end, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_RBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - [128] = 4, - ACTIONS(250), 1, - anon_sym_eq, - ACTIONS(244), 5, - sym_num, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(248), 6, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, anon_sym_COMMA, anon_sym_RPAREN, - ACTIONS(246), 7, - anon_sym_TRUE, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [24] = 2, + ACTIONS(209), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym__if, anon_sym_if, - [156] = 2, - ACTIONS(254), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - ACTIONS(252), 11, + ACTIONS(207), 15, ts_builtin_sym_end, sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - [180] = 2, - ACTIONS(250), 8, - anon_sym_TRUE, + [48] = 2, + ACTIONS(213), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym_eq, - anon_sym__if, anon_sym_if, - ACTIONS(248), 11, + ACTIONS(211), 15, ts_builtin_sym_end, sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - [204] = 2, - ACTIONS(258), 8, - anon_sym_TRUE, + [72] = 2, + ACTIONS(217), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym_eq, - anon_sym__if, anon_sym_if, - ACTIONS(256), 11, + ACTIONS(215), 15, ts_builtin_sym_end, sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - [228] = 4, - ACTIONS(75), 1, - anon_sym_eq, - ACTIONS(73), 4, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - ACTIONS(260), 7, - ts_builtin_sym_end, - sym_num, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_RBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(262), 7, - anon_sym_TRUE, + [96] = 2, + ACTIONS(221), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym__if, anon_sym_if, - [256] = 2, - ACTIONS(266), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - ACTIONS(264), 11, + ACTIONS(219), 15, ts_builtin_sym_end, sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - [280] = 4, - ACTIONS(75), 1, - anon_sym_eq, - ACTIONS(73), 4, + [120] = 5, + ACTIONS(227), 1, + anon_sym_EQ, + ACTIONS(229), 1, + anon_sym_LPAREN, + STATE(23), 1, + sym_params, + ACTIONS(225), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(223), 12, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - ACTIONS(268), 7, - ts_builtin_sym_end, - sym_num, - anon_sym_LPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - ACTIONS(270), 7, - anon_sym_TRUE, + [150] = 2, + ACTIONS(233), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym__if, anon_sym_if, - [308] = 2, - ACTIONS(274), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - ACTIONS(272), 11, + ACTIONS(231), 15, ts_builtin_sym_end, sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - [332] = 2, - ACTIONS(278), 8, - anon_sym_TRUE, + [174] = 3, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(237), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym_eq, - anon_sym__if, anon_sym_if, - ACTIONS(276), 11, + ACTIONS(235), 13, ts_builtin_sym_end, sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - [356] = 2, - ACTIONS(282), 8, - anon_sym_TRUE, + [199] = 4, + ACTIONS(65), 1, + anon_sym_SEMI, + STATE(75), 1, + aux_sym_seqexp_repeat1, + ACTIONS(241), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym_eq, - anon_sym__if, anon_sym_if, - ACTIONS(280), 11, + ACTIONS(239), 12, ts_builtin_sym_end, sym_num, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - [380] = 2, + [226] = 6, + ACTIONS(67), 1, + anon_sym_EQ_EQ, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(69), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(71), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(245), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(243), 8, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [257] = 6, + ACTIONS(67), 1, + anon_sym_EQ_EQ, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(69), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(71), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(249), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(247), 8, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [288] = 6, + ACTIONS(67), 1, + anon_sym_EQ_EQ, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(69), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(71), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(253), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(251), 8, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [319] = 5, + ACTIONS(255), 1, + anon_sym_EQ, + ACTIONS(257), 1, + anon_sym_LPAREN, + STATE(28), 1, + sym_params, + ACTIONS(225), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(223), 10, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [348] = 7, + ACTIONS(65), 1, + anon_sym_SEMI, + ACTIONS(67), 1, + anon_sym_EQ_EQ, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(69), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(71), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(261), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(259), 7, + ts_builtin_sym_end, + sym_num, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [381] = 3, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(265), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(263), 13, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [406] = 6, + ACTIONS(67), 1, + anon_sym_EQ_EQ, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(69), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(71), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(269), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(267), 8, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [437] = 5, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(69), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(71), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(273), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(271), 9, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [466] = 4, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(71), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(277), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(275), 11, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [493] = 3, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(277), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(275), 13, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [518] = 4, + ACTIONS(283), 1, + anon_sym_SEMI, + STATE(75), 1, + aux_sym_seqexp_repeat1, + ACTIONS(281), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(279), 12, + ts_builtin_sym_end, + sym_num, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, + anon_sym_QMARK, + [545] = 6, + ACTIONS(67), 1, + anon_sym_EQ_EQ, + STATE(64), 1, + aux_sym_seqexp_repeat1, + ACTIONS(69), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(71), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(288), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, ACTIONS(286), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - ACTIONS(284), 11, ts_builtin_sym_end, sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, + anon_sym_SEMI, anon_sym_LPAREN, + anon_sym_BSLASH, anon_sym_LBRACE, anon_sym_RBRACE, - anon_sym_BSLASH, anon_sym_QMARK, - [404] = 2, - ACTIONS(284), 9, + [576] = 6, + ACTIONS(25), 1, + anon_sym_EQ_EQ, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(27), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(29), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(269), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(267), 6, sym_num, + anon_sym_SEMI, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [606] = 3, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(277), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(275), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, - anon_sym_LBRACE, anon_sym_BSLASH, + anon_sym_LBRACE, anon_sym_QMARK, - ACTIONS(286), 9, - anon_sym_TRUE, + [630] = 5, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(27), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(29), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(273), 5, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym_eq, - anon_sym__if, anon_sym_if, anon_sym_else, - [427] = 2, - ACTIONS(252), 9, + ACTIONS(271), 7, sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [658] = 4, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(29), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(277), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(275), 9, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [684] = 6, + ACTIONS(25), 1, + anon_sym_EQ_EQ, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(27), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(29), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(249), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(247), 6, + sym_num, + anon_sym_SEMI, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [714] = 4, + ACTIONS(290), 1, + anon_sym_SEMI, + STATE(82), 1, + aux_sym_seqexp_repeat1, + ACTIONS(281), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(279), 10, + sym_num, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, - anon_sym_LBRACE, anon_sym_BSLASH, + anon_sym_LBRACE, anon_sym_QMARK, - ACTIONS(254), 9, - anon_sym_TRUE, + [740] = 6, + ACTIONS(25), 1, + anon_sym_EQ_EQ, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(27), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(29), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(245), 5, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym_eq, - anon_sym__if, anon_sym_if, anon_sym_else, - [450] = 2, - ACTIONS(272), 9, + ACTIONS(243), 6, sym_num, + anon_sym_SEMI, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [770] = 6, + ACTIONS(25), 1, + anon_sym_EQ_EQ, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(27), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(29), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(253), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(251), 6, + sym_num, + anon_sym_SEMI, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [800] = 2, + ACTIONS(295), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(293), 13, + ts_builtin_sym_end, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_LPAREN, - anon_sym_LBRACE, anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_RBRACE, anon_sym_QMARK, - ACTIONS(274), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [473] = 4, - ACTIONS(27), 1, - anon_sym_eq, - ACTIONS(25), 4, + [822] = 6, + ACTIONS(25), 1, + anon_sym_EQ_EQ, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(27), 2, anon_sym_PLUS, anon_sym_DASH, + ACTIONS(29), 2, anon_sym_STAR, anon_sym_SLASH, - ACTIONS(224), 5, - sym_num, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(226), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [500] = 2, - ACTIONS(256), 9, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(258), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [523] = 2, - ACTIONS(248), 9, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(250), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [546] = 2, - ACTIONS(232), 9, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(234), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [569] = 2, - ACTIONS(276), 9, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(278), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [592] = 2, - ACTIONS(228), 9, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(230), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [615] = 2, - ACTIONS(240), 9, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(242), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [638] = 4, - ACTIONS(27), 1, - anon_sym_eq, - ACTIONS(25), 4, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - ACTIONS(268), 5, - sym_num, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(270), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [665] = 4, - ACTIONS(27), 1, - anon_sym_eq, - ACTIONS(25), 4, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - ACTIONS(260), 5, - sym_num, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(262), 8, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [692] = 2, - ACTIONS(264), 9, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(266), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [715] = 2, - ACTIONS(280), 9, - sym_num, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(282), 9, - anon_sym_TRUE, - anon_sym_T, - anon_sym_FALSE, - anon_sym_F, - sym_word, - anon_sym_eq, - anon_sym__if, - anon_sym_if, - anon_sym_else, - [738] = 2, ACTIONS(288), 5, - sym_num, - anon_sym_LPAREN, - anon_sym_LBRACE, - anon_sym_BSLASH, - anon_sym_QMARK, - ACTIONS(290), 7, - anon_sym_TRUE, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym__if, anon_sym_if, - [755] = 2, - ACTIONS(292), 5, + anon_sym_else, + ACTIONS(286), 6, sym_num, + anon_sym_SEMI, anon_sym_LPAREN, - anon_sym_LBRACE, anon_sym_BSLASH, + anon_sym_LBRACE, anon_sym_QMARK, - ACTIONS(294), 7, - anon_sym_TRUE, + [852] = 4, + ACTIONS(23), 1, + anon_sym_SEMI, + STATE(82), 1, + aux_sym_seqexp_repeat1, + ACTIONS(241), 5, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym__if, anon_sym_if, - [772] = 2, - ACTIONS(244), 5, + anon_sym_else, + ACTIONS(239), 10, sym_num, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, anon_sym_LPAREN, - anon_sym_LBRACE, anon_sym_BSLASH, + anon_sym_LBRACE, anon_sym_QMARK, - ACTIONS(246), 7, - anon_sym_TRUE, + [878] = 3, + ACTIONS(299), 4, anon_sym_T, - anon_sym_FALSE, anon_sym_F, sym_word, - anon_sym__if, anon_sym_if, - [789] = 7, - ACTIONS(296), 1, + ACTIONS(297), 5, + sym_num, anon_sym_LPAREN, - ACTIONS(298), 1, - anon_sym_COMMA, - ACTIONS(301), 1, - anon_sym_RPAREN, - ACTIONS(304), 1, - anon_sym_EQ, - STATE(32), 1, - sym_params, - STATE(129), 1, - aux_sym_params_repeat1, - ACTIONS(212), 5, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + ACTIONS(293), 8, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_COMMA, + anon_sym_RPAREN, + [902] = 3, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(237), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(235), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [815] = 4, - ACTIONS(296), 1, anon_sym_LPAREN, - ACTIONS(304), 1, - anon_sym_EQ, - STATE(32), 1, - sym_params, - ACTIONS(212), 7, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [926] = 3, + STATE(87), 1, + aux_sym_seqexp_repeat1, + ACTIONS(265), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(263), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [834] = 4, - ACTIONS(308), 1, - anon_sym_COMMA, - ACTIONS(310), 1, - anon_sym_RPAREN, - STATE(128), 1, - aux_sym_callexp_repeat1, - ACTIONS(306), 5, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [950] = 2, + ACTIONS(233), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(231), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [851] = 4, - ACTIONS(308), 1, - anon_sym_COMMA, - ACTIONS(312), 1, - anon_sym_RPAREN, - STATE(130), 1, - aux_sym_callexp_repeat1, - ACTIONS(306), 5, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [971] = 2, + ACTIONS(209), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(207), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [868] = 4, - ACTIONS(308), 1, - anon_sym_COMMA, - ACTIONS(314), 1, - anon_sym_RPAREN, - STATE(126), 1, - aux_sym_callexp_repeat1, - ACTIONS(306), 5, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [992] = 2, + ACTIONS(217), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(215), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [885] = 2, - ACTIONS(260), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - ACTIONS(306), 5, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [1013] = 2, + ACTIONS(295), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(293), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [897] = 1, - ACTIONS(240), 7, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [1034] = 2, + ACTIONS(213), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(211), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [907] = 2, - ACTIONS(268), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - ACTIONS(306), 5, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - [919] = 1, - ACTIONS(272), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [929] = 2, - ACTIONS(316), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - ACTIONS(306), 5, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - [941] = 1, - ACTIONS(284), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [951] = 2, - ACTIONS(224), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - ACTIONS(306), 5, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - [963] = 1, - ACTIONS(232), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [973] = 1, - ACTIONS(252), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [983] = 1, - ACTIONS(256), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [993] = 1, - ACTIONS(276), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [1003] = 1, - ACTIONS(280), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [1013] = 1, - ACTIONS(228), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [1023] = 1, - ACTIONS(264), 7, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - anon_sym_COMMA, - anon_sym_RPAREN, - [1033] = 2, - ACTIONS(318), 1, - anon_sym_COMMA, - ACTIONS(306), 5, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - [1044] = 2, - ACTIONS(320), 1, - anon_sym_COMMA, - ACTIONS(306), 5, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, [1055] = 2, - ACTIONS(322), 1, - anon_sym_RPAREN, - ACTIONS(306), 5, + ACTIONS(205), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(203), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [1066] = 2, - ACTIONS(324), 1, - anon_sym_RPAREN, - ACTIONS(306), 5, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [1076] = 2, + ACTIONS(221), 5, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + anon_sym_else, + ACTIONS(219), 11, + sym_num, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [1077] = 2, - ACTIONS(326), 1, - anon_sym_RPAREN, - ACTIONS(306), 5, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - [1088] = 2, - ACTIONS(328), 1, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [1097] = 7, + ACTIONS(301), 1, + anon_sym_EQ, + ACTIONS(303), 1, + anon_sym_LPAREN, + ACTIONS(305), 1, anon_sym_COMMA, - ACTIONS(306), 5, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - [1099] = 2, - ACTIONS(330), 1, - anon_sym_COMMA, - ACTIONS(306), 5, - anon_sym_PLUS, - anon_sym_DASH, - anon_sym_STAR, - anon_sym_SLASH, - anon_sym_eq, - [1110] = 2, - ACTIONS(332), 1, + ACTIONS(308), 1, anon_sym_RPAREN, - ACTIONS(306), 5, + STATE(43), 1, + sym_params, + STATE(120), 1, + aux_sym_params_repeat1, + ACTIONS(223), 6, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [1121] = 2, - ACTIONS(334), 1, - anon_sym_RPAREN, - ACTIONS(306), 5, + [1124] = 4, + ACTIONS(301), 1, + anon_sym_EQ, + ACTIONS(303), 1, + anon_sym_LPAREN, + STATE(43), 1, + sym_params, + ACTIONS(223), 8, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [1132] = 2, - ACTIONS(336), 1, anon_sym_COMMA, - ACTIONS(306), 5, + anon_sym_RPAREN, + [1144] = 8, + ACTIONS(311), 1, + anon_sym_SEMI, + ACTIONS(313), 1, + anon_sym_EQ_EQ, + ACTIONS(319), 1, + anon_sym_COMMA, + ACTIONS(321), 1, + anon_sym_RPAREN, + STATE(107), 1, + aux_sym_seqexp_repeat1, + STATE(124), 1, + aux_sym_callexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + [1171] = 8, + ACTIONS(311), 1, + anon_sym_SEMI, + ACTIONS(313), 1, + anon_sym_EQ_EQ, + ACTIONS(319), 1, + anon_sym_COMMA, + ACTIONS(323), 1, + anon_sym_RPAREN, + STATE(107), 1, + aux_sym_seqexp_repeat1, + STATE(121), 1, + aux_sym_callexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + [1198] = 4, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(271), 4, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_COMMA, + anon_sym_RPAREN, + [1216] = 2, + ACTIONS(327), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(325), 5, + sym_num, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [1230] = 2, + ACTIONS(331), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(329), 5, + sym_num, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [1244] = 2, + ACTIONS(299), 4, + anon_sym_T, + anon_sym_F, + sym_word, + anon_sym_if, + ACTIONS(297), 5, + sym_num, + anon_sym_LPAREN, + anon_sym_BSLASH, + anon_sym_LBRACE, + anon_sym_QMARK, + [1258] = 2, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(235), 8, + anon_sym_SEMI, + anon_sym_EQ_EQ, anon_sym_PLUS, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [1143] = 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1272] = 3, + ACTIONS(311), 1, + anon_sym_SEMI, + STATE(115), 1, + aux_sym_seqexp_repeat1, + ACTIONS(239), 7, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_COMMA, + anon_sym_RPAREN, + [1288] = 5, + ACTIONS(313), 1, + anon_sym_EQ_EQ, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(286), 3, + anon_sym_SEMI, + anon_sym_COMMA, + anon_sym_RPAREN, + [1308] = 2, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(263), 8, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_COMMA, + anon_sym_RPAREN, + [1322] = 2, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(275), 8, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_COMMA, + anon_sym_RPAREN, + [1336] = 5, + ACTIONS(313), 1, + anon_sym_EQ_EQ, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(267), 3, + anon_sym_SEMI, + anon_sym_COMMA, + anon_sym_RPAREN, + [1356] = 5, + ACTIONS(313), 1, + anon_sym_EQ_EQ, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(251), 3, + anon_sym_SEMI, + anon_sym_COMMA, + anon_sym_RPAREN, + [1376] = 3, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(275), 6, + anon_sym_SEMI, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_COMMA, + anon_sym_RPAREN, + [1392] = 6, + ACTIONS(311), 1, + anon_sym_SEMI, + ACTIONS(313), 1, + anon_sym_EQ_EQ, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(333), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1414] = 3, + ACTIONS(335), 1, + anon_sym_SEMI, + STATE(115), 1, + aux_sym_seqexp_repeat1, + ACTIONS(279), 7, + anon_sym_EQ_EQ, + anon_sym_PLUS, + anon_sym_DASH, + anon_sym_STAR, + anon_sym_SLASH, + anon_sym_COMMA, + anon_sym_RPAREN, + [1430] = 5, + ACTIONS(313), 1, + anon_sym_EQ_EQ, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(243), 3, + anon_sym_SEMI, + anon_sym_COMMA, + anon_sym_RPAREN, + [1450] = 5, + ACTIONS(313), 1, + anon_sym_EQ_EQ, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, + anon_sym_PLUS, + anon_sym_DASH, + ACTIONS(317), 2, + anon_sym_STAR, + anon_sym_SLASH, + ACTIONS(247), 3, + anon_sym_SEMI, + anon_sym_COMMA, + anon_sym_RPAREN, + [1470] = 6, + ACTIONS(311), 1, + anon_sym_SEMI, + ACTIONS(313), 1, + anon_sym_EQ_EQ, ACTIONS(338), 1, - anon_sym_COMMA, - ACTIONS(306), 5, + anon_sym_RPAREN, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, anon_sym_PLUS, anon_sym_DASH, + ACTIONS(317), 2, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [1154] = 2, + [1491] = 6, + ACTIONS(311), 1, + anon_sym_SEMI, + ACTIONS(313), 1, + anon_sym_EQ_EQ, ACTIONS(340), 1, anon_sym_RPAREN, - ACTIONS(306), 5, + STATE(107), 1, + aux_sym_seqexp_repeat1, + ACTIONS(315), 2, anon_sym_PLUS, anon_sym_DASH, + ACTIONS(317), 2, anon_sym_STAR, anon_sym_SLASH, - anon_sym_eq, - [1165] = 3, + [1512] = 3, ACTIONS(342), 1, anon_sym_COMMA, ACTIONS(344), 1, anon_sym_RPAREN, - STATE(129), 1, + STATE(125), 1, aux_sym_params_repeat1, - [1175] = 3, - ACTIONS(308), 1, + [1522] = 3, + ACTIONS(319), 1, anon_sym_COMMA, ACTIONS(346), 1, anon_sym_RPAREN, - STATE(127), 1, + STATE(123), 1, aux_sym_callexp_repeat1, - [1185] = 3, - ACTIONS(316), 1, - anon_sym_RPAREN, - ACTIONS(348), 1, - anon_sym_COMMA, - STATE(127), 1, - aux_sym_callexp_repeat1, - [1195] = 3, - ACTIONS(308), 1, - anon_sym_COMMA, - ACTIONS(351), 1, - anon_sym_RPAREN, - STATE(127), 1, - aux_sym_callexp_repeat1, - [1205] = 3, + [1532] = 3, ACTIONS(342), 1, anon_sym_COMMA, + ACTIONS(348), 1, + anon_sym_RPAREN, + STATE(120), 1, + aux_sym_params_repeat1, + [1542] = 3, + ACTIONS(333), 1, + anon_sym_RPAREN, + ACTIONS(350), 1, + anon_sym_COMMA, + STATE(123), 1, + aux_sym_callexp_repeat1, + [1552] = 3, + ACTIONS(319), 1, + anon_sym_COMMA, ACTIONS(353), 1, anon_sym_RPAREN, - STATE(131), 1, - aux_sym_params_repeat1, - [1215] = 3, - ACTIONS(308), 1, - anon_sym_COMMA, - ACTIONS(355), 1, - anon_sym_RPAREN, - STATE(127), 1, + STATE(123), 1, aux_sym_callexp_repeat1, - [1225] = 3, - ACTIONS(357), 1, + [1562] = 3, + ACTIONS(355), 1, anon_sym_COMMA, - ACTIONS(360), 1, + ACTIONS(358), 1, anon_sym_RPAREN, - STATE(131), 1, + STATE(125), 1, aux_sym_params_repeat1, - [1235] = 2, - ACTIONS(362), 1, - anon_sym_LPAREN, - STATE(33), 1, - sym_params, - [1242] = 2, - ACTIONS(362), 1, + [1572] = 2, + ACTIONS(360), 1, anon_sym_LPAREN, STATE(38), 1, sym_params, - [1249] = 2, - ACTIONS(364), 1, - sym_word, - ACTIONS(366), 1, - anon_sym_RPAREN, - [1256] = 2, + [1579] = 2, ACTIONS(362), 1, - anon_sym_LPAREN, - STATE(42), 1, - sym_params, - [1263] = 1, - ACTIONS(360), 2, + sym_word, + ACTIONS(364), 1, + anon_sym_RPAREN, + [1586] = 1, + ACTIONS(358), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1268] = 1, - ACTIONS(368), 1, + [1591] = 2, + ACTIONS(360), 1, + anon_sym_LPAREN, + STATE(44), 1, + sym_params, + [1598] = 2, + ACTIONS(360), 1, + anon_sym_LPAREN, + STATE(55), 1, + sym_params, + [1605] = 1, + ACTIONS(366), 1, ts_builtin_sym_end, - [1272] = 1, - ACTIONS(370), 1, - anon_sym_LPAREN, - [1276] = 1, - ACTIONS(372), 1, + [1609] = 1, + ACTIONS(368), 1, sym_word, - [1280] = 1, - ACTIONS(374), 1, - anon_sym_LPAREN, - [1284] = 1, - ACTIONS(376), 1, - anon_sym_LPAREN, }; static const uint32_t ts_small_parse_table_map[] = { - [SMALL_STATE(61)] = 0, - [SMALL_STATE(62)] = 28, - [SMALL_STATE(63)] = 52, - [SMALL_STATE(64)] = 76, - [SMALL_STATE(65)] = 104, - [SMALL_STATE(66)] = 128, - [SMALL_STATE(67)] = 156, - [SMALL_STATE(68)] = 180, - [SMALL_STATE(69)] = 204, - [SMALL_STATE(70)] = 228, - [SMALL_STATE(71)] = 256, - [SMALL_STATE(72)] = 280, - [SMALL_STATE(73)] = 308, - [SMALL_STATE(74)] = 332, - [SMALL_STATE(75)] = 356, - [SMALL_STATE(76)] = 380, - [SMALL_STATE(77)] = 404, - [SMALL_STATE(78)] = 427, - [SMALL_STATE(79)] = 450, - [SMALL_STATE(80)] = 473, - [SMALL_STATE(81)] = 500, - [SMALL_STATE(82)] = 523, - [SMALL_STATE(83)] = 546, - [SMALL_STATE(84)] = 569, - [SMALL_STATE(85)] = 592, - [SMALL_STATE(86)] = 615, - [SMALL_STATE(87)] = 638, - [SMALL_STATE(88)] = 665, - [SMALL_STATE(89)] = 692, - [SMALL_STATE(90)] = 715, - [SMALL_STATE(91)] = 738, - [SMALL_STATE(92)] = 755, - [SMALL_STATE(93)] = 772, - [SMALL_STATE(94)] = 789, - [SMALL_STATE(95)] = 815, - [SMALL_STATE(96)] = 834, - [SMALL_STATE(97)] = 851, - [SMALL_STATE(98)] = 868, - [SMALL_STATE(99)] = 885, - [SMALL_STATE(100)] = 897, - [SMALL_STATE(101)] = 907, - [SMALL_STATE(102)] = 919, - [SMALL_STATE(103)] = 929, - [SMALL_STATE(104)] = 941, - [SMALL_STATE(105)] = 951, - [SMALL_STATE(106)] = 963, - [SMALL_STATE(107)] = 973, - [SMALL_STATE(108)] = 983, - [SMALL_STATE(109)] = 993, - [SMALL_STATE(110)] = 1003, - [SMALL_STATE(111)] = 1013, - [SMALL_STATE(112)] = 1023, - [SMALL_STATE(113)] = 1033, - [SMALL_STATE(114)] = 1044, - [SMALL_STATE(115)] = 1055, - [SMALL_STATE(116)] = 1066, - [SMALL_STATE(117)] = 1077, - [SMALL_STATE(118)] = 1088, - [SMALL_STATE(119)] = 1099, - [SMALL_STATE(120)] = 1110, - [SMALL_STATE(121)] = 1121, - [SMALL_STATE(122)] = 1132, - [SMALL_STATE(123)] = 1143, - [SMALL_STATE(124)] = 1154, - [SMALL_STATE(125)] = 1165, - [SMALL_STATE(126)] = 1175, - [SMALL_STATE(127)] = 1185, - [SMALL_STATE(128)] = 1195, - [SMALL_STATE(129)] = 1205, - [SMALL_STATE(130)] = 1215, - [SMALL_STATE(131)] = 1225, - [SMALL_STATE(132)] = 1235, - [SMALL_STATE(133)] = 1242, - [SMALL_STATE(134)] = 1249, - [SMALL_STATE(135)] = 1256, - [SMALL_STATE(136)] = 1263, - [SMALL_STATE(137)] = 1268, - [SMALL_STATE(138)] = 1272, - [SMALL_STATE(139)] = 1276, - [SMALL_STATE(140)] = 1280, - [SMALL_STATE(141)] = 1284, + [SMALL_STATE(56)] = 0, + [SMALL_STATE(57)] = 24, + [SMALL_STATE(58)] = 48, + [SMALL_STATE(59)] = 72, + [SMALL_STATE(60)] = 96, + [SMALL_STATE(61)] = 120, + [SMALL_STATE(62)] = 150, + [SMALL_STATE(63)] = 174, + [SMALL_STATE(64)] = 199, + [SMALL_STATE(65)] = 226, + [SMALL_STATE(66)] = 257, + [SMALL_STATE(67)] = 288, + [SMALL_STATE(68)] = 319, + [SMALL_STATE(69)] = 348, + [SMALL_STATE(70)] = 381, + [SMALL_STATE(71)] = 406, + [SMALL_STATE(72)] = 437, + [SMALL_STATE(73)] = 466, + [SMALL_STATE(74)] = 493, + [SMALL_STATE(75)] = 518, + [SMALL_STATE(76)] = 545, + [SMALL_STATE(77)] = 576, + [SMALL_STATE(78)] = 606, + [SMALL_STATE(79)] = 630, + [SMALL_STATE(80)] = 658, + [SMALL_STATE(81)] = 684, + [SMALL_STATE(82)] = 714, + [SMALL_STATE(83)] = 740, + [SMALL_STATE(84)] = 770, + [SMALL_STATE(85)] = 800, + [SMALL_STATE(86)] = 822, + [SMALL_STATE(87)] = 852, + [SMALL_STATE(88)] = 878, + [SMALL_STATE(89)] = 902, + [SMALL_STATE(90)] = 926, + [SMALL_STATE(91)] = 950, + [SMALL_STATE(92)] = 971, + [SMALL_STATE(93)] = 992, + [SMALL_STATE(94)] = 1013, + [SMALL_STATE(95)] = 1034, + [SMALL_STATE(96)] = 1055, + [SMALL_STATE(97)] = 1076, + [SMALL_STATE(98)] = 1097, + [SMALL_STATE(99)] = 1124, + [SMALL_STATE(100)] = 1144, + [SMALL_STATE(101)] = 1171, + [SMALL_STATE(102)] = 1198, + [SMALL_STATE(103)] = 1216, + [SMALL_STATE(104)] = 1230, + [SMALL_STATE(105)] = 1244, + [SMALL_STATE(106)] = 1258, + [SMALL_STATE(107)] = 1272, + [SMALL_STATE(108)] = 1288, + [SMALL_STATE(109)] = 1308, + [SMALL_STATE(110)] = 1322, + [SMALL_STATE(111)] = 1336, + [SMALL_STATE(112)] = 1356, + [SMALL_STATE(113)] = 1376, + [SMALL_STATE(114)] = 1392, + [SMALL_STATE(115)] = 1414, + [SMALL_STATE(116)] = 1430, + [SMALL_STATE(117)] = 1450, + [SMALL_STATE(118)] = 1470, + [SMALL_STATE(119)] = 1491, + [SMALL_STATE(120)] = 1512, + [SMALL_STATE(121)] = 1522, + [SMALL_STATE(122)] = 1532, + [SMALL_STATE(123)] = 1542, + [SMALL_STATE(124)] = 1552, + [SMALL_STATE(125)] = 1562, + [SMALL_STATE(126)] = 1572, + [SMALL_STATE(127)] = 1579, + [SMALL_STATE(128)] = 1586, + [SMALL_STATE(129)] = 1591, + [SMALL_STATE(130)] = 1598, + [SMALL_STATE(131)] = 1605, + [SMALL_STATE(132)] = 1609, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), [3] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0, 0, 0), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(73), - [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(59), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56), + [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(61), [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135), - [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), - [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(44), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(39), - [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(29), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [33] = {.entry = {.count = 1, .reusable = false}}, SHIFT(102), - [35] = {.entry = {.count = 1, .reusable = false}}, SHIFT(95), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), - [43] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140), - [45] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48), - [47] = {.entry = {.count = 1, .reusable = false}}, SHIFT(58), - [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [53] = {.entry = {.count = 1, .reusable = false}}, SHIFT(79), - [55] = {.entry = {.count = 1, .reusable = false}}, SHIFT(60), - [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), - [63] = {.entry = {.count = 1, .reusable = false}}, SHIFT(141), - [65] = {.entry = {.count = 1, .reusable = false}}, SHIFT(52), - [67] = {.entry = {.count = 1, .reusable = false}}, SHIFT(41), - [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [73] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [75] = {.entry = {.count = 1, .reusable = false}}, SHIFT(45), - [77] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), + [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(49), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(26), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), + [35] = {.entry = {.count = 1, .reusable = false}}, SHIFT(96), + [37] = {.entry = {.count = 1, .reusable = false}}, SHIFT(68), + [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), + [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [45] = {.entry = {.count = 1, .reusable = false}}, SHIFT(40), + [47] = {.entry = {.count = 1, .reusable = false}}, SHIFT(37), + [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [53] = {.entry = {.count = 1, .reusable = false}}, SHIFT(99), + [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), + [57] = {.entry = {.count = 1, .reusable = false}}, SHIFT(54), + [59] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), + [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [73] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [75] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), + [77] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), [79] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), [81] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [83] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [85] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), - [89] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(64), - [92] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(73), - [95] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(59), - [98] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(35), - [101] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(17), - [104] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(135), - [107] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(138), - [110] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(44), - [113] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(46), - [116] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 0), - [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), - [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [132] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), - [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), - [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103), - [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), - [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), - [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), - [196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), - [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [200] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), - [204] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), - [206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), - [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [210] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [212] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__exp, 1, 0, 0), - [214] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__exp, 1, 0, 0), - [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_vardef, 3, 0, 2), - [226] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_vardef, 3, 0, 2), - [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binexp, 3, 0, 5), - [230] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_binexp, 3, 0, 5), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_funcdef, 3, 0, 3), - [234] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_funcdef, 3, 0, 3), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 0), - [238] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 0), - [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_callexp, 4, 0, 1), - [242] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_callexp, 4, 0, 1), - [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params, 2, 0, 0), - [246] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params, 2, 0, 0), - [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_callexp, 3, 0, 1), - [250] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_callexp, 3, 0, 1), - [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parexp, 3, 0, 0), - [254] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_parexp, 3, 0, 0), - [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 3, 0, 0), - [258] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_block, 3, 0, 0), - [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ifexp, 4, 0, 6), - [262] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ifexp, 4, 0, 6), - [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_callexp, 5, 0, 1), - [266] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_callexp, 5, 0, 1), - [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ifexp, 5, 0, 7), - [270] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ifexp, 5, 0, 7), - [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bool, 1, 0, 0), - [274] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bool, 1, 0, 0), - [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_lambda, 3, 0, 4), - [278] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_lambda, 3, 0, 4), - [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ifexp, 8, 0, 8), - [282] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ifexp, 8, 0, 8), - [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 2, 0, 0), - [286] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_block, 2, 0, 0), - [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params, 3, 0, 0), - [290] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params, 3, 0, 0), - [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params, 4, 0, 0), - [294] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params, 4, 0, 0), - [296] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [298] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym__exp, 1, 0, 0), SHIFT(139), - [301] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym__exp, 1, 0, 0), SHIFT(91), - [304] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [306] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [308] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [310] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [312] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [314] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [316] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_callexp_repeat1, 2, 0, 0), - [318] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [320] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [322] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [324] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [326] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [328] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [330] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [332] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [334] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [336] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [338] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [340] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [342] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), - [344] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [346] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [348] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_callexp_repeat1, 2, 0, 0), SHIFT_REPEAT(27), - [351] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [353] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [355] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [357] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_params_repeat1, 2, 0, 0), SHIFT_REPEAT(139), - [360] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_params_repeat1, 2, 0, 0), - [362] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), - [364] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [366] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [368] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [370] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [372] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), - [374] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [376] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [83] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), + [85] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [87] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), + [91] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(69), + [94] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(56), + [97] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(61), + [100] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(35), + [103] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(126), + [106] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(17), + [109] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(49), + [112] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(50), + [115] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 0), + [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), + [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), + [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), + [127] = {.entry = {.count = 1, .reusable = false}}, SHIFT(98), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), + [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), + [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), + [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), + [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), + [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), + [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), + [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), + [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), + [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), + [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [175] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), + [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [179] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), + [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bool, 1, 0, 0), + [205] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bool, 1, 0, 0), + [207] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_callexp, 4, 0, 3), + [209] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_callexp, 4, 0, 3), + [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 2, 0, 0), + [213] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_block, 2, 0, 0), + [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_callexp, 5, 0, 3), + [217] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_callexp, 5, 0, 3), + [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parexp, 3, 0, 0), + [221] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_parexp, 3, 0, 0), + [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__exp, 1, 0, 0), + [225] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__exp, 1, 0, 0), + [227] = {.entry = {.count = 1, .reusable = false}}, SHIFT(34), + [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 3, 0, 0), + [233] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_block, 3, 0, 0), + [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_funcdef, 3, 0, 4), + [237] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_funcdef, 3, 0, 4), + [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_seqexp, 2, 0, 1), + [241] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_seqexp, 2, 0, 1), + [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tern_ifexp, 4, 0, 10), + [245] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_tern_ifexp, 4, 0, 10), + [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ifexp, 4, 0, 10), + [249] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ifexp, 4, 0, 10), + [251] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ifexp, 5, 0, 11), + [253] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ifexp, 5, 0, 11), + [255] = {.entry = {.count = 1, .reusable = false}}, SHIFT(27), + [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [259] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 0), + [261] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 0), + [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_lambda, 3, 0, 5), + [265] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_lambda, 3, 0, 5), + [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_seqexp_repeat1, 2, 0, 6), + [269] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_seqexp_repeat1, 2, 0, 6), + [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_eqexp, 3, 0, 7), + [273] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_eqexp, 3, 0, 7), + [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binexp, 3, 0, 8), + [277] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_binexp, 3, 0, 8), + [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_seqexp_repeat1, 2, 0, 9), + [281] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_seqexp_repeat1, 2, 0, 9), + [283] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_seqexp_repeat1, 2, 0, 9), SHIFT_REPEAT(52), + [286] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_vardef, 3, 0, 2), + [288] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_vardef, 3, 0, 2), + [290] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_seqexp_repeat1, 2, 0, 9), SHIFT_REPEAT(30), + [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_callexp, 3, 0, 3), + [295] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_callexp, 3, 0, 3), + [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params, 2, 0, 0), + [299] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params, 2, 0, 0), + [301] = {.entry = {.count = 1, .reusable = false}}, SHIFT(42), + [303] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [305] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym__exp, 1, 0, 0), SHIFT(132), + [308] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym__exp, 1, 0, 0), SHIFT(104), + [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), + [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [321] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params, 4, 0, 0), + [327] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params, 4, 0, 0), + [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params, 3, 0, 0), + [331] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params, 3, 0, 0), + [333] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_callexp_repeat1, 2, 0, 0), + [335] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_seqexp_repeat1, 2, 0, 9), SHIFT_REPEAT(45), + [338] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [340] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), + [342] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), + [344] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103), + [346] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), + [348] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), + [350] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_callexp_repeat1, 2, 0, 0), SHIFT_REPEAT(25), + [353] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [355] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_params_repeat1, 2, 0, 0), SHIFT_REPEAT(132), + [358] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_params_repeat1, 2, 0, 0), + [360] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), + [362] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), + [364] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [366] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [368] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), }; #ifdef __cplusplus