diff --git a/src/grammar/grammar.ohm b/src/grammar/grammar.ohm index ce476cbde..21749aa73 100644 --- a/src/grammar/grammar.ohm +++ b/src/grammar/grammar.ohm @@ -173,13 +173,16 @@ Tact { // Integer Literal // hexDigit defined in Ohm's built-in rules (otherwise: hexDigit = "0".."9" | "a".."f" | "A".."F") // digit defined in Ohm's built-in rules (otherwise: digit = "0".."9") - integerLiteral = integerLiteralHex | integerLiteralBin | integerLiteralDec // Order is important + integerLiteral = integerLiteralHex | integerLiteralBin | integerLiteralOct | integerLiteralDec // Order is important integerLiteralDec = digit+ ("_" | digit)* integerLiteralHex = "0x" hexDigit+ ("_" | hexDigit)* | "0X" hexDigit+ ("_" | hexDigit)* integerLiteralBin = "0b" binDigit+ ("_" | binDigit)* | "0B" binDigit+ ("_" | binDigit)* + integerLiteralOct = "0o" octDigit+ ("_" | octDigit)* + | "0O" octDigit+ ("_" | octDigit)* binDigit = "0" | "1" + octDigit = "0".."7" // Letters letterAsciiLC = "a".."z" diff --git a/src/grammar/grammar.ohm-bundle.d.ts b/src/grammar/grammar.ohm-bundle.d.ts index 38a943c42..41f589996 100644 --- a/src/grammar/grammar.ohm-bundle.d.ts +++ b/src/grammar/grammar.ohm-bundle.d.ts @@ -138,7 +138,9 @@ export interface TactActionDict extends ActionDict { integerLiteralDec?: (this: NonterminalNode, arg0: IterationNode, arg1: IterationNode) => T; integerLiteralHex?: (this: NonterminalNode, arg0: TerminalNode, arg1: IterationNode, arg2: IterationNode) => T; integerLiteralBin?: (this: NonterminalNode, arg0: TerminalNode, arg1: IterationNode, arg2: IterationNode) => T; + integerLiteralOct?: (this: NonterminalNode, arg0: TerminalNode, arg1: IterationNode, arg2: IterationNode) => T; binDigit?: (this: NonterminalNode, arg0: TerminalNode) => T; + octDigit?: (this: NonterminalNode, arg0: TerminalNode) => T; letterAsciiLC?: (this: NonterminalNode, arg0: TerminalNode) => T; letterAsciiUC?: (this: NonterminalNode, arg0: TerminalNode) => T; letterAscii?: (this: NonterminalNode, arg0: NonterminalNode) => T; diff --git a/src/grammar/grammar.ohm-bundle.js b/src/grammar/grammar.ohm-bundle.js index b3565aa59..0ed7bc33f 100644 --- a/src/grammar/grammar.ohm-bundle.js +++ b/src/grammar/grammar.ohm-bundle.js @@ -1 +1 @@ -'use strict';const ohm=(require('ohm-js').default || require('ohm-js'));const result=ohm.makeRecipe(["grammar",{"source":"Tact {\n\n // Starting point of the program\n Program = ProgramItem*\n ProgramItem = Struct\n | Contract\n | Primitive\n | StaticFunction\n | NativeFunction\n | ProgramImport\n | Trait\n | Constant\n ProgramImport = import stringLiteral \";\"\n\n // Built-in declarations\n Primitive = \"primitive\" Type \";\"\n\n // Static function\n StaticFunction = Function\n NativeFunction = nameAttribute \"(\" funcId \")\" FunctionAttribute* native id \"(\" ListOf \")\" \";\" --withVoid\n | nameAttribute \"(\" funcId \")\" FunctionAttribute* native id \"(\" ListOf \")\" \":\" Type \";\" --withType\n \n // Field declarations\n Type = typeLiteral \"?\" --optional\n | typeLiteral --required\n | \"map\" \"<\" typeLiteral (as id)? \",\" typeLiteral (as id)? \">\" --map\n | \"bounced\" \"<\" typeLiteral \">\" --bounced\n Field = id \":\" Type \";\" --default\n | id \":\" Type \"=\" Expression \";\" --defaultWithInit\n | id \":\" Type as id \";\" --withSerialization\n | id \":\" Type as id \"=\" Expression \";\" --withSerializationAndInit\n \n // Constant\n ConstantAttribute = virtual --virtual\n | override --override\n | abstract --abstract\n Constant = ConstantAttribute* ~fun const id \":\" Type \"=\" Expression \";\" --withValue\n | ConstantAttribute* ~fun const id \":\" Type \";\" --withEmpty\n\n // Struct\n Struct = \"struct\" typeLiteral \"{\" StructBody* \"}\" --originary\n | \"message\" typeLiteral \"{\" StructBody* \"}\" --message\n | \"message\" \"(\" integerLiteral \")\" typeLiteral \"{\" StructBody* \"}\" --messageWithId\n StructBody = Field\n\n // Contract\n Contract = ContractAttribute* contract id \"{\" ContractBody* \"}\" --simple\n | ContractAttribute* contract id with ListOf \"{\" ContractBody* \"}\" --withTraits\n ContractInit = \"init\" \"(\" ListOf \")\" \"{\" Statement* \"}\"\n ContractBody = Field\n | ContractInit\n | ReceiveFunction\n | Function\n | Constant\n \n // Trait\n Trait = ContractAttribute* trait id \"{\" TraitBody* \"}\" --originary\n | ContractAttribute* trait id with ListOf \"{\" TraitBody* \"}\" --withTraits\n TraitBody = Field\n | ReceiveFunction\n | Function\n | Constant\n\n // Contract attributes\n ContractAttribute = \"@interface\" \"(\" stringLiteral \")\" --interface\n\n // Function\n FunctionAttribute = \"get\" --getter\n | mutates --mutates\n | extends --extends\n | virtual --virtual\n | override --override\n | inline --inline\n | abstract --abstract\n Function = FunctionAttribute* fun id \"(\" ListOf \")\" \"{\" Statement* \"}\" --withVoid\n | FunctionAttribute* fun id \"(\" ListOf \")\" \":\" Type \"{\" Statement* \"}\" --withType\n | FunctionAttribute* fun id \"(\" ListOf \")\" \";\" --abstractVoid\n | FunctionAttribute* fun id \"(\" ListOf \")\" \":\" Type \";\" --abstractType\n FunctionArg = id \":\" Type\n \n ReceiveFunction = \"receive\" \"(\" FunctionArg \")\" \"{\" Statement* \"}\" --simple\n | \"receive\" \"(\" \")\" \"{\" Statement* \"}\" --empty\n | \"receive\" \"(\" stringLiteral \")\" \"{\" Statement* \"}\" --comment\n | \"bounced\" \"(\" FunctionArg \")\" \"{\" Statement* \"}\" --bounced\n | \"external\" \"(\" FunctionArg \")\" \"{\" Statement* \"}\" --externalSimple\n | \"external\" \"(\" stringLiteral \")\" \"{\" Statement* \"}\" --externalComment\n | \"external\" \"(\" \")\" \"{\" Statement* \"}\" --externalEmpty\n\n // Statements\n Statement = StatementLet\n | StatementBlock\n | StatementReturn\n | StatementExpression\n | StatementAssign\n | StatementCondition\n | StatementWhile\n | StatementRepeat\n | StatementUntil\n StatementBlock = \"{\" Statement* \"}\"\n StatementLet = let id \":\" Type \"=\" Expression \";\"\n StatementReturn = return Expression \";\" --withExpression\n | return \";\" --withoutExpression \n StatementExpression = Expression \";\"\n StatementAssign = LValue \"=\" Expression \";\"\n StatementCondition = if Expression \"{\" Statement* \"}\" ~else --simple\n | if Expression \"{\" Statement* \"}\" else \"{\" Statement* \"}\" --withElse\n | if Expression \"{\" Statement* \"}\" else StatementCondition --withElseIf\n StatementWhile = while \"(\" Expression \")\" \"{\" Statement* \"}\"\n StatementRepeat = repeat \"(\" Expression \")\" \"{\" Statement* \"}\"\n StatementUntil = do \"{\" Statement* \"}\" until \"(\" Expression \")\" \";\"\n\n // L-value\n LValue = id \".\" LValue --more\n | id --single\n\n // Expressions\n Expression = ExpressionOr\n ExpressionOr = ExpressionOr \"||\" ExpressionAnd --or\n | ExpressionAnd\n ExpressionAnd = ExpressionAnd \"&&\" ExpressionCompare --and\n | ExpressionCompare\n ExpressionCompare = ExpressionCompare \"!=\" ExpressionBinary --not\n | ExpressionCompare \"==\" ExpressionBinary --eq\n | ExpressionCompare \">\" ExpressionBinary --gt\n | ExpressionCompare \">=\" ExpressionBinary --gte\n | ExpressionCompare \"<\" ExpressionBinary --lt\n | ExpressionCompare \"<=\" ExpressionBinary --lte\n | ExpressionBinary\n ExpressionBinary = ExpressionBinary \">>\" ExpressionAdd --shr\n | ExpressionBinary \"<<\" ExpressionAdd --shl\n | ExpressionBinary \"&\" ExpressionAdd --bin_and\n | ExpressionBinary \"|\" ExpressionAdd --bin_or\n | ExpressionAdd\n ExpressionAdd = ExpressionAdd \"+\" ~\"+\" ExpressionMul --add\n | ExpressionAdd \"-\" ~\"-\" ExpressionMul --sub\n | ExpressionMul\n ExpressionMul = ExpressionMul \"*\" ExpressionUnary --mul\n | ExpressionMul \"/\" ExpressionUnary --div\n | ExpressionMul \"%\" ExpressionUnary --rem\n | ExpressionUnary\n ExpressionUnary = \"-\" ExpressionUnarySuffix --neg\n | \"+\" ExpressionUnarySuffix --add\n | \"!\" ExpressionUnarySuffix --not\n | ExpressionUnarySuffix\n ExpressionUnarySuffix = ExpressionValue \"!!\" --notNull\n | ExpressionValue\n ExpressionBracket = \"(\" Expression \")\"\n\n // Order is important\n ExpressionValue = ExpressionCall\n | ExpressionField\n | ExpressionStaticCall\n | ExpressionBracket\n | ExpressionNew\n | integerLiteral\n | boolLiteral\n | id\n | null\n | ExpressionInitOf\n | ExpressionString\n ExpressionString = stringLiteral\n ExpressionField = ExpressionValue \".\" id ~\"(\"\n ExpressionCall = ExpressionValue \".\" id \"(\" ListOf \")\"\n ExpressionNew = id \"{\" ListOf \"}\"\n NewParameter = id \":\" Expression\n ExpressionStaticCall = id \"(\" ListOf \")\"\n ExpressionInitOf = initOf id \"(\" ListOf \")\"\n\n // Type Literal\n typeLiteral = letterAsciiUC typeLiteralPart*\n typeLiteralPart = letterAscii | digit | \"_\"\n\n // Integer Literal\n // hexDigit defined in Ohm's built-in rules (otherwise: hexDigit = \"0\"..\"9\" | \"a\"..\"f\" | \"A\"..\"F\")\n // digit defined in Ohm's built-in rules (otherwise: digit = \"0\"..\"9\")\n integerLiteral = integerLiteralHex | integerLiteralBin | integerLiteralDec // Order is important\n integerLiteralDec = digit+ (\"_\" | digit)*\n integerLiteralHex = \"0x\" hexDigit+ (\"_\" | hexDigit)*\n | \"0X\" hexDigit+ (\"_\" | hexDigit)*\n integerLiteralBin = \"0b\" binDigit+ (\"_\" | binDigit)*\n | \"0B\" binDigit+ (\"_\" | binDigit)*\n binDigit = \"0\" | \"1\"\n\n // Letters\n letterAsciiLC = \"a\"..\"z\"\n letterAsciiUC = \"A\"..\"Z\"\n letterAscii = letterAsciiLC | letterAsciiUC\n letterComment = letterAsciiLC | letterAsciiUC | digit | \"_\"\n\n // ID Literal\n idStart = letterAscii | \"_\"\n idPart = letterAscii | digit | \"_\"\n id = ~reservedWord #idStart #(idPart*)\n\n // FunC id\n funcLetter = letterAscii | \"_\" | \"'\" | \"?\" | \"!\" | \"::\" | \"&\"\n funcId = funcLetter #(funcLetter | digit)*\n\n // Bool Literal\n boolLiteral = (\"true\" | \"false\") ~idPart\n\n // String literal\n stringLiteralCharacter = ~(\"\\\"\" | \"\\\\\" | lineTerminator) any\n stringLiteral = \"\\\"\" stringLiteralCharacter* \"\\\"\"\n\n // Keywords\n // NOTE Order is important\n keyword = fun \n | let\n | return \n | extend \n | native \n | public \n | null \n | if \n | else \n | while \n | repeat \n | do \n | until \n | as \n | mutates\n | extends\n | import\n | with\n | trait\n | initOf\n | override\n | abstract\n | virtual\n | inline\n | const\n contract = \"contract\" ~idPart\n let = \"let\" ~idPart\n fun = \"fun\" ~idPart\n return = \"return\" ~idPart\n extend = \"extend\" ~idPart\n native = \"native\" ~idPart\n public = \"public\" ~idPart\n null = \"null\" ~idPart\n if = \"if\" ~idPart\n else = \"else\" ~idPart\n while = \"while\" ~idPart\n repeat = \"repeat\" ~idPart\n do = \"do\" ~idPart\n until = \"until\" ~idPart\n as = \"as\" ~idPart\n mutates = \"mutates\" ~idPart\n extends = \"extends\" ~idPart\n import = \"import\" ~idPart\n with = \"with\" ~idPart\n trait = \"trait\" ~idPart\n initOf = \"initOf\" ~idPart\n virtual = \"virtual\" ~idPart\n override = \"override\" ~idPart\n inline = \"inline\" ~idPart\n const = \"const\" ~idPart\n abstract = \"abstract\" ~idPart\n\n // Attributes\n nameAttribute = \"@name\"\n\n // Reserved\n reservedWord = keyword\n\n // Comments\n space += comment | lineTerminator\n comment = multiLineComment | singleLineComment\n lineTerminator = \"\\n\" | \"\\r\" | \"\\u2028\" | \"\\u2029\"\n multiLineComment = \"/*\" (~\"*/\" any)* \"*/\"\n singleLineComment = \"//\" (~lineTerminator any)*\n}"},"Tact",null,"Program",{"Program":["define",{"sourceInterval":[49,71]},null,[],["star",{"sourceInterval":[59,71]},["app",{"sourceInterval":[59,70]},"ProgramItem",[]]]],"ProgramItem":["define",{"sourceInterval":[76,300]},null,[],["alt",{"sourceInterval":[90,300]},["app",{"sourceInterval":[90,96]},"Struct",[]],["app",{"sourceInterval":[115,123]},"Contract",[]],["app",{"sourceInterval":[142,151]},"Primitive",[]],["app",{"sourceInterval":[170,184]},"StaticFunction",[]],["app",{"sourceInterval":[203,217]},"NativeFunction",[]],["app",{"sourceInterval":[236,249]},"ProgramImport",[]],["app",{"sourceInterval":[268,273]},"Trait",[]],["app",{"sourceInterval":[292,300]},"Constant",[]]]],"ProgramImport":["define",{"sourceInterval":[305,345]},null,[],["seq",{"sourceInterval":[321,345]},["app",{"sourceInterval":[321,327]},"import",[]],["app",{"sourceInterval":[328,341]},"stringLiteral",[]],["terminal",{"sourceInterval":[342,345]},";"]]],"Primitive":["define",{"sourceInterval":[380,412]},null,[],["seq",{"sourceInterval":[392,412]},["terminal",{"sourceInterval":[392,403]},"primitive"],["app",{"sourceInterval":[404,408]},"Type",[]],["terminal",{"sourceInterval":[409,412]},";"]]],"StaticFunction":["define",{"sourceInterval":[441,466]},null,[],["app",{"sourceInterval":[458,466]},"Function",[]]],"NativeFunction_withVoid":["define",{"sourceInterval":[488,592]},null,[],["seq",{"sourceInterval":[488,581]},["app",{"sourceInterval":[488,501]},"nameAttribute",[]],["terminal",{"sourceInterval":[502,505]},"("],["app",{"sourceInterval":[506,512]},"funcId",[]],["terminal",{"sourceInterval":[513,516]},")"],["star",{"sourceInterval":[517,535]},["app",{"sourceInterval":[517,534]},"FunctionAttribute",[]]],["app",{"sourceInterval":[536,542]},"native",[]],["app",{"sourceInterval":[543,545]},"id",[]],["terminal",{"sourceInterval":[546,549]},"("],["app",{"sourceInterval":[550,573]},"ListOf",[["app",{"sourceInterval":[557,568]},"FunctionArg",[]],["terminal",{"sourceInterval":[569,572]},","]]],["terminal",{"sourceInterval":[574,577]},")"],["terminal",{"sourceInterval":[578,581]},";"]]],"NativeFunction_withType":["define",{"sourceInterval":[614,727]},null,[],["seq",{"sourceInterval":[614,716]},["app",{"sourceInterval":[614,627]},"nameAttribute",[]],["terminal",{"sourceInterval":[628,631]},"("],["app",{"sourceInterval":[632,638]},"funcId",[]],["terminal",{"sourceInterval":[639,642]},")"],["star",{"sourceInterval":[643,661]},["app",{"sourceInterval":[643,660]},"FunctionAttribute",[]]],["app",{"sourceInterval":[662,668]},"native",[]],["app",{"sourceInterval":[669,671]},"id",[]],["terminal",{"sourceInterval":[672,675]},"("],["app",{"sourceInterval":[676,699]},"ListOf",[["app",{"sourceInterval":[683,694]},"FunctionArg",[]],["terminal",{"sourceInterval":[695,698]},","]]],["terminal",{"sourceInterval":[700,703]},")"],["terminal",{"sourceInterval":[704,707]},":"],["app",{"sourceInterval":[708,712]},"Type",[]],["terminal",{"sourceInterval":[713,716]},";"]]],"NativeFunction":["define",{"sourceInterval":[471,727]},null,[],["alt",{"sourceInterval":[488,727]},["app",{"sourceInterval":[488,581]},"NativeFunction_withVoid",[]],["app",{"sourceInterval":[614,716]},"NativeFunction_withType",[]]]],"Type_optional":["define",{"sourceInterval":[770,796]},null,[],["seq",{"sourceInterval":[770,785]},["app",{"sourceInterval":[770,781]},"typeLiteral",[]],["terminal",{"sourceInterval":[782,785]},"?"]]],"Type_required":["define",{"sourceInterval":[808,830]},null,[],["app",{"sourceInterval":[808,819]},"typeLiteral",[]]],"Type_map":["define",{"sourceInterval":[842,907]},null,[],["seq",{"sourceInterval":[842,901]},["terminal",{"sourceInterval":[842,847]},"map"],["terminal",{"sourceInterval":[848,851]},"<"],["app",{"sourceInterval":[852,863]},"typeLiteral",[]],["opt",{"sourceInterval":[864,872]},["seq",{"sourceInterval":[865,870]},["app",{"sourceInterval":[865,867]},"as",[]],["app",{"sourceInterval":[868,870]},"id",[]]]],["terminal",{"sourceInterval":[873,876]},","],["app",{"sourceInterval":[877,888]},"typeLiteral",[]],["opt",{"sourceInterval":[889,897]},["seq",{"sourceInterval":[890,895]},["app",{"sourceInterval":[890,892]},"as",[]],["app",{"sourceInterval":[893,895]},"id",[]]]],["terminal",{"sourceInterval":[898,901]},">"]]],"Type_bounced":["define",{"sourceInterval":[919,958]},null,[],["seq",{"sourceInterval":[919,948]},["terminal",{"sourceInterval":[919,928]},"bounced"],["terminal",{"sourceInterval":[929,932]},"<"],["app",{"sourceInterval":[933,944]},"typeLiteral",[]],["terminal",{"sourceInterval":[945,948]},">"]]],"Type":["define",{"sourceInterval":[763,958]},null,[],["alt",{"sourceInterval":[770,958]},["app",{"sourceInterval":[770,785]},"Type_optional",[]],["app",{"sourceInterval":[808,819]},"Type_required",[]],["app",{"sourceInterval":[842,901]},"Type_map",[]],["app",{"sourceInterval":[919,948]},"Type_bounced",[]]]],"Field_default":["define",{"sourceInterval":[971,996]},null,[],["seq",{"sourceInterval":[971,986]},["app",{"sourceInterval":[971,973]},"id",[]],["terminal",{"sourceInterval":[974,977]},":"],["app",{"sourceInterval":[978,982]},"Type",[]],["terminal",{"sourceInterval":[983,986]},";"]]],"Field_defaultWithInit":["define",{"sourceInterval":[1009,1057]},null,[],["seq",{"sourceInterval":[1009,1039]},["app",{"sourceInterval":[1009,1011]},"id",[]],["terminal",{"sourceInterval":[1012,1015]},":"],["app",{"sourceInterval":[1016,1020]},"Type",[]],["terminal",{"sourceInterval":[1021,1024]},"="],["app",{"sourceInterval":[1025,1035]},"Expression",[]],["terminal",{"sourceInterval":[1036,1039]},";"]]],"Field_withSerialization":["define",{"sourceInterval":[1070,1111]},null,[],["seq",{"sourceInterval":[1070,1091]},["app",{"sourceInterval":[1070,1072]},"id",[]],["terminal",{"sourceInterval":[1073,1076]},":"],["app",{"sourceInterval":[1077,1081]},"Type",[]],["app",{"sourceInterval":[1082,1084]},"as",[]],["app",{"sourceInterval":[1085,1087]},"id",[]],["terminal",{"sourceInterval":[1088,1091]},";"]]],"Field_withSerializationAndInit":["define",{"sourceInterval":[1124,1187]},null,[],["seq",{"sourceInterval":[1124,1160]},["app",{"sourceInterval":[1124,1126]},"id",[]],["terminal",{"sourceInterval":[1127,1130]},":"],["app",{"sourceInterval":[1131,1135]},"Type",[]],["app",{"sourceInterval":[1136,1138]},"as",[]],["app",{"sourceInterval":[1139,1141]},"id",[]],["terminal",{"sourceInterval":[1142,1145]},"="],["app",{"sourceInterval":[1146,1156]},"Expression",[]],["terminal",{"sourceInterval":[1157,1160]},";"]]],"Field":["define",{"sourceInterval":[963,1187]},null,[],["alt",{"sourceInterval":[971,1187]},["app",{"sourceInterval":[971,986]},"Field_default",[]],["app",{"sourceInterval":[1009,1039]},"Field_defaultWithInit",[]],["app",{"sourceInterval":[1070,1091]},"Field_withSerialization",[]],["app",{"sourceInterval":[1124,1160]},"Field_withSerializationAndInit",[]]]],"ConstantAttribute_virtual":["define",{"sourceInterval":[1233,1253]},null,[],["app",{"sourceInterval":[1233,1240]},"virtual",[]]],"ConstantAttribute_override":["define",{"sourceInterval":[1278,1299]},null,[],["app",{"sourceInterval":[1278,1286]},"override",[]]],"ConstantAttribute_abstract":["define",{"sourceInterval":[1324,1345]},null,[],["app",{"sourceInterval":[1324,1332]},"abstract",[]]],"ConstantAttribute":["define",{"sourceInterval":[1213,1345]},null,[],["alt",{"sourceInterval":[1233,1345]},["app",{"sourceInterval":[1233,1240]},"ConstantAttribute_virtual",[]],["app",{"sourceInterval":[1278,1286]},"ConstantAttribute_override",[]],["app",{"sourceInterval":[1324,1332]},"ConstantAttribute_abstract",[]]]],"Constant_withValue":["define",{"sourceInterval":[1361,1433]},null,[],["seq",{"sourceInterval":[1361,1421]},["star",{"sourceInterval":[1361,1379]},["app",{"sourceInterval":[1361,1378]},"ConstantAttribute",[]]],["not",{"sourceInterval":[1380,1384]},["app",{"sourceInterval":[1381,1384]},"fun",[]]],["app",{"sourceInterval":[1385,1390]},"const",[]],["app",{"sourceInterval":[1391,1393]},"id",[]],["terminal",{"sourceInterval":[1394,1397]},":"],["app",{"sourceInterval":[1398,1402]},"Type",[]],["terminal",{"sourceInterval":[1403,1406]},"="],["app",{"sourceInterval":[1407,1417]},"Expression",[]],["terminal",{"sourceInterval":[1418,1421]},";"]]],"Constant_withEmpty":["define",{"sourceInterval":[1449,1521]},null,[],["seq",{"sourceInterval":[1449,1494]},["star",{"sourceInterval":[1449,1467]},["app",{"sourceInterval":[1449,1466]},"ConstantAttribute",[]]],["not",{"sourceInterval":[1468,1472]},["app",{"sourceInterval":[1469,1472]},"fun",[]]],["app",{"sourceInterval":[1473,1478]},"const",[]],["app",{"sourceInterval":[1479,1481]},"id",[]],["terminal",{"sourceInterval":[1482,1485]},":"],["app",{"sourceInterval":[1486,1490]},"Type",[]],["terminal",{"sourceInterval":[1491,1494]},";"]]],"Constant":["define",{"sourceInterval":[1350,1521]},null,[],["alt",{"sourceInterval":[1361,1521]},["app",{"sourceInterval":[1361,1421]},"Constant_withValue",[]],["app",{"sourceInterval":[1449,1494]},"Constant_withEmpty",[]]]],"Struct_originary":["define",{"sourceInterval":[1550,1602]},null,[],["seq",{"sourceInterval":[1550,1590]},["terminal",{"sourceInterval":[1550,1558]},"struct"],["app",{"sourceInterval":[1559,1570]},"typeLiteral",[]],["terminal",{"sourceInterval":[1571,1574]},"{"],["star",{"sourceInterval":[1575,1586]},["app",{"sourceInterval":[1575,1585]},"StructBody",[]]],["terminal",{"sourceInterval":[1587,1590]},"}"]]],"Struct_message":["define",{"sourceInterval":[1616,1667]},null,[],["seq",{"sourceInterval":[1616,1657]},["terminal",{"sourceInterval":[1616,1625]},"message"],["app",{"sourceInterval":[1626,1637]},"typeLiteral",[]],["terminal",{"sourceInterval":[1638,1641]},"{"],["star",{"sourceInterval":[1642,1653]},["app",{"sourceInterval":[1642,1652]},"StructBody",[]]],["terminal",{"sourceInterval":[1654,1657]},"}"]]],"Struct_messageWithId":["define",{"sourceInterval":[1681,1761]},null,[],["seq",{"sourceInterval":[1681,1745]},["terminal",{"sourceInterval":[1681,1690]},"message"],["terminal",{"sourceInterval":[1691,1694]},"("],["app",{"sourceInterval":[1695,1709]},"integerLiteral",[]],["terminal",{"sourceInterval":[1710,1713]},")"],["app",{"sourceInterval":[1714,1725]},"typeLiteral",[]],["terminal",{"sourceInterval":[1726,1729]},"{"],["star",{"sourceInterval":[1730,1741]},["app",{"sourceInterval":[1730,1740]},"StructBody",[]]],["terminal",{"sourceInterval":[1742,1745]},"}"]]],"Struct":["define",{"sourceInterval":[1541,1761]},null,[],["alt",{"sourceInterval":[1550,1761]},["app",{"sourceInterval":[1550,1590]},"Struct_originary",[]],["app",{"sourceInterval":[1616,1657]},"Struct_message",[]],["app",{"sourceInterval":[1681,1745]},"Struct_messageWithId",[]]]],"StructBody":["define",{"sourceInterval":[1766,1784]},null,[],["app",{"sourceInterval":[1779,1784]},"Field",[]]],"Contract_simple":["define",{"sourceInterval":[1817,1878]},null,[],["seq",{"sourceInterval":[1817,1869]},["star",{"sourceInterval":[1817,1835]},["app",{"sourceInterval":[1817,1834]},"ContractAttribute",[]]],["app",{"sourceInterval":[1836,1844]},"contract",[]],["app",{"sourceInterval":[1845,1847]},"id",[]],["terminal",{"sourceInterval":[1848,1851]},"{"],["star",{"sourceInterval":[1852,1865]},["app",{"sourceInterval":[1852,1864]},"ContractBody",[]]],["terminal",{"sourceInterval":[1866,1869]},"}"]]],"Contract_withTraits":["define",{"sourceInterval":[1894,1979]},null,[],["seq",{"sourceInterval":[1894,1966]},["star",{"sourceInterval":[1894,1912]},["app",{"sourceInterval":[1894,1911]},"ContractAttribute",[]]],["app",{"sourceInterval":[1913,1921]},"contract",[]],["app",{"sourceInterval":[1922,1924]},"id",[]],["app",{"sourceInterval":[1925,1929]},"with",[]],["app",{"sourceInterval":[1930,1944]},"ListOf",[["app",{"sourceInterval":[1937,1939]},"id",[]],["terminal",{"sourceInterval":[1940,1943]},","]]],["terminal",{"sourceInterval":[1945,1948]},"{"],["star",{"sourceInterval":[1949,1962]},["app",{"sourceInterval":[1949,1961]},"ContractBody",[]]],["terminal",{"sourceInterval":[1963,1966]},"}"]]],"Contract":["define",{"sourceInterval":[1806,1979]},null,[],["alt",{"sourceInterval":[1817,1979]},["app",{"sourceInterval":[1817,1869]},"Contract_simple",[]],["app",{"sourceInterval":[1894,1966]},"Contract_withTraits",[]]]],"ContractInit":["define",{"sourceInterval":[1984,2056]},null,[],["seq",{"sourceInterval":[1999,2056]},["terminal",{"sourceInterval":[1999,2005]},"init"],["terminal",{"sourceInterval":[2006,2009]},"("],["app",{"sourceInterval":[2010,2033]},"ListOf",[["app",{"sourceInterval":[2017,2028]},"FunctionArg",[]],["terminal",{"sourceInterval":[2029,2032]},","]]],["terminal",{"sourceInterval":[2034,2037]},")"],["terminal",{"sourceInterval":[2038,2041]},"{"],["star",{"sourceInterval":[2042,2052]},["app",{"sourceInterval":[2042,2051]},"Statement",[]]],["terminal",{"sourceInterval":[2053,2056]},"}"]]],"ContractBody":["define",{"sourceInterval":[2061,2204]},null,[],["alt",{"sourceInterval":[2076,2204]},["app",{"sourceInterval":[2076,2081]},"Field",[]],["app",{"sourceInterval":[2101,2113]},"ContractInit",[]],["app",{"sourceInterval":[2133,2148]},"ReceiveFunction",[]],["app",{"sourceInterval":[2168,2176]},"Function",[]],["app",{"sourceInterval":[2196,2204]},"Constant",[]]]],"Trait_originary":["define",{"sourceInterval":[2235,2293]},null,[],["seq",{"sourceInterval":[2235,2281]},["star",{"sourceInterval":[2235,2253]},["app",{"sourceInterval":[2235,2252]},"ContractAttribute",[]]],["app",{"sourceInterval":[2254,2259]},"trait",[]],["app",{"sourceInterval":[2260,2262]},"id",[]],["terminal",{"sourceInterval":[2263,2266]},"{"],["star",{"sourceInterval":[2267,2277]},["app",{"sourceInterval":[2267,2276]},"TraitBody",[]]],["terminal",{"sourceInterval":[2278,2281]},"}"]]],"Trait_withTraits":["define",{"sourceInterval":[2306,2385]},null,[],["seq",{"sourceInterval":[2306,2372]},["star",{"sourceInterval":[2306,2324]},["app",{"sourceInterval":[2306,2323]},"ContractAttribute",[]]],["app",{"sourceInterval":[2325,2330]},"trait",[]],["app",{"sourceInterval":[2331,2333]},"id",[]],["app",{"sourceInterval":[2334,2338]},"with",[]],["app",{"sourceInterval":[2339,2353]},"ListOf",[["app",{"sourceInterval":[2346,2348]},"id",[]],["terminal",{"sourceInterval":[2349,2352]},","]]],["terminal",{"sourceInterval":[2354,2357]},"{"],["star",{"sourceInterval":[2358,2368]},["app",{"sourceInterval":[2358,2367]},"TraitBody",[]]],["terminal",{"sourceInterval":[2369,2372]},"}"]]],"Trait":["define",{"sourceInterval":[2227,2385]},null,[],["alt",{"sourceInterval":[2235,2385]},["app",{"sourceInterval":[2235,2281]},"Trait_originary",[]],["app",{"sourceInterval":[2306,2372]},"Trait_withTraits",[]]]],"TraitBody":["define",{"sourceInterval":[2390,2489]},null,[],["alt",{"sourceInterval":[2402,2489]},["app",{"sourceInterval":[2402,2407]},"Field",[]],["app",{"sourceInterval":[2424,2439]},"ReceiveFunction",[]],["app",{"sourceInterval":[2456,2464]},"Function",[]],["app",{"sourceInterval":[2481,2489]},"Constant",[]]]],"ContractAttribute_interface":["define",{"sourceInterval":[2542,2588]},null,[],["seq",{"sourceInterval":[2542,2576]},["terminal",{"sourceInterval":[2542,2554]},"@interface"],["terminal",{"sourceInterval":[2555,2558]},"("],["app",{"sourceInterval":[2559,2572]},"stringLiteral",[]],["terminal",{"sourceInterval":[2573,2576]},")"]]],"ContractAttribute":["define",{"sourceInterval":[2522,2588]},null,[],["app",{"sourceInterval":[2542,2588]},"ContractAttribute_interface",[]]],"FunctionAttribute_getter":["define",{"sourceInterval":[2630,2648]},null,[],["terminal",{"sourceInterval":[2630,2635]},"get"]],"FunctionAttribute_mutates":["define",{"sourceInterval":[2673,2692]},null,[],["app",{"sourceInterval":[2673,2680]},"mutates",[]]],"FunctionAttribute_extends":["define",{"sourceInterval":[2717,2736]},null,[],["app",{"sourceInterval":[2717,2724]},"extends",[]]],"FunctionAttribute_virtual":["define",{"sourceInterval":[2761,2780]},null,[],["app",{"sourceInterval":[2761,2768]},"virtual",[]]],"FunctionAttribute_override":["define",{"sourceInterval":[2805,2825]},null,[],["app",{"sourceInterval":[2805,2813]},"override",[]]],"FunctionAttribute_inline":["define",{"sourceInterval":[2850,2868]},null,[],["app",{"sourceInterval":[2850,2856]},"inline",[]]],"FunctionAttribute_abstract":["define",{"sourceInterval":[2893,2913]},null,[],["app",{"sourceInterval":[2893,2901]},"abstract",[]]],"FunctionAttribute":["define",{"sourceInterval":[2610,2913]},null,[],["alt",{"sourceInterval":[2630,2913]},["app",{"sourceInterval":[2630,2635]},"FunctionAttribute_getter",[]],["app",{"sourceInterval":[2673,2680]},"FunctionAttribute_mutates",[]],["app",{"sourceInterval":[2717,2724]},"FunctionAttribute_extends",[]],["app",{"sourceInterval":[2761,2768]},"FunctionAttribute_virtual",[]],["app",{"sourceInterval":[2805,2813]},"FunctionAttribute_override",[]],["app",{"sourceInterval":[2850,2856]},"FunctionAttribute_inline",[]],["app",{"sourceInterval":[2893,2901]},"FunctionAttribute_abstract",[]]]],"Function_withVoid":["define",{"sourceInterval":[2929,3016]},null,[],["seq",{"sourceInterval":[2929,3005]},["star",{"sourceInterval":[2929,2947]},["app",{"sourceInterval":[2929,2946]},"FunctionAttribute",[]]],["app",{"sourceInterval":[2948,2951]},"fun",[]],["app",{"sourceInterval":[2952,2954]},"id",[]],["terminal",{"sourceInterval":[2955,2958]},"("],["app",{"sourceInterval":[2959,2982]},"ListOf",[["app",{"sourceInterval":[2966,2977]},"FunctionArg",[]],["terminal",{"sourceInterval":[2978,2981]},","]]],["terminal",{"sourceInterval":[2983,2986]},")"],["terminal",{"sourceInterval":[2987,2990]},"{"],["star",{"sourceInterval":[2991,3001]},["app",{"sourceInterval":[2991,3000]},"Statement",[]]],["terminal",{"sourceInterval":[3002,3005]},"}"]]],"Function_withType":["define",{"sourceInterval":[3032,3128]},null,[],["seq",{"sourceInterval":[3032,3117]},["star",{"sourceInterval":[3032,3050]},["app",{"sourceInterval":[3032,3049]},"FunctionAttribute",[]]],["app",{"sourceInterval":[3051,3054]},"fun",[]],["app",{"sourceInterval":[3055,3057]},"id",[]],["terminal",{"sourceInterval":[3058,3061]},"("],["app",{"sourceInterval":[3062,3085]},"ListOf",[["app",{"sourceInterval":[3069,3080]},"FunctionArg",[]],["terminal",{"sourceInterval":[3081,3084]},","]]],["terminal",{"sourceInterval":[3086,3089]},")"],["terminal",{"sourceInterval":[3090,3093]},":"],["app",{"sourceInterval":[3094,3098]},"Type",[]],["terminal",{"sourceInterval":[3099,3102]},"{"],["star",{"sourceInterval":[3103,3113]},["app",{"sourceInterval":[3103,3112]},"Statement",[]]],["terminal",{"sourceInterval":[3114,3117]},"}"]]],"Function_abstractVoid":["define",{"sourceInterval":[3144,3220]},null,[],["seq",{"sourceInterval":[3144,3205]},["star",{"sourceInterval":[3144,3162]},["app",{"sourceInterval":[3144,3161]},"FunctionAttribute",[]]],["app",{"sourceInterval":[3163,3166]},"fun",[]],["app",{"sourceInterval":[3167,3169]},"id",[]],["terminal",{"sourceInterval":[3170,3173]},"("],["app",{"sourceInterval":[3174,3197]},"ListOf",[["app",{"sourceInterval":[3181,3192]},"FunctionArg",[]],["terminal",{"sourceInterval":[3193,3196]},","]]],["terminal",{"sourceInterval":[3198,3201]},")"],["terminal",{"sourceInterval":[3202,3205]},";"]]],"Function_abstractType":["define",{"sourceInterval":[3236,3321]},null,[],["seq",{"sourceInterval":[3236,3306]},["star",{"sourceInterval":[3236,3254]},["app",{"sourceInterval":[3236,3253]},"FunctionAttribute",[]]],["app",{"sourceInterval":[3255,3258]},"fun",[]],["app",{"sourceInterval":[3259,3261]},"id",[]],["terminal",{"sourceInterval":[3262,3265]},"("],["app",{"sourceInterval":[3266,3289]},"ListOf",[["app",{"sourceInterval":[3273,3284]},"FunctionArg",[]],["terminal",{"sourceInterval":[3285,3288]},","]]],["terminal",{"sourceInterval":[3290,3293]},")"],["terminal",{"sourceInterval":[3294,3297]},":"],["app",{"sourceInterval":[3298,3302]},"Type",[]],["terminal",{"sourceInterval":[3303,3306]},";"]]],"Function":["define",{"sourceInterval":[2918,3321]},null,[],["alt",{"sourceInterval":[2929,3321]},["app",{"sourceInterval":[2929,3005]},"Function_withVoid",[]],["app",{"sourceInterval":[3032,3117]},"Function_withType",[]],["app",{"sourceInterval":[3144,3205]},"Function_abstractVoid",[]],["app",{"sourceInterval":[3236,3306]},"Function_abstractType",[]]]],"FunctionArg":["define",{"sourceInterval":[3326,3351]},null,[],["seq",{"sourceInterval":[3340,3351]},["app",{"sourceInterval":[3340,3342]},"id",[]],["terminal",{"sourceInterval":[3343,3346]},":"],["app",{"sourceInterval":[3347,3351]},"Type",[]]]],"ReceiveFunction_simple":["define",{"sourceInterval":[3379,3436]},null,[],["seq",{"sourceInterval":[3379,3427]},["terminal",{"sourceInterval":[3379,3388]},"receive"],["terminal",{"sourceInterval":[3389,3392]},"("],["app",{"sourceInterval":[3393,3404]},"FunctionArg",[]],["terminal",{"sourceInterval":[3405,3408]},")"],["terminal",{"sourceInterval":[3409,3412]},"{"],["star",{"sourceInterval":[3413,3423]},["app",{"sourceInterval":[3413,3422]},"Statement",[]]],["terminal",{"sourceInterval":[3424,3427]},"}"]]],"ReceiveFunction_empty":["define",{"sourceInterval":[3459,3503]},null,[],["seq",{"sourceInterval":[3459,3495]},["terminal",{"sourceInterval":[3459,3468]},"receive"],["terminal",{"sourceInterval":[3469,3472]},"("],["terminal",{"sourceInterval":[3473,3476]},")"],["terminal",{"sourceInterval":[3477,3480]},"{"],["star",{"sourceInterval":[3481,3491]},["app",{"sourceInterval":[3481,3490]},"Statement",[]]],["terminal",{"sourceInterval":[3492,3495]},"}"]]],"ReceiveFunction_comment":["define",{"sourceInterval":[3526,3586]},null,[],["seq",{"sourceInterval":[3526,3576]},["terminal",{"sourceInterval":[3526,3535]},"receive"],["terminal",{"sourceInterval":[3536,3539]},"("],["app",{"sourceInterval":[3540,3553]},"stringLiteral",[]],["terminal",{"sourceInterval":[3554,3557]},")"],["terminal",{"sourceInterval":[3558,3561]},"{"],["star",{"sourceInterval":[3562,3572]},["app",{"sourceInterval":[3562,3571]},"Statement",[]]],["terminal",{"sourceInterval":[3573,3576]},"}"]]],"ReceiveFunction_bounced":["define",{"sourceInterval":[3609,3667]},null,[],["seq",{"sourceInterval":[3609,3657]},["terminal",{"sourceInterval":[3609,3618]},"bounced"],["terminal",{"sourceInterval":[3619,3622]},"("],["app",{"sourceInterval":[3623,3634]},"FunctionArg",[]],["terminal",{"sourceInterval":[3635,3638]},")"],["terminal",{"sourceInterval":[3639,3642]},"{"],["star",{"sourceInterval":[3643,3653]},["app",{"sourceInterval":[3643,3652]},"Statement",[]]],["terminal",{"sourceInterval":[3654,3657]},"}"]]],"ReceiveFunction_externalSimple":["define",{"sourceInterval":[3690,3756]},null,[],["seq",{"sourceInterval":[3690,3739]},["terminal",{"sourceInterval":[3690,3700]},"external"],["terminal",{"sourceInterval":[3701,3704]},"("],["app",{"sourceInterval":[3705,3716]},"FunctionArg",[]],["terminal",{"sourceInterval":[3717,3720]},")"],["terminal",{"sourceInterval":[3721,3724]},"{"],["star",{"sourceInterval":[3725,3735]},["app",{"sourceInterval":[3725,3734]},"Statement",[]]],["terminal",{"sourceInterval":[3736,3739]},"}"]]],"ReceiveFunction_externalComment":["define",{"sourceInterval":[3779,3848]},null,[],["seq",{"sourceInterval":[3779,3830]},["terminal",{"sourceInterval":[3779,3789]},"external"],["terminal",{"sourceInterval":[3790,3793]},"("],["app",{"sourceInterval":[3794,3807]},"stringLiteral",[]],["terminal",{"sourceInterval":[3808,3811]},")"],["terminal",{"sourceInterval":[3812,3815]},"{"],["star",{"sourceInterval":[3816,3826]},["app",{"sourceInterval":[3816,3825]},"Statement",[]]],["terminal",{"sourceInterval":[3827,3830]},"}"]]],"ReceiveFunction_externalEmpty":["define",{"sourceInterval":[3871,3924]},null,[],["seq",{"sourceInterval":[3871,3908]},["terminal",{"sourceInterval":[3871,3881]},"external"],["terminal",{"sourceInterval":[3882,3885]},"("],["terminal",{"sourceInterval":[3886,3889]},")"],["terminal",{"sourceInterval":[3890,3893]},"{"],["star",{"sourceInterval":[3894,3904]},["app",{"sourceInterval":[3894,3903]},"Statement",[]]],["terminal",{"sourceInterval":[3905,3908]},"}"]]],"ReceiveFunction":["define",{"sourceInterval":[3361,3924]},null,[],["alt",{"sourceInterval":[3379,3924]},["app",{"sourceInterval":[3379,3427]},"ReceiveFunction_simple",[]],["app",{"sourceInterval":[3459,3495]},"ReceiveFunction_empty",[]],["app",{"sourceInterval":[3526,3576]},"ReceiveFunction_comment",[]],["app",{"sourceInterval":[3609,3657]},"ReceiveFunction_bounced",[]],["app",{"sourceInterval":[3690,3739]},"ReceiveFunction_externalSimple",[]],["app",{"sourceInterval":[3779,3830]},"ReceiveFunction_externalComment",[]],["app",{"sourceInterval":[3871,3908]},"ReceiveFunction_externalEmpty",[]]]],"Statement":["define",{"sourceInterval":[3948,4232]},null,[],["alt",{"sourceInterval":[3960,4232]},["app",{"sourceInterval":[3960,3972]},"StatementLet",[]],["app",{"sourceInterval":[3989,4003]},"StatementBlock",[]],["app",{"sourceInterval":[4020,4035]},"StatementReturn",[]],["app",{"sourceInterval":[4052,4071]},"StatementExpression",[]],["app",{"sourceInterval":[4088,4103]},"StatementAssign",[]],["app",{"sourceInterval":[4120,4138]},"StatementCondition",[]],["app",{"sourceInterval":[4155,4169]},"StatementWhile",[]],["app",{"sourceInterval":[4186,4201]},"StatementRepeat",[]],["app",{"sourceInterval":[4218,4232]},"StatementUntil",[]]]],"StatementBlock":["define",{"sourceInterval":[4237,4272]},null,[],["seq",{"sourceInterval":[4254,4272]},["terminal",{"sourceInterval":[4254,4257]},"{"],["star",{"sourceInterval":[4258,4268]},["app",{"sourceInterval":[4258,4267]},"Statement",[]]],["terminal",{"sourceInterval":[4269,4272]},"}"]]],"StatementLet":["define",{"sourceInterval":[4277,4326]},null,[],["seq",{"sourceInterval":[4292,4326]},["app",{"sourceInterval":[4292,4295]},"let",[]],["app",{"sourceInterval":[4296,4298]},"id",[]],["terminal",{"sourceInterval":[4299,4302]},":"],["app",{"sourceInterval":[4303,4307]},"Type",[]],["terminal",{"sourceInterval":[4308,4311]},"="],["app",{"sourceInterval":[4312,4322]},"Expression",[]],["terminal",{"sourceInterval":[4323,4326]},";"]]],"StatementReturn_withExpression":["define",{"sourceInterval":[4349,4387]},null,[],["seq",{"sourceInterval":[4349,4370]},["app",{"sourceInterval":[4349,4355]},"return",[]],["app",{"sourceInterval":[4356,4366]},"Expression",[]],["terminal",{"sourceInterval":[4367,4370]},";"]]],"StatementReturn_withoutExpression":["define",{"sourceInterval":[4410,4440]},null,[],["seq",{"sourceInterval":[4410,4420]},["app",{"sourceInterval":[4410,4416]},"return",[]],["terminal",{"sourceInterval":[4417,4420]},";"]]],"StatementReturn":["define",{"sourceInterval":[4331,4440]},null,[],["alt",{"sourceInterval":[4349,4440]},["app",{"sourceInterval":[4349,4370]},"StatementReturn_withExpression",[]],["app",{"sourceInterval":[4410,4420]},"StatementReturn_withoutExpression",[]]]],"StatementExpression":["define",{"sourceInterval":[4449,4485]},null,[],["seq",{"sourceInterval":[4471,4485]},["app",{"sourceInterval":[4471,4481]},"Expression",[]],["terminal",{"sourceInterval":[4482,4485]},";"]]],"StatementAssign":["define",{"sourceInterval":[4490,4533]},null,[],["seq",{"sourceInterval":[4508,4533]},["app",{"sourceInterval":[4508,4514]},"LValue",[]],["terminal",{"sourceInterval":[4515,4518]},"="],["app",{"sourceInterval":[4519,4529]},"Expression",[]],["terminal",{"sourceInterval":[4530,4533]},";"]]],"StatementCondition_simple":["define",{"sourceInterval":[4559,4606]},null,[],["seq",{"sourceInterval":[4559,4597]},["app",{"sourceInterval":[4559,4561]},"if",[]],["app",{"sourceInterval":[4562,4572]},"Expression",[]],["terminal",{"sourceInterval":[4573,4576]},"{"],["star",{"sourceInterval":[4577,4587]},["app",{"sourceInterval":[4577,4586]},"Statement",[]]],["terminal",{"sourceInterval":[4588,4591]},"}"],["not",{"sourceInterval":[4592,4597]},["app",{"sourceInterval":[4593,4597]},"else",[]]]]],"StatementCondition_withElse":["define",{"sourceInterval":[4632,4699]},null,[],["seq",{"sourceInterval":[4632,4688]},["app",{"sourceInterval":[4632,4634]},"if",[]],["app",{"sourceInterval":[4635,4645]},"Expression",[]],["terminal",{"sourceInterval":[4646,4649]},"{"],["star",{"sourceInterval":[4650,4660]},["app",{"sourceInterval":[4650,4659]},"Statement",[]]],["terminal",{"sourceInterval":[4661,4664]},"}"],["app",{"sourceInterval":[4665,4669]},"else",[]],["terminal",{"sourceInterval":[4670,4673]},"{"],["star",{"sourceInterval":[4674,4684]},["app",{"sourceInterval":[4674,4683]},"Statement",[]]],["terminal",{"sourceInterval":[4685,4688]},"}"]]],"StatementCondition_withElseIf":["define",{"sourceInterval":[4725,4794]},null,[],["seq",{"sourceInterval":[4725,4781]},["app",{"sourceInterval":[4725,4727]},"if",[]],["app",{"sourceInterval":[4728,4738]},"Expression",[]],["terminal",{"sourceInterval":[4739,4742]},"{"],["star",{"sourceInterval":[4743,4753]},["app",{"sourceInterval":[4743,4752]},"Statement",[]]],["terminal",{"sourceInterval":[4754,4757]},"}"],["app",{"sourceInterval":[4758,4762]},"else",[]],["app",{"sourceInterval":[4763,4781]},"StatementCondition",[]]]],"StatementCondition":["define",{"sourceInterval":[4538,4794]},null,[],["alt",{"sourceInterval":[4559,4794]},["app",{"sourceInterval":[4559,4597]},"StatementCondition_simple",[]],["app",{"sourceInterval":[4632,4688]},"StatementCondition_withElse",[]],["app",{"sourceInterval":[4725,4781]},"StatementCondition_withElseIf",[]]]],"StatementWhile":["define",{"sourceInterval":[4799,4859]},null,[],["seq",{"sourceInterval":[4816,4859]},["app",{"sourceInterval":[4816,4821]},"while",[]],["terminal",{"sourceInterval":[4822,4825]},"("],["app",{"sourceInterval":[4826,4836]},"Expression",[]],["terminal",{"sourceInterval":[4837,4840]},")"],["terminal",{"sourceInterval":[4841,4844]},"{"],["star",{"sourceInterval":[4845,4855]},["app",{"sourceInterval":[4845,4854]},"Statement",[]]],["terminal",{"sourceInterval":[4856,4859]},"}"]]],"StatementRepeat":["define",{"sourceInterval":[4864,4926]},null,[],["seq",{"sourceInterval":[4882,4926]},["app",{"sourceInterval":[4882,4888]},"repeat",[]],["terminal",{"sourceInterval":[4889,4892]},"("],["app",{"sourceInterval":[4893,4903]},"Expression",[]],["terminal",{"sourceInterval":[4904,4907]},")"],["terminal",{"sourceInterval":[4908,4911]},"{"],["star",{"sourceInterval":[4912,4922]},["app",{"sourceInterval":[4912,4921]},"Statement",[]]],["terminal",{"sourceInterval":[4923,4926]},"}"]]],"StatementUntil":["define",{"sourceInterval":[4931,4998]},null,[],["seq",{"sourceInterval":[4948,4998]},["app",{"sourceInterval":[4948,4950]},"do",[]],["terminal",{"sourceInterval":[4951,4954]},"{"],["star",{"sourceInterval":[4955,4965]},["app",{"sourceInterval":[4955,4964]},"Statement",[]]],["terminal",{"sourceInterval":[4966,4969]},"}"],["app",{"sourceInterval":[4970,4975]},"until",[]],["terminal",{"sourceInterval":[4976,4979]},"("],["app",{"sourceInterval":[4980,4990]},"Expression",[]],["terminal",{"sourceInterval":[4991,4994]},")"],["terminal",{"sourceInterval":[4995,4998]},";"]]],"LValue_more":["define",{"sourceInterval":[5028,5048]},null,[],["seq",{"sourceInterval":[5028,5041]},["app",{"sourceInterval":[5028,5030]},"id",[]],["terminal",{"sourceInterval":[5031,5034]},"."],["app",{"sourceInterval":[5035,5041]},"LValue",[]]]],"LValue_single":["define",{"sourceInterval":[5062,5073]},null,[],["app",{"sourceInterval":[5062,5064]},"id",[]]],"LValue":["define",{"sourceInterval":[5019,5073]},null,[],["alt",{"sourceInterval":[5028,5073]},["app",{"sourceInterval":[5028,5041]},"LValue_more",[]],["app",{"sourceInterval":[5062,5064]},"LValue_single",[]]]],"Expression":["define",{"sourceInterval":[5098,5123]},null,[],["app",{"sourceInterval":[5111,5123]},"ExpressionOr",[]]],"ExpressionOr_or":["define",{"sourceInterval":[5143,5179]},null,[],["seq",{"sourceInterval":[5143,5174]},["app",{"sourceInterval":[5143,5155]},"ExpressionOr",[]],["terminal",{"sourceInterval":[5156,5160]},"||"],["app",{"sourceInterval":[5161,5174]},"ExpressionAnd",[]]]],"ExpressionOr":["define",{"sourceInterval":[5128,5212]},null,[],["alt",{"sourceInterval":[5143,5212]},["app",{"sourceInterval":[5143,5174]},"ExpressionOr_or",[]],["app",{"sourceInterval":[5199,5212]},"ExpressionAnd",[]]]],"ExpressionAnd_and":["define",{"sourceInterval":[5233,5275]},null,[],["seq",{"sourceInterval":[5233,5269]},["app",{"sourceInterval":[5233,5246]},"ExpressionAnd",[]],["terminal",{"sourceInterval":[5247,5251]},"&&"],["app",{"sourceInterval":[5252,5269]},"ExpressionCompare",[]]]],"ExpressionAnd":["define",{"sourceInterval":[5217,5313]},null,[],["alt",{"sourceInterval":[5233,5313]},["app",{"sourceInterval":[5233,5269]},"ExpressionAnd_and",[]],["app",{"sourceInterval":[5296,5313]},"ExpressionCompare",[]]]],"ExpressionCompare_not":["define",{"sourceInterval":[5338,5383]},null,[],["seq",{"sourceInterval":[5338,5377]},["app",{"sourceInterval":[5338,5355]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5356,5360]},"!="],["app",{"sourceInterval":[5361,5377]},"ExpressionBinary",[]]]],"ExpressionCompare_eq":["define",{"sourceInterval":[5408,5452]},null,[],["seq",{"sourceInterval":[5408,5447]},["app",{"sourceInterval":[5408,5425]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5426,5430]},"=="],["app",{"sourceInterval":[5431,5447]},"ExpressionBinary",[]]]],"ExpressionCompare_gt":["define",{"sourceInterval":[5477,5520]},null,[],["seq",{"sourceInterval":[5477,5515]},["app",{"sourceInterval":[5477,5494]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5495,5498]},">"],["app",{"sourceInterval":[5499,5515]},"ExpressionBinary",[]]]],"ExpressionCompare_gte":["define",{"sourceInterval":[5545,5590]},null,[],["seq",{"sourceInterval":[5545,5584]},["app",{"sourceInterval":[5545,5562]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5563,5567]},">="],["app",{"sourceInterval":[5568,5584]},"ExpressionBinary",[]]]],"ExpressionCompare_lt":["define",{"sourceInterval":[5615,5658]},null,[],["seq",{"sourceInterval":[5615,5653]},["app",{"sourceInterval":[5615,5632]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5633,5636]},"<"],["app",{"sourceInterval":[5637,5653]},"ExpressionBinary",[]]]],"ExpressionCompare_lte":["define",{"sourceInterval":[5683,5728]},null,[],["seq",{"sourceInterval":[5683,5722]},["app",{"sourceInterval":[5683,5700]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5701,5705]},"<="],["app",{"sourceInterval":[5706,5722]},"ExpressionBinary",[]]]],"ExpressionCompare":["define",{"sourceInterval":[5318,5769]},null,[],["alt",{"sourceInterval":[5338,5769]},["app",{"sourceInterval":[5338,5377]},"ExpressionCompare_not",[]],["app",{"sourceInterval":[5408,5447]},"ExpressionCompare_eq",[]],["app",{"sourceInterval":[5477,5515]},"ExpressionCompare_gt",[]],["app",{"sourceInterval":[5545,5584]},"ExpressionCompare_gte",[]],["app",{"sourceInterval":[5615,5653]},"ExpressionCompare_lt",[]],["app",{"sourceInterval":[5683,5722]},"ExpressionCompare_lte",[]],["app",{"sourceInterval":[5753,5769]},"ExpressionBinary",[]]]],"ExpressionBinary_shr":["define",{"sourceInterval":[5793,5834]},null,[],["seq",{"sourceInterval":[5793,5828]},["app",{"sourceInterval":[5793,5809]},"ExpressionBinary",[]],["terminal",{"sourceInterval":[5810,5814]},">>"],["app",{"sourceInterval":[5815,5828]},"ExpressionAdd",[]]]],"ExpressionBinary_shl":["define",{"sourceInterval":[5857,5898]},null,[],["seq",{"sourceInterval":[5857,5892]},["app",{"sourceInterval":[5857,5873]},"ExpressionBinary",[]],["terminal",{"sourceInterval":[5874,5878]},"<<"],["app",{"sourceInterval":[5879,5892]},"ExpressionAdd",[]]]],"ExpressionBinary_bin_and":["define",{"sourceInterval":[5921,5965]},null,[],["seq",{"sourceInterval":[5921,5955]},["app",{"sourceInterval":[5921,5937]},"ExpressionBinary",[]],["terminal",{"sourceInterval":[5938,5941]},"&"],["app",{"sourceInterval":[5942,5955]},"ExpressionAdd",[]]]],"ExpressionBinary_bin_or":["define",{"sourceInterval":[5988,6031]},null,[],["seq",{"sourceInterval":[5988,6022]},["app",{"sourceInterval":[5988,6004]},"ExpressionBinary",[]],["terminal",{"sourceInterval":[6005,6008]},"|"],["app",{"sourceInterval":[6009,6022]},"ExpressionAdd",[]]]],"ExpressionBinary":["define",{"sourceInterval":[5774,6067]},null,[],["alt",{"sourceInterval":[5793,6067]},["app",{"sourceInterval":[5793,5828]},"ExpressionBinary_shr",[]],["app",{"sourceInterval":[5857,5892]},"ExpressionBinary_shl",[]],["app",{"sourceInterval":[5921,5955]},"ExpressionBinary_bin_and",[]],["app",{"sourceInterval":[5988,6022]},"ExpressionBinary_bin_or",[]],["app",{"sourceInterval":[6054,6067]},"ExpressionAdd",[]]]],"ExpressionAdd_add":["define",{"sourceInterval":[6088,6130]},null,[],["seq",{"sourceInterval":[6088,6124]},["app",{"sourceInterval":[6088,6101]},"ExpressionAdd",[]],["terminal",{"sourceInterval":[6102,6105]},"+"],["not",{"sourceInterval":[6106,6110]},["terminal",{"sourceInterval":[6107,6110]},"+"]],["app",{"sourceInterval":[6111,6124]},"ExpressionMul",[]]]],"ExpressionAdd_sub":["define",{"sourceInterval":[6151,6193]},null,[],["seq",{"sourceInterval":[6151,6187]},["app",{"sourceInterval":[6151,6164]},"ExpressionAdd",[]],["terminal",{"sourceInterval":[6165,6168]},"-"],["not",{"sourceInterval":[6169,6173]},["terminal",{"sourceInterval":[6170,6173]},"-"]],["app",{"sourceInterval":[6174,6187]},"ExpressionMul",[]]]],"ExpressionAdd":["define",{"sourceInterval":[6072,6227]},null,[],["alt",{"sourceInterval":[6088,6227]},["app",{"sourceInterval":[6088,6124]},"ExpressionAdd_add",[]],["app",{"sourceInterval":[6151,6187]},"ExpressionAdd_sub",[]],["app",{"sourceInterval":[6214,6227]},"ExpressionMul",[]]]],"ExpressionMul_mul":["define",{"sourceInterval":[6248,6287]},null,[],["seq",{"sourceInterval":[6248,6281]},["app",{"sourceInterval":[6248,6261]},"ExpressionMul",[]],["terminal",{"sourceInterval":[6262,6265]},"*"],["app",{"sourceInterval":[6266,6281]},"ExpressionUnary",[]]]],"ExpressionMul_div":["define",{"sourceInterval":[6308,6347]},null,[],["seq",{"sourceInterval":[6308,6341]},["app",{"sourceInterval":[6308,6321]},"ExpressionMul",[]],["terminal",{"sourceInterval":[6322,6325]},"/"],["app",{"sourceInterval":[6326,6341]},"ExpressionUnary",[]]]],"ExpressionMul_rem":["define",{"sourceInterval":[6368,6407]},null,[],["seq",{"sourceInterval":[6368,6401]},["app",{"sourceInterval":[6368,6381]},"ExpressionMul",[]],["terminal",{"sourceInterval":[6382,6385]},"%"],["app",{"sourceInterval":[6386,6401]},"ExpressionUnary",[]]]],"ExpressionMul":["define",{"sourceInterval":[6232,6443]},null,[],["alt",{"sourceInterval":[6248,6443]},["app",{"sourceInterval":[6248,6281]},"ExpressionMul_mul",[]],["app",{"sourceInterval":[6308,6341]},"ExpressionMul_div",[]],["app",{"sourceInterval":[6368,6401]},"ExpressionMul_rem",[]],["app",{"sourceInterval":[6428,6443]},"ExpressionUnary",[]]]],"ExpressionUnary_neg":["define",{"sourceInterval":[6466,6497]},null,[],["seq",{"sourceInterval":[6466,6491]},["terminal",{"sourceInterval":[6466,6469]},"-"],["app",{"sourceInterval":[6470,6491]},"ExpressionUnarySuffix",[]]]],"ExpressionUnary_add":["define",{"sourceInterval":[6520,6551]},null,[],["seq",{"sourceInterval":[6520,6545]},["terminal",{"sourceInterval":[6520,6523]},"+"],["app",{"sourceInterval":[6524,6545]},"ExpressionUnarySuffix",[]]]],"ExpressionUnary_not":["define",{"sourceInterval":[6574,6605]},null,[],["seq",{"sourceInterval":[6574,6599]},["terminal",{"sourceInterval":[6574,6577]},"!"],["app",{"sourceInterval":[6578,6599]},"ExpressionUnarySuffix",[]]]],"ExpressionUnary":["define",{"sourceInterval":[6448,6649]},null,[],["alt",{"sourceInterval":[6466,6649]},["app",{"sourceInterval":[6466,6491]},"ExpressionUnary_neg",[]],["app",{"sourceInterval":[6520,6545]},"ExpressionUnary_add",[]],["app",{"sourceInterval":[6574,6599]},"ExpressionUnary_not",[]],["app",{"sourceInterval":[6628,6649]},"ExpressionUnarySuffix",[]]]],"ExpressionUnarySuffix_notNull":["define",{"sourceInterval":[6678,6708]},null,[],["seq",{"sourceInterval":[6678,6698]},["app",{"sourceInterval":[6678,6693]},"ExpressionValue",[]],["terminal",{"sourceInterval":[6694,6698]},"!!"]]],"ExpressionUnarySuffix":["define",{"sourceInterval":[6654,6752]},null,[],["alt",{"sourceInterval":[6678,6752]},["app",{"sourceInterval":[6678,6698]},"ExpressionUnarySuffix_notNull",[]],["app",{"sourceInterval":[6737,6752]},"ExpressionValue",[]]]],"ExpressionBracket":["define",{"sourceInterval":[6757,6795]},null,[],["seq",{"sourceInterval":[6777,6795]},["terminal",{"sourceInterval":[6777,6780]},"("],["app",{"sourceInterval":[6781,6791]},"Expression",[]],["terminal",{"sourceInterval":[6792,6795]},")"]]],"ExpressionValue":["define",{"sourceInterval":[6827,7217]},null,[],["alt",{"sourceInterval":[6845,7217]},["app",{"sourceInterval":[6845,6859]},"ExpressionCall",[]],["app",{"sourceInterval":[6882,6897]},"ExpressionField",[]],["app",{"sourceInterval":[6920,6940]},"ExpressionStaticCall",[]],["app",{"sourceInterval":[6963,6980]},"ExpressionBracket",[]],["app",{"sourceInterval":[7003,7016]},"ExpressionNew",[]],["app",{"sourceInterval":[7039,7053]},"integerLiteral",[]],["app",{"sourceInterval":[7076,7087]},"boolLiteral",[]],["app",{"sourceInterval":[7110,7112]},"id",[]],["app",{"sourceInterval":[7135,7139]},"null",[]],["app",{"sourceInterval":[7162,7178]},"ExpressionInitOf",[]],["app",{"sourceInterval":[7201,7217]},"ExpressionString",[]]]],"ExpressionString":["define",{"sourceInterval":[7222,7254]},null,[],["app",{"sourceInterval":[7241,7254]},"stringLiteral",[]]],"ExpressionField":["define",{"sourceInterval":[7259,7304]},null,[],["seq",{"sourceInterval":[7277,7304]},["app",{"sourceInterval":[7277,7292]},"ExpressionValue",[]],["terminal",{"sourceInterval":[7293,7296]},"."],["app",{"sourceInterval":[7297,7299]},"id",[]],["not",{"sourceInterval":[7300,7304]},["terminal",{"sourceInterval":[7301,7304]},"("]]]],"ExpressionCall":["define",{"sourceInterval":[7309,7380]},null,[],["seq",{"sourceInterval":[7326,7380]},["app",{"sourceInterval":[7326,7341]},"ExpressionValue",[]],["terminal",{"sourceInterval":[7342,7345]},"."],["app",{"sourceInterval":[7346,7348]},"id",[]],["terminal",{"sourceInterval":[7349,7352]},"("],["app",{"sourceInterval":[7353,7376]},"ListOf",[["app",{"sourceInterval":[7360,7370]},"Expression",[]],["terminal",{"sourceInterval":[7372,7375]},","]]],["terminal",{"sourceInterval":[7377,7380]},")"]]],"ExpressionNew":["define",{"sourceInterval":[7385,7437]},null,[],["seq",{"sourceInterval":[7401,7437]},["app",{"sourceInterval":[7401,7403]},"id",[]],["terminal",{"sourceInterval":[7404,7407]},"{"],["app",{"sourceInterval":[7408,7433]},"ListOf",[["app",{"sourceInterval":[7415,7427]},"NewParameter",[]],["terminal",{"sourceInterval":[7429,7432]},","]]],["terminal",{"sourceInterval":[7434,7437]},"}"]]],"NewParameter":["define",{"sourceInterval":[7442,7474]},null,[],["seq",{"sourceInterval":[7457,7474]},["app",{"sourceInterval":[7457,7459]},"id",[]],["terminal",{"sourceInterval":[7460,7463]},":"],["app",{"sourceInterval":[7464,7474]},"Expression",[]]]],"ExpressionStaticCall":["define",{"sourceInterval":[7479,7536]},null,[],["seq",{"sourceInterval":[7502,7536]},["app",{"sourceInterval":[7502,7504]},"id",[]],["terminal",{"sourceInterval":[7505,7508]},"("],["app",{"sourceInterval":[7509,7532]},"ListOf",[["app",{"sourceInterval":[7516,7526]},"Expression",[]],["terminal",{"sourceInterval":[7528,7531]},","]]],["terminal",{"sourceInterval":[7533,7536]},")"]]],"ExpressionInitOf":["define",{"sourceInterval":[7541,7601]},null,[],["seq",{"sourceInterval":[7560,7601]},["app",{"sourceInterval":[7560,7566]},"initOf",[]],["app",{"sourceInterval":[7567,7569]},"id",[]],["terminal",{"sourceInterval":[7570,7573]},"("],["app",{"sourceInterval":[7574,7597]},"ListOf",[["app",{"sourceInterval":[7581,7591]},"Expression",[]],["terminal",{"sourceInterval":[7593,7596]},","]]],["terminal",{"sourceInterval":[7598,7601]},")"]]],"typeLiteral":["define",{"sourceInterval":[7627,7671]},null,[],["seq",{"sourceInterval":[7641,7671]},["app",{"sourceInterval":[7641,7654]},"letterAsciiUC",[]],["star",{"sourceInterval":[7655,7671]},["app",{"sourceInterval":[7655,7670]},"typeLiteralPart",[]]]]],"typeLiteralPart":["define",{"sourceInterval":[7676,7719]},null,[],["alt",{"sourceInterval":[7694,7719]},["app",{"sourceInterval":[7694,7705]},"letterAscii",[]],["app",{"sourceInterval":[7708,7713]},"digit",[]],["terminal",{"sourceInterval":[7716,7719]},"_"]]],"integerLiteral":["define",{"sourceInterval":[7926,8000]},null,[],["alt",{"sourceInterval":[7943,8000]},["app",{"sourceInterval":[7943,7960]},"integerLiteralHex",[]],["app",{"sourceInterval":[7963,7980]},"integerLiteralBin",[]],["app",{"sourceInterval":[7983,8000]},"integerLiteralDec",[]]]],"integerLiteralDec":["define",{"sourceInterval":[8027,8068]},null,[],["seq",{"sourceInterval":[8047,8068]},["plus",{"sourceInterval":[8047,8053]},["app",{"sourceInterval":[8047,8052]},"digit",[]]],["star",{"sourceInterval":[8054,8068]},["alt",{"sourceInterval":[8055,8066]},["terminal",{"sourceInterval":[8055,8058]},"_"],["app",{"sourceInterval":[8061,8066]},"digit",[]]]]]],"integerLiteralHex":["define",{"sourceInterval":[8073,8182]},null,[],["alt",{"sourceInterval":[8093,8182]},["seq",{"sourceInterval":[8093,8125]},["terminal",{"sourceInterval":[8093,8097]},"0x"],["plus",{"sourceInterval":[8098,8107]},["app",{"sourceInterval":[8098,8106]},"hexDigit",[]]],["star",{"sourceInterval":[8108,8125]},["alt",{"sourceInterval":[8109,8123]},["terminal",{"sourceInterval":[8109,8112]},"_"],["app",{"sourceInterval":[8115,8123]},"hexDigit",[]]]]],["seq",{"sourceInterval":[8150,8182]},["terminal",{"sourceInterval":[8150,8154]},"0X"],["plus",{"sourceInterval":[8155,8164]},["app",{"sourceInterval":[8155,8163]},"hexDigit",[]]],["star",{"sourceInterval":[8165,8182]},["alt",{"sourceInterval":[8166,8180]},["terminal",{"sourceInterval":[8166,8169]},"_"],["app",{"sourceInterval":[8172,8180]},"hexDigit",[]]]]]]],"integerLiteralBin":["define",{"sourceInterval":[8187,8296]},null,[],["alt",{"sourceInterval":[8207,8296]},["seq",{"sourceInterval":[8207,8239]},["terminal",{"sourceInterval":[8207,8211]},"0b"],["plus",{"sourceInterval":[8212,8221]},["app",{"sourceInterval":[8212,8220]},"binDigit",[]]],["star",{"sourceInterval":[8222,8239]},["alt",{"sourceInterval":[8223,8237]},["terminal",{"sourceInterval":[8223,8226]},"_"],["app",{"sourceInterval":[8229,8237]},"binDigit",[]]]]],["seq",{"sourceInterval":[8264,8296]},["terminal",{"sourceInterval":[8264,8268]},"0B"],["plus",{"sourceInterval":[8269,8278]},["app",{"sourceInterval":[8269,8277]},"binDigit",[]]],["star",{"sourceInterval":[8279,8296]},["alt",{"sourceInterval":[8280,8294]},["terminal",{"sourceInterval":[8280,8283]},"_"],["app",{"sourceInterval":[8286,8294]},"binDigit",[]]]]]]],"binDigit":["define",{"sourceInterval":[8301,8321]},null,[],["alt",{"sourceInterval":[8312,8321]},["terminal",{"sourceInterval":[8312,8315]},"0"],["terminal",{"sourceInterval":[8318,8321]},"1"]]],"letterAsciiLC":["define",{"sourceInterval":[8342,8366]},null,[],["range",{"sourceInterval":[8358,8366]},"a","z"]],"letterAsciiUC":["define",{"sourceInterval":[8371,8395]},null,[],["range",{"sourceInterval":[8387,8395]},"A","Z"]],"letterAscii":["define",{"sourceInterval":[8400,8443]},null,[],["alt",{"sourceInterval":[8414,8443]},["app",{"sourceInterval":[8414,8427]},"letterAsciiLC",[]],["app",{"sourceInterval":[8430,8443]},"letterAsciiUC",[]]]],"letterComment":["define",{"sourceInterval":[8448,8507]},null,[],["alt",{"sourceInterval":[8464,8507]},["app",{"sourceInterval":[8464,8477]},"letterAsciiLC",[]],["app",{"sourceInterval":[8480,8493]},"letterAsciiUC",[]],["app",{"sourceInterval":[8496,8501]},"digit",[]],["terminal",{"sourceInterval":[8504,8507]},"_"]]],"idStart":["define",{"sourceInterval":[8531,8558]},null,[],["alt",{"sourceInterval":[8541,8558]},["app",{"sourceInterval":[8541,8552]},"letterAscii",[]],["terminal",{"sourceInterval":[8555,8558]},"_"]]],"idPart":["define",{"sourceInterval":[8563,8597]},null,[],["alt",{"sourceInterval":[8572,8597]},["app",{"sourceInterval":[8572,8583]},"letterAscii",[]],["app",{"sourceInterval":[8586,8591]},"digit",[]],["terminal",{"sourceInterval":[8594,8597]},"_"]]],"id":["define",{"sourceInterval":[8602,8640]},null,[],["seq",{"sourceInterval":[8607,8640]},["not",{"sourceInterval":[8607,8620]},["app",{"sourceInterval":[8608,8620]},"reservedWord",[]]],["lex",{"sourceInterval":[8621,8629]},["app",{"sourceInterval":[8622,8629]},"idStart",[]]],["lex",{"sourceInterval":[8630,8640]},["star",{"sourceInterval":[8632,8639]},["app",{"sourceInterval":[8632,8638]},"idPart",[]]]]]],"funcLetter":["define",{"sourceInterval":[8661,8722]},null,[],["alt",{"sourceInterval":[8674,8722]},["app",{"sourceInterval":[8674,8685]},"letterAscii",[]],["terminal",{"sourceInterval":[8688,8691]},"_"],["terminal",{"sourceInterval":[8694,8697]},"'"],["terminal",{"sourceInterval":[8700,8703]},"?"],["terminal",{"sourceInterval":[8706,8709]},"!"],["terminal",{"sourceInterval":[8712,8716]},"::"],["terminal",{"sourceInterval":[8719,8722]},"&"]]],"funcId":["define",{"sourceInterval":[8727,8769]},null,[],["seq",{"sourceInterval":[8736,8769]},["app",{"sourceInterval":[8736,8746]},"funcLetter",[]],["star",{"sourceInterval":[8747,8769]},["lex",{"sourceInterval":[8747,8768]},["alt",{"sourceInterval":[8749,8767]},["app",{"sourceInterval":[8749,8759]},"funcLetter",[]],["app",{"sourceInterval":[8762,8767]},"digit",[]]]]]]],"boolLiteral":["define",{"sourceInterval":[8795,8835]},null,[],["seq",{"sourceInterval":[8809,8835]},["alt",{"sourceInterval":[8810,8826]},["terminal",{"sourceInterval":[8810,8816]},"true"],["terminal",{"sourceInterval":[8819,8826]},"false"]],["not",{"sourceInterval":[8828,8835]},["app",{"sourceInterval":[8829,8835]},"idPart",[]]]]],"stringLiteralCharacter":["define",{"sourceInterval":[8863,8923]},null,[],["seq",{"sourceInterval":[8888,8923]},["not",{"sourceInterval":[8888,8919]},["alt",{"sourceInterval":[8890,8918]},["terminal",{"sourceInterval":[8890,8894]},"\""],["terminal",{"sourceInterval":[8897,8901]},"\\"],["app",{"sourceInterval":[8904,8918]},"lineTerminator",[]]]],["app",{"sourceInterval":[8920,8923]},"any",[]]]],"stringLiteral":["define",{"sourceInterval":[8928,8977]},null,[],["seq",{"sourceInterval":[8944,8977]},["terminal",{"sourceInterval":[8944,8948]},"\""],["star",{"sourceInterval":[8949,8972]},["app",{"sourceInterval":[8949,8971]},"stringLiteralCharacter",[]]],["terminal",{"sourceInterval":[8973,8977]},"\""]]],"keyword":["define",{"sourceInterval":[9030,9543]},null,[],["alt",{"sourceInterval":[9040,9543]},["app",{"sourceInterval":[9040,9043]},"fun",[]],["app",{"sourceInterval":[9059,9062]},"let",[]],["app",{"sourceInterval":[9077,9083]},"return",[]],["app",{"sourceInterval":[9099,9105]},"extend",[]],["app",{"sourceInterval":[9121,9127]},"native",[]],["app",{"sourceInterval":[9143,9149]},"public",[]],["app",{"sourceInterval":[9165,9169]},"null",[]],["app",{"sourceInterval":[9185,9187]},"if",[]],["app",{"sourceInterval":[9203,9207]},"else",[]],["app",{"sourceInterval":[9223,9228]},"while",[]],["app",{"sourceInterval":[9244,9250]},"repeat",[]],["app",{"sourceInterval":[9266,9268]},"do",[]],["app",{"sourceInterval":[9284,9289]},"until",[]],["app",{"sourceInterval":[9305,9307]},"as",[]],["app",{"sourceInterval":[9324,9331]},"mutates",[]],["app",{"sourceInterval":[9346,9353]},"extends",[]],["app",{"sourceInterval":[9368,9374]},"import",[]],["app",{"sourceInterval":[9389,9393]},"with",[]],["app",{"sourceInterval":[9408,9413]},"trait",[]],["app",{"sourceInterval":[9428,9434]},"initOf",[]],["app",{"sourceInterval":[9449,9457]},"override",[]],["app",{"sourceInterval":[9472,9480]},"abstract",[]],["app",{"sourceInterval":[9495,9502]},"virtual",[]],["app",{"sourceInterval":[9517,9523]},"inline",[]],["app",{"sourceInterval":[9538,9543]},"const",[]]]],"contract":["define",{"sourceInterval":[9548,9577]},null,[],["seq",{"sourceInterval":[9559,9577]},["terminal",{"sourceInterval":[9559,9569]},"contract"],["not",{"sourceInterval":[9570,9577]},["app",{"sourceInterval":[9571,9577]},"idPart",[]]]]],"let":["define",{"sourceInterval":[9582,9601]},null,[],["seq",{"sourceInterval":[9588,9601]},["terminal",{"sourceInterval":[9588,9593]},"let"],["not",{"sourceInterval":[9594,9601]},["app",{"sourceInterval":[9595,9601]},"idPart",[]]]]],"fun":["define",{"sourceInterval":[9606,9625]},null,[],["seq",{"sourceInterval":[9612,9625]},["terminal",{"sourceInterval":[9612,9617]},"fun"],["not",{"sourceInterval":[9618,9625]},["app",{"sourceInterval":[9619,9625]},"idPart",[]]]]],"return":["define",{"sourceInterval":[9630,9655]},null,[],["seq",{"sourceInterval":[9639,9655]},["terminal",{"sourceInterval":[9639,9647]},"return"],["not",{"sourceInterval":[9648,9655]},["app",{"sourceInterval":[9649,9655]},"idPart",[]]]]],"extend":["define",{"sourceInterval":[9660,9685]},null,[],["seq",{"sourceInterval":[9669,9685]},["terminal",{"sourceInterval":[9669,9677]},"extend"],["not",{"sourceInterval":[9678,9685]},["app",{"sourceInterval":[9679,9685]},"idPart",[]]]]],"native":["define",{"sourceInterval":[9690,9715]},null,[],["seq",{"sourceInterval":[9699,9715]},["terminal",{"sourceInterval":[9699,9707]},"native"],["not",{"sourceInterval":[9708,9715]},["app",{"sourceInterval":[9709,9715]},"idPart",[]]]]],"public":["define",{"sourceInterval":[9720,9745]},null,[],["seq",{"sourceInterval":[9729,9745]},["terminal",{"sourceInterval":[9729,9737]},"public"],["not",{"sourceInterval":[9738,9745]},["app",{"sourceInterval":[9739,9745]},"idPart",[]]]]],"null":["define",{"sourceInterval":[9750,9771]},null,[],["seq",{"sourceInterval":[9757,9771]},["terminal",{"sourceInterval":[9757,9763]},"null"],["not",{"sourceInterval":[9764,9771]},["app",{"sourceInterval":[9765,9771]},"idPart",[]]]]],"if":["define",{"sourceInterval":[9776,9793]},null,[],["seq",{"sourceInterval":[9781,9793]},["terminal",{"sourceInterval":[9781,9785]},"if"],["not",{"sourceInterval":[9786,9793]},["app",{"sourceInterval":[9787,9793]},"idPart",[]]]]],"else":["define",{"sourceInterval":[9798,9819]},null,[],["seq",{"sourceInterval":[9805,9819]},["terminal",{"sourceInterval":[9805,9811]},"else"],["not",{"sourceInterval":[9812,9819]},["app",{"sourceInterval":[9813,9819]},"idPart",[]]]]],"while":["define",{"sourceInterval":[9824,9847]},null,[],["seq",{"sourceInterval":[9832,9847]},["terminal",{"sourceInterval":[9832,9839]},"while"],["not",{"sourceInterval":[9840,9847]},["app",{"sourceInterval":[9841,9847]},"idPart",[]]]]],"repeat":["define",{"sourceInterval":[9852,9877]},null,[],["seq",{"sourceInterval":[9861,9877]},["terminal",{"sourceInterval":[9861,9869]},"repeat"],["not",{"sourceInterval":[9870,9877]},["app",{"sourceInterval":[9871,9877]},"idPart",[]]]]],"do":["define",{"sourceInterval":[9882,9899]},null,[],["seq",{"sourceInterval":[9887,9899]},["terminal",{"sourceInterval":[9887,9891]},"do"],["not",{"sourceInterval":[9892,9899]},["app",{"sourceInterval":[9893,9899]},"idPart",[]]]]],"until":["define",{"sourceInterval":[9904,9927]},null,[],["seq",{"sourceInterval":[9912,9927]},["terminal",{"sourceInterval":[9912,9919]},"until"],["not",{"sourceInterval":[9920,9927]},["app",{"sourceInterval":[9921,9927]},"idPart",[]]]]],"as":["define",{"sourceInterval":[9932,9949]},null,[],["seq",{"sourceInterval":[9937,9949]},["terminal",{"sourceInterval":[9937,9941]},"as"],["not",{"sourceInterval":[9942,9949]},["app",{"sourceInterval":[9943,9949]},"idPart",[]]]]],"mutates":["define",{"sourceInterval":[9954,9981]},null,[],["seq",{"sourceInterval":[9964,9981]},["terminal",{"sourceInterval":[9964,9973]},"mutates"],["not",{"sourceInterval":[9974,9981]},["app",{"sourceInterval":[9975,9981]},"idPart",[]]]]],"extends":["define",{"sourceInterval":[9986,10013]},null,[],["seq",{"sourceInterval":[9996,10013]},["terminal",{"sourceInterval":[9996,10005]},"extends"],["not",{"sourceInterval":[10006,10013]},["app",{"sourceInterval":[10007,10013]},"idPart",[]]]]],"import":["define",{"sourceInterval":[10018,10043]},null,[],["seq",{"sourceInterval":[10027,10043]},["terminal",{"sourceInterval":[10027,10035]},"import"],["not",{"sourceInterval":[10036,10043]},["app",{"sourceInterval":[10037,10043]},"idPart",[]]]]],"with":["define",{"sourceInterval":[10048,10069]},null,[],["seq",{"sourceInterval":[10055,10069]},["terminal",{"sourceInterval":[10055,10061]},"with"],["not",{"sourceInterval":[10062,10069]},["app",{"sourceInterval":[10063,10069]},"idPart",[]]]]],"trait":["define",{"sourceInterval":[10074,10097]},null,[],["seq",{"sourceInterval":[10082,10097]},["terminal",{"sourceInterval":[10082,10089]},"trait"],["not",{"sourceInterval":[10090,10097]},["app",{"sourceInterval":[10091,10097]},"idPart",[]]]]],"initOf":["define",{"sourceInterval":[10102,10127]},null,[],["seq",{"sourceInterval":[10111,10127]},["terminal",{"sourceInterval":[10111,10119]},"initOf"],["not",{"sourceInterval":[10120,10127]},["app",{"sourceInterval":[10121,10127]},"idPart",[]]]]],"virtual":["define",{"sourceInterval":[10132,10159]},null,[],["seq",{"sourceInterval":[10142,10159]},["terminal",{"sourceInterval":[10142,10151]},"virtual"],["not",{"sourceInterval":[10152,10159]},["app",{"sourceInterval":[10153,10159]},"idPart",[]]]]],"override":["define",{"sourceInterval":[10164,10193]},null,[],["seq",{"sourceInterval":[10175,10193]},["terminal",{"sourceInterval":[10175,10185]},"override"],["not",{"sourceInterval":[10186,10193]},["app",{"sourceInterval":[10187,10193]},"idPart",[]]]]],"inline":["define",{"sourceInterval":[10198,10223]},null,[],["seq",{"sourceInterval":[10207,10223]},["terminal",{"sourceInterval":[10207,10215]},"inline"],["not",{"sourceInterval":[10216,10223]},["app",{"sourceInterval":[10217,10223]},"idPart",[]]]]],"const":["define",{"sourceInterval":[10228,10251]},null,[],["seq",{"sourceInterval":[10236,10251]},["terminal",{"sourceInterval":[10236,10243]},"const"],["not",{"sourceInterval":[10244,10251]},["app",{"sourceInterval":[10245,10251]},"idPart",[]]]]],"abstract":["define",{"sourceInterval":[10256,10285]},null,[],["seq",{"sourceInterval":[10267,10285]},["terminal",{"sourceInterval":[10267,10277]},"abstract"],["not",{"sourceInterval":[10278,10285]},["app",{"sourceInterval":[10279,10285]},"idPart",[]]]]],"nameAttribute":["define",{"sourceInterval":[10309,10332]},null,[],["terminal",{"sourceInterval":[10325,10332]},"@name"]],"reservedWord":["define",{"sourceInterval":[10354,10376]},null,[],["app",{"sourceInterval":[10369,10376]},"keyword",[]]],"space":["extend",{"sourceInterval":[10398,10431]},null,[],["alt",{"sourceInterval":[10407,10431]},["app",{"sourceInterval":[10407,10414]},"comment",[]],["app",{"sourceInterval":[10417,10431]},"lineTerminator",[]]]],"comment":["define",{"sourceInterval":[10436,10482]},null,[],["alt",{"sourceInterval":[10446,10482]},["app",{"sourceInterval":[10446,10462]},"multiLineComment",[]],["app",{"sourceInterval":[10465,10482]},"singleLineComment",[]]]],"lineTerminator":["define",{"sourceInterval":[10487,10537]},null,[],["alt",{"sourceInterval":[10504,10537]},["terminal",{"sourceInterval":[10504,10508]},"\n"],["terminal",{"sourceInterval":[10511,10515]},"\r"],["terminal",{"sourceInterval":[10518,10526]},"\u2028"],["terminal",{"sourceInterval":[10529,10537]},"\u2029"]]],"multiLineComment":["define",{"sourceInterval":[10542,10583]},null,[],["seq",{"sourceInterval":[10561,10583]},["terminal",{"sourceInterval":[10561,10565]},"/*"],["star",{"sourceInterval":[10566,10578]},["seq",{"sourceInterval":[10567,10576]},["not",{"sourceInterval":[10567,10572]},["terminal",{"sourceInterval":[10568,10572]},"*/"]],["app",{"sourceInterval":[10573,10576]},"any",[]]]],["terminal",{"sourceInterval":[10579,10583]},"*/"]]],"singleLineComment":["define",{"sourceInterval":[10588,10635]},null,[],["seq",{"sourceInterval":[10608,10635]},["terminal",{"sourceInterval":[10608,10612]},"//"],["star",{"sourceInterval":[10613,10635]},["seq",{"sourceInterval":[10614,10633]},["not",{"sourceInterval":[10614,10629]},["app",{"sourceInterval":[10615,10629]},"lineTerminator",[]]],["app",{"sourceInterval":[10630,10633]},"any",[]]]]]]}]);module.exports=result; \ No newline at end of file +'use strict';const ohm=(require('ohm-js').default || require('ohm-js'));const result=ohm.makeRecipe(["grammar",{"source":"Tact {\n\n // Starting point of the program\n Program = ProgramItem*\n ProgramItem = Struct\n | Contract\n | Primitive\n | StaticFunction\n | NativeFunction\n | ProgramImport\n | Trait\n | Constant\n ProgramImport = import stringLiteral \";\"\n\n // Built-in declarations\n Primitive = \"primitive\" Type \";\"\n\n // Static function\n StaticFunction = Function\n NativeFunction = nameAttribute \"(\" funcId \")\" FunctionAttribute* native id \"(\" ListOf \")\" \";\" --withVoid\n | nameAttribute \"(\" funcId \")\" FunctionAttribute* native id \"(\" ListOf \")\" \":\" Type \";\" --withType\n \n // Field declarations\n Type = typeLiteral \"?\" --optional\n | typeLiteral --required\n | \"map\" \"<\" typeLiteral (as id)? \",\" typeLiteral (as id)? \">\" --map\n | \"bounced\" \"<\" typeLiteral \">\" --bounced\n Field = id \":\" Type \";\" --default\n | id \":\" Type \"=\" Expression \";\" --defaultWithInit\n | id \":\" Type as id \";\" --withSerialization\n | id \":\" Type as id \"=\" Expression \";\" --withSerializationAndInit\n \n // Constant\n ConstantAttribute = virtual --virtual\n | override --override\n | abstract --abstract\n Constant = ConstantAttribute* ~fun const id \":\" Type \"=\" Expression \";\" --withValue\n | ConstantAttribute* ~fun const id \":\" Type \";\" --withEmpty\n\n // Struct\n Struct = \"struct\" typeLiteral \"{\" StructBody* \"}\" --originary\n | \"message\" typeLiteral \"{\" StructBody* \"}\" --message\n | \"message\" \"(\" integerLiteral \")\" typeLiteral \"{\" StructBody* \"}\" --messageWithId\n StructBody = Field\n\n // Contract\n Contract = ContractAttribute* contract id \"{\" ContractBody* \"}\" --simple\n | ContractAttribute* contract id with ListOf \"{\" ContractBody* \"}\" --withTraits\n ContractInit = \"init\" \"(\" ListOf \")\" \"{\" Statement* \"}\"\n ContractBody = Field\n | ContractInit\n | ReceiveFunction\n | Function\n | Constant\n \n // Trait\n Trait = ContractAttribute* trait id \"{\" TraitBody* \"}\" --originary\n | ContractAttribute* trait id with ListOf \"{\" TraitBody* \"}\" --withTraits\n TraitBody = Field\n | ReceiveFunction\n | Function\n | Constant\n\n // Contract attributes\n ContractAttribute = \"@interface\" \"(\" stringLiteral \")\" --interface\n\n // Function\n FunctionAttribute = \"get\" --getter\n | mutates --mutates\n | extends --extends\n | virtual --virtual\n | override --override\n | inline --inline\n | abstract --abstract\n Function = FunctionAttribute* fun id \"(\" ListOf \")\" \"{\" Statement* \"}\" --withVoid\n | FunctionAttribute* fun id \"(\" ListOf \")\" \":\" Type \"{\" Statement* \"}\" --withType\n | FunctionAttribute* fun id \"(\" ListOf \")\" \";\" --abstractVoid\n | FunctionAttribute* fun id \"(\" ListOf \")\" \":\" Type \";\" --abstractType\n FunctionArg = id \":\" Type\n \n ReceiveFunction = \"receive\" \"(\" FunctionArg \")\" \"{\" Statement* \"}\" --simple\n | \"receive\" \"(\" \")\" \"{\" Statement* \"}\" --empty\n | \"receive\" \"(\" stringLiteral \")\" \"{\" Statement* \"}\" --comment\n | \"bounced\" \"(\" FunctionArg \")\" \"{\" Statement* \"}\" --bounced\n | \"external\" \"(\" FunctionArg \")\" \"{\" Statement* \"}\" --externalSimple\n | \"external\" \"(\" stringLiteral \")\" \"{\" Statement* \"}\" --externalComment\n | \"external\" \"(\" \")\" \"{\" Statement* \"}\" --externalEmpty\n\n // Statements\n Statement = StatementLet\n | StatementBlock\n | StatementReturn\n | StatementExpression\n | StatementAssign\n | StatementCondition\n | StatementWhile\n | StatementRepeat\n | StatementUntil\n StatementBlock = \"{\" Statement* \"}\"\n StatementLet = let id \":\" Type \"=\" Expression \";\"\n StatementReturn = return Expression \";\" --withExpression\n | return \";\" --withoutExpression \n StatementExpression = Expression \";\"\n StatementAssign = LValue \"=\" Expression \";\"\n StatementCondition = if Expression \"{\" Statement* \"}\" ~else --simple\n | if Expression \"{\" Statement* \"}\" else \"{\" Statement* \"}\" --withElse\n | if Expression \"{\" Statement* \"}\" else StatementCondition --withElseIf\n StatementWhile = while \"(\" Expression \")\" \"{\" Statement* \"}\"\n StatementRepeat = repeat \"(\" Expression \")\" \"{\" Statement* \"}\"\n StatementUntil = do \"{\" Statement* \"}\" until \"(\" Expression \")\" \";\"\n\n // L-value\n LValue = id \".\" LValue --more\n | id --single\n\n // Expressions\n Expression = ExpressionOr\n ExpressionOr = ExpressionOr \"||\" ExpressionAnd --or\n | ExpressionAnd\n ExpressionAnd = ExpressionAnd \"&&\" ExpressionCompare --and\n | ExpressionCompare\n ExpressionCompare = ExpressionCompare \"!=\" ExpressionBinary --not\n | ExpressionCompare \"==\" ExpressionBinary --eq\n | ExpressionCompare \">\" ExpressionBinary --gt\n | ExpressionCompare \">=\" ExpressionBinary --gte\n | ExpressionCompare \"<\" ExpressionBinary --lt\n | ExpressionCompare \"<=\" ExpressionBinary --lte\n | ExpressionBinary\n ExpressionBinary = ExpressionBinary \">>\" ExpressionAdd --shr\n | ExpressionBinary \"<<\" ExpressionAdd --shl\n | ExpressionBinary \"&\" ExpressionAdd --bin_and\n | ExpressionBinary \"|\" ExpressionAdd --bin_or\n | ExpressionAdd\n ExpressionAdd = ExpressionAdd \"+\" ~\"+\" ExpressionMul --add\n | ExpressionAdd \"-\" ~\"-\" ExpressionMul --sub\n | ExpressionMul\n ExpressionMul = ExpressionMul \"*\" ExpressionUnary --mul\n | ExpressionMul \"/\" ExpressionUnary --div\n | ExpressionMul \"%\" ExpressionUnary --rem\n | ExpressionUnary\n ExpressionUnary = \"-\" ExpressionUnarySuffix --neg\n | \"+\" ExpressionUnarySuffix --add\n | \"!\" ExpressionUnarySuffix --not\n | ExpressionUnarySuffix\n ExpressionUnarySuffix = ExpressionValue \"!!\" --notNull\n | ExpressionValue\n ExpressionBracket = \"(\" Expression \")\"\n\n // Order is important\n ExpressionValue = ExpressionCall\n | ExpressionField\n | ExpressionStaticCall\n | ExpressionBracket\n | ExpressionNew\n | integerLiteral\n | boolLiteral\n | id\n | null\n | ExpressionInitOf\n | ExpressionString\n ExpressionString = stringLiteral\n ExpressionField = ExpressionValue \".\" id ~\"(\"\n ExpressionCall = ExpressionValue \".\" id \"(\" ListOf \")\"\n ExpressionNew = id \"{\" ListOf \"}\"\n NewParameter = id \":\" Expression\n ExpressionStaticCall = id \"(\" ListOf \")\"\n ExpressionInitOf = initOf id \"(\" ListOf \")\"\n\n // Type Literal\n typeLiteral = letterAsciiUC typeLiteralPart*\n typeLiteralPart = letterAscii | digit | \"_\"\n\n // Integer Literal\n // hexDigit defined in Ohm's built-in rules (otherwise: hexDigit = \"0\"..\"9\" | \"a\"..\"f\" | \"A\"..\"F\")\n // digit defined in Ohm's built-in rules (otherwise: digit = \"0\"..\"9\")\n integerLiteral = integerLiteralHex | integerLiteralBin | integerLiteralOct | integerLiteralDec // Order is important\n integerLiteralDec = digit+ (\"_\" | digit)*\n integerLiteralHex = \"0x\" hexDigit+ (\"_\" | hexDigit)*\n | \"0X\" hexDigit+ (\"_\" | hexDigit)*\n integerLiteralBin = \"0b\" binDigit+ (\"_\" | binDigit)*\n | \"0B\" binDigit+ (\"_\" | binDigit)*\n integerLiteralOct = \"0o\" octDigit+ (\"_\" | octDigit)*\n | \"0O\" octDigit+ (\"_\" | octDigit)*\n binDigit = \"0\" | \"1\"\n octDigit = \"0\"..\"7\"\n\n // Letters\n letterAsciiLC = \"a\"..\"z\"\n letterAsciiUC = \"A\"..\"Z\"\n letterAscii = letterAsciiLC | letterAsciiUC\n letterComment = letterAsciiLC | letterAsciiUC | digit | \"_\"\n\n // ID Literal\n idStart = letterAscii | \"_\"\n idPart = letterAscii | digit | \"_\"\n id = ~reservedWord #idStart #(idPart*)\n\n // FunC id\n funcLetter = letterAscii | \"_\" | \"'\" | \"?\" | \"!\" | \"::\" | \"&\"\n funcId = funcLetter #(funcLetter | digit)*\n\n // Bool Literal\n boolLiteral = (\"true\" | \"false\") ~idPart\n\n // String literal\n stringLiteralCharacter = ~(\"\\\"\" | \"\\\\\" | lineTerminator) any\n stringLiteral = \"\\\"\" stringLiteralCharacter* \"\\\"\"\n\n // Keywords\n // NOTE Order is important\n keyword = fun \n | let\n | return \n | extend \n | native \n | public \n | null \n | if \n | else \n | while \n | repeat \n | do \n | until \n | as \n | mutates\n | extends\n | import\n | with\n | trait\n | initOf\n | override\n | abstract\n | virtual\n | inline\n | const\n contract = \"contract\" ~idPart\n let = \"let\" ~idPart\n fun = \"fun\" ~idPart\n return = \"return\" ~idPart\n extend = \"extend\" ~idPart\n native = \"native\" ~idPart\n public = \"public\" ~idPart\n null = \"null\" ~idPart\n if = \"if\" ~idPart\n else = \"else\" ~idPart\n while = \"while\" ~idPart\n repeat = \"repeat\" ~idPart\n do = \"do\" ~idPart\n until = \"until\" ~idPart\n as = \"as\" ~idPart\n mutates = \"mutates\" ~idPart\n extends = \"extends\" ~idPart\n import = \"import\" ~idPart\n with = \"with\" ~idPart\n trait = \"trait\" ~idPart\n initOf = \"initOf\" ~idPart\n virtual = \"virtual\" ~idPart\n override = \"override\" ~idPart\n inline = \"inline\" ~idPart\n const = \"const\" ~idPart\n abstract = \"abstract\" ~idPart\n\n // Attributes\n nameAttribute = \"@name\"\n\n // Reserved\n reservedWord = keyword\n\n // Comments\n space += comment | lineTerminator\n comment = multiLineComment | singleLineComment\n lineTerminator = \"\\n\" | \"\\r\" | \"\\u2028\" | \"\\u2029\"\n multiLineComment = \"/*\" (~\"*/\" any)* \"*/\"\n singleLineComment = \"//\" (~lineTerminator any)*\n}"},"Tact",null,"Program",{"Program":["define",{"sourceInterval":[49,71]},null,[],["star",{"sourceInterval":[59,71]},["app",{"sourceInterval":[59,70]},"ProgramItem",[]]]],"ProgramItem":["define",{"sourceInterval":[76,300]},null,[],["alt",{"sourceInterval":[90,300]},["app",{"sourceInterval":[90,96]},"Struct",[]],["app",{"sourceInterval":[115,123]},"Contract",[]],["app",{"sourceInterval":[142,151]},"Primitive",[]],["app",{"sourceInterval":[170,184]},"StaticFunction",[]],["app",{"sourceInterval":[203,217]},"NativeFunction",[]],["app",{"sourceInterval":[236,249]},"ProgramImport",[]],["app",{"sourceInterval":[268,273]},"Trait",[]],["app",{"sourceInterval":[292,300]},"Constant",[]]]],"ProgramImport":["define",{"sourceInterval":[305,345]},null,[],["seq",{"sourceInterval":[321,345]},["app",{"sourceInterval":[321,327]},"import",[]],["app",{"sourceInterval":[328,341]},"stringLiteral",[]],["terminal",{"sourceInterval":[342,345]},";"]]],"Primitive":["define",{"sourceInterval":[380,412]},null,[],["seq",{"sourceInterval":[392,412]},["terminal",{"sourceInterval":[392,403]},"primitive"],["app",{"sourceInterval":[404,408]},"Type",[]],["terminal",{"sourceInterval":[409,412]},";"]]],"StaticFunction":["define",{"sourceInterval":[441,466]},null,[],["app",{"sourceInterval":[458,466]},"Function",[]]],"NativeFunction_withVoid":["define",{"sourceInterval":[488,592]},null,[],["seq",{"sourceInterval":[488,581]},["app",{"sourceInterval":[488,501]},"nameAttribute",[]],["terminal",{"sourceInterval":[502,505]},"("],["app",{"sourceInterval":[506,512]},"funcId",[]],["terminal",{"sourceInterval":[513,516]},")"],["star",{"sourceInterval":[517,535]},["app",{"sourceInterval":[517,534]},"FunctionAttribute",[]]],["app",{"sourceInterval":[536,542]},"native",[]],["app",{"sourceInterval":[543,545]},"id",[]],["terminal",{"sourceInterval":[546,549]},"("],["app",{"sourceInterval":[550,573]},"ListOf",[["app",{"sourceInterval":[557,568]},"FunctionArg",[]],["terminal",{"sourceInterval":[569,572]},","]]],["terminal",{"sourceInterval":[574,577]},")"],["terminal",{"sourceInterval":[578,581]},";"]]],"NativeFunction_withType":["define",{"sourceInterval":[614,727]},null,[],["seq",{"sourceInterval":[614,716]},["app",{"sourceInterval":[614,627]},"nameAttribute",[]],["terminal",{"sourceInterval":[628,631]},"("],["app",{"sourceInterval":[632,638]},"funcId",[]],["terminal",{"sourceInterval":[639,642]},")"],["star",{"sourceInterval":[643,661]},["app",{"sourceInterval":[643,660]},"FunctionAttribute",[]]],["app",{"sourceInterval":[662,668]},"native",[]],["app",{"sourceInterval":[669,671]},"id",[]],["terminal",{"sourceInterval":[672,675]},"("],["app",{"sourceInterval":[676,699]},"ListOf",[["app",{"sourceInterval":[683,694]},"FunctionArg",[]],["terminal",{"sourceInterval":[695,698]},","]]],["terminal",{"sourceInterval":[700,703]},")"],["terminal",{"sourceInterval":[704,707]},":"],["app",{"sourceInterval":[708,712]},"Type",[]],["terminal",{"sourceInterval":[713,716]},";"]]],"NativeFunction":["define",{"sourceInterval":[471,727]},null,[],["alt",{"sourceInterval":[488,727]},["app",{"sourceInterval":[488,581]},"NativeFunction_withVoid",[]],["app",{"sourceInterval":[614,716]},"NativeFunction_withType",[]]]],"Type_optional":["define",{"sourceInterval":[770,796]},null,[],["seq",{"sourceInterval":[770,785]},["app",{"sourceInterval":[770,781]},"typeLiteral",[]],["terminal",{"sourceInterval":[782,785]},"?"]]],"Type_required":["define",{"sourceInterval":[808,830]},null,[],["app",{"sourceInterval":[808,819]},"typeLiteral",[]]],"Type_map":["define",{"sourceInterval":[842,907]},null,[],["seq",{"sourceInterval":[842,901]},["terminal",{"sourceInterval":[842,847]},"map"],["terminal",{"sourceInterval":[848,851]},"<"],["app",{"sourceInterval":[852,863]},"typeLiteral",[]],["opt",{"sourceInterval":[864,872]},["seq",{"sourceInterval":[865,870]},["app",{"sourceInterval":[865,867]},"as",[]],["app",{"sourceInterval":[868,870]},"id",[]]]],["terminal",{"sourceInterval":[873,876]},","],["app",{"sourceInterval":[877,888]},"typeLiteral",[]],["opt",{"sourceInterval":[889,897]},["seq",{"sourceInterval":[890,895]},["app",{"sourceInterval":[890,892]},"as",[]],["app",{"sourceInterval":[893,895]},"id",[]]]],["terminal",{"sourceInterval":[898,901]},">"]]],"Type_bounced":["define",{"sourceInterval":[919,958]},null,[],["seq",{"sourceInterval":[919,948]},["terminal",{"sourceInterval":[919,928]},"bounced"],["terminal",{"sourceInterval":[929,932]},"<"],["app",{"sourceInterval":[933,944]},"typeLiteral",[]],["terminal",{"sourceInterval":[945,948]},">"]]],"Type":["define",{"sourceInterval":[763,958]},null,[],["alt",{"sourceInterval":[770,958]},["app",{"sourceInterval":[770,785]},"Type_optional",[]],["app",{"sourceInterval":[808,819]},"Type_required",[]],["app",{"sourceInterval":[842,901]},"Type_map",[]],["app",{"sourceInterval":[919,948]},"Type_bounced",[]]]],"Field_default":["define",{"sourceInterval":[971,996]},null,[],["seq",{"sourceInterval":[971,986]},["app",{"sourceInterval":[971,973]},"id",[]],["terminal",{"sourceInterval":[974,977]},":"],["app",{"sourceInterval":[978,982]},"Type",[]],["terminal",{"sourceInterval":[983,986]},";"]]],"Field_defaultWithInit":["define",{"sourceInterval":[1009,1057]},null,[],["seq",{"sourceInterval":[1009,1039]},["app",{"sourceInterval":[1009,1011]},"id",[]],["terminal",{"sourceInterval":[1012,1015]},":"],["app",{"sourceInterval":[1016,1020]},"Type",[]],["terminal",{"sourceInterval":[1021,1024]},"="],["app",{"sourceInterval":[1025,1035]},"Expression",[]],["terminal",{"sourceInterval":[1036,1039]},";"]]],"Field_withSerialization":["define",{"sourceInterval":[1070,1111]},null,[],["seq",{"sourceInterval":[1070,1091]},["app",{"sourceInterval":[1070,1072]},"id",[]],["terminal",{"sourceInterval":[1073,1076]},":"],["app",{"sourceInterval":[1077,1081]},"Type",[]],["app",{"sourceInterval":[1082,1084]},"as",[]],["app",{"sourceInterval":[1085,1087]},"id",[]],["terminal",{"sourceInterval":[1088,1091]},";"]]],"Field_withSerializationAndInit":["define",{"sourceInterval":[1124,1187]},null,[],["seq",{"sourceInterval":[1124,1160]},["app",{"sourceInterval":[1124,1126]},"id",[]],["terminal",{"sourceInterval":[1127,1130]},":"],["app",{"sourceInterval":[1131,1135]},"Type",[]],["app",{"sourceInterval":[1136,1138]},"as",[]],["app",{"sourceInterval":[1139,1141]},"id",[]],["terminal",{"sourceInterval":[1142,1145]},"="],["app",{"sourceInterval":[1146,1156]},"Expression",[]],["terminal",{"sourceInterval":[1157,1160]},";"]]],"Field":["define",{"sourceInterval":[963,1187]},null,[],["alt",{"sourceInterval":[971,1187]},["app",{"sourceInterval":[971,986]},"Field_default",[]],["app",{"sourceInterval":[1009,1039]},"Field_defaultWithInit",[]],["app",{"sourceInterval":[1070,1091]},"Field_withSerialization",[]],["app",{"sourceInterval":[1124,1160]},"Field_withSerializationAndInit",[]]]],"ConstantAttribute_virtual":["define",{"sourceInterval":[1233,1253]},null,[],["app",{"sourceInterval":[1233,1240]},"virtual",[]]],"ConstantAttribute_override":["define",{"sourceInterval":[1278,1299]},null,[],["app",{"sourceInterval":[1278,1286]},"override",[]]],"ConstantAttribute_abstract":["define",{"sourceInterval":[1324,1345]},null,[],["app",{"sourceInterval":[1324,1332]},"abstract",[]]],"ConstantAttribute":["define",{"sourceInterval":[1213,1345]},null,[],["alt",{"sourceInterval":[1233,1345]},["app",{"sourceInterval":[1233,1240]},"ConstantAttribute_virtual",[]],["app",{"sourceInterval":[1278,1286]},"ConstantAttribute_override",[]],["app",{"sourceInterval":[1324,1332]},"ConstantAttribute_abstract",[]]]],"Constant_withValue":["define",{"sourceInterval":[1361,1433]},null,[],["seq",{"sourceInterval":[1361,1421]},["star",{"sourceInterval":[1361,1379]},["app",{"sourceInterval":[1361,1378]},"ConstantAttribute",[]]],["not",{"sourceInterval":[1380,1384]},["app",{"sourceInterval":[1381,1384]},"fun",[]]],["app",{"sourceInterval":[1385,1390]},"const",[]],["app",{"sourceInterval":[1391,1393]},"id",[]],["terminal",{"sourceInterval":[1394,1397]},":"],["app",{"sourceInterval":[1398,1402]},"Type",[]],["terminal",{"sourceInterval":[1403,1406]},"="],["app",{"sourceInterval":[1407,1417]},"Expression",[]],["terminal",{"sourceInterval":[1418,1421]},";"]]],"Constant_withEmpty":["define",{"sourceInterval":[1449,1521]},null,[],["seq",{"sourceInterval":[1449,1494]},["star",{"sourceInterval":[1449,1467]},["app",{"sourceInterval":[1449,1466]},"ConstantAttribute",[]]],["not",{"sourceInterval":[1468,1472]},["app",{"sourceInterval":[1469,1472]},"fun",[]]],["app",{"sourceInterval":[1473,1478]},"const",[]],["app",{"sourceInterval":[1479,1481]},"id",[]],["terminal",{"sourceInterval":[1482,1485]},":"],["app",{"sourceInterval":[1486,1490]},"Type",[]],["terminal",{"sourceInterval":[1491,1494]},";"]]],"Constant":["define",{"sourceInterval":[1350,1521]},null,[],["alt",{"sourceInterval":[1361,1521]},["app",{"sourceInterval":[1361,1421]},"Constant_withValue",[]],["app",{"sourceInterval":[1449,1494]},"Constant_withEmpty",[]]]],"Struct_originary":["define",{"sourceInterval":[1550,1602]},null,[],["seq",{"sourceInterval":[1550,1590]},["terminal",{"sourceInterval":[1550,1558]},"struct"],["app",{"sourceInterval":[1559,1570]},"typeLiteral",[]],["terminal",{"sourceInterval":[1571,1574]},"{"],["star",{"sourceInterval":[1575,1586]},["app",{"sourceInterval":[1575,1585]},"StructBody",[]]],["terminal",{"sourceInterval":[1587,1590]},"}"]]],"Struct_message":["define",{"sourceInterval":[1616,1667]},null,[],["seq",{"sourceInterval":[1616,1657]},["terminal",{"sourceInterval":[1616,1625]},"message"],["app",{"sourceInterval":[1626,1637]},"typeLiteral",[]],["terminal",{"sourceInterval":[1638,1641]},"{"],["star",{"sourceInterval":[1642,1653]},["app",{"sourceInterval":[1642,1652]},"StructBody",[]]],["terminal",{"sourceInterval":[1654,1657]},"}"]]],"Struct_messageWithId":["define",{"sourceInterval":[1681,1761]},null,[],["seq",{"sourceInterval":[1681,1745]},["terminal",{"sourceInterval":[1681,1690]},"message"],["terminal",{"sourceInterval":[1691,1694]},"("],["app",{"sourceInterval":[1695,1709]},"integerLiteral",[]],["terminal",{"sourceInterval":[1710,1713]},")"],["app",{"sourceInterval":[1714,1725]},"typeLiteral",[]],["terminal",{"sourceInterval":[1726,1729]},"{"],["star",{"sourceInterval":[1730,1741]},["app",{"sourceInterval":[1730,1740]},"StructBody",[]]],["terminal",{"sourceInterval":[1742,1745]},"}"]]],"Struct":["define",{"sourceInterval":[1541,1761]},null,[],["alt",{"sourceInterval":[1550,1761]},["app",{"sourceInterval":[1550,1590]},"Struct_originary",[]],["app",{"sourceInterval":[1616,1657]},"Struct_message",[]],["app",{"sourceInterval":[1681,1745]},"Struct_messageWithId",[]]]],"StructBody":["define",{"sourceInterval":[1766,1784]},null,[],["app",{"sourceInterval":[1779,1784]},"Field",[]]],"Contract_simple":["define",{"sourceInterval":[1817,1878]},null,[],["seq",{"sourceInterval":[1817,1869]},["star",{"sourceInterval":[1817,1835]},["app",{"sourceInterval":[1817,1834]},"ContractAttribute",[]]],["app",{"sourceInterval":[1836,1844]},"contract",[]],["app",{"sourceInterval":[1845,1847]},"id",[]],["terminal",{"sourceInterval":[1848,1851]},"{"],["star",{"sourceInterval":[1852,1865]},["app",{"sourceInterval":[1852,1864]},"ContractBody",[]]],["terminal",{"sourceInterval":[1866,1869]},"}"]]],"Contract_withTraits":["define",{"sourceInterval":[1894,1979]},null,[],["seq",{"sourceInterval":[1894,1966]},["star",{"sourceInterval":[1894,1912]},["app",{"sourceInterval":[1894,1911]},"ContractAttribute",[]]],["app",{"sourceInterval":[1913,1921]},"contract",[]],["app",{"sourceInterval":[1922,1924]},"id",[]],["app",{"sourceInterval":[1925,1929]},"with",[]],["app",{"sourceInterval":[1930,1944]},"ListOf",[["app",{"sourceInterval":[1937,1939]},"id",[]],["terminal",{"sourceInterval":[1940,1943]},","]]],["terminal",{"sourceInterval":[1945,1948]},"{"],["star",{"sourceInterval":[1949,1962]},["app",{"sourceInterval":[1949,1961]},"ContractBody",[]]],["terminal",{"sourceInterval":[1963,1966]},"}"]]],"Contract":["define",{"sourceInterval":[1806,1979]},null,[],["alt",{"sourceInterval":[1817,1979]},["app",{"sourceInterval":[1817,1869]},"Contract_simple",[]],["app",{"sourceInterval":[1894,1966]},"Contract_withTraits",[]]]],"ContractInit":["define",{"sourceInterval":[1984,2056]},null,[],["seq",{"sourceInterval":[1999,2056]},["terminal",{"sourceInterval":[1999,2005]},"init"],["terminal",{"sourceInterval":[2006,2009]},"("],["app",{"sourceInterval":[2010,2033]},"ListOf",[["app",{"sourceInterval":[2017,2028]},"FunctionArg",[]],["terminal",{"sourceInterval":[2029,2032]},","]]],["terminal",{"sourceInterval":[2034,2037]},")"],["terminal",{"sourceInterval":[2038,2041]},"{"],["star",{"sourceInterval":[2042,2052]},["app",{"sourceInterval":[2042,2051]},"Statement",[]]],["terminal",{"sourceInterval":[2053,2056]},"}"]]],"ContractBody":["define",{"sourceInterval":[2061,2204]},null,[],["alt",{"sourceInterval":[2076,2204]},["app",{"sourceInterval":[2076,2081]},"Field",[]],["app",{"sourceInterval":[2101,2113]},"ContractInit",[]],["app",{"sourceInterval":[2133,2148]},"ReceiveFunction",[]],["app",{"sourceInterval":[2168,2176]},"Function",[]],["app",{"sourceInterval":[2196,2204]},"Constant",[]]]],"Trait_originary":["define",{"sourceInterval":[2235,2293]},null,[],["seq",{"sourceInterval":[2235,2281]},["star",{"sourceInterval":[2235,2253]},["app",{"sourceInterval":[2235,2252]},"ContractAttribute",[]]],["app",{"sourceInterval":[2254,2259]},"trait",[]],["app",{"sourceInterval":[2260,2262]},"id",[]],["terminal",{"sourceInterval":[2263,2266]},"{"],["star",{"sourceInterval":[2267,2277]},["app",{"sourceInterval":[2267,2276]},"TraitBody",[]]],["terminal",{"sourceInterval":[2278,2281]},"}"]]],"Trait_withTraits":["define",{"sourceInterval":[2306,2385]},null,[],["seq",{"sourceInterval":[2306,2372]},["star",{"sourceInterval":[2306,2324]},["app",{"sourceInterval":[2306,2323]},"ContractAttribute",[]]],["app",{"sourceInterval":[2325,2330]},"trait",[]],["app",{"sourceInterval":[2331,2333]},"id",[]],["app",{"sourceInterval":[2334,2338]},"with",[]],["app",{"sourceInterval":[2339,2353]},"ListOf",[["app",{"sourceInterval":[2346,2348]},"id",[]],["terminal",{"sourceInterval":[2349,2352]},","]]],["terminal",{"sourceInterval":[2354,2357]},"{"],["star",{"sourceInterval":[2358,2368]},["app",{"sourceInterval":[2358,2367]},"TraitBody",[]]],["terminal",{"sourceInterval":[2369,2372]},"}"]]],"Trait":["define",{"sourceInterval":[2227,2385]},null,[],["alt",{"sourceInterval":[2235,2385]},["app",{"sourceInterval":[2235,2281]},"Trait_originary",[]],["app",{"sourceInterval":[2306,2372]},"Trait_withTraits",[]]]],"TraitBody":["define",{"sourceInterval":[2390,2489]},null,[],["alt",{"sourceInterval":[2402,2489]},["app",{"sourceInterval":[2402,2407]},"Field",[]],["app",{"sourceInterval":[2424,2439]},"ReceiveFunction",[]],["app",{"sourceInterval":[2456,2464]},"Function",[]],["app",{"sourceInterval":[2481,2489]},"Constant",[]]]],"ContractAttribute_interface":["define",{"sourceInterval":[2542,2588]},null,[],["seq",{"sourceInterval":[2542,2576]},["terminal",{"sourceInterval":[2542,2554]},"@interface"],["terminal",{"sourceInterval":[2555,2558]},"("],["app",{"sourceInterval":[2559,2572]},"stringLiteral",[]],["terminal",{"sourceInterval":[2573,2576]},")"]]],"ContractAttribute":["define",{"sourceInterval":[2522,2588]},null,[],["app",{"sourceInterval":[2542,2588]},"ContractAttribute_interface",[]]],"FunctionAttribute_getter":["define",{"sourceInterval":[2630,2648]},null,[],["terminal",{"sourceInterval":[2630,2635]},"get"]],"FunctionAttribute_mutates":["define",{"sourceInterval":[2673,2692]},null,[],["app",{"sourceInterval":[2673,2680]},"mutates",[]]],"FunctionAttribute_extends":["define",{"sourceInterval":[2717,2736]},null,[],["app",{"sourceInterval":[2717,2724]},"extends",[]]],"FunctionAttribute_virtual":["define",{"sourceInterval":[2761,2780]},null,[],["app",{"sourceInterval":[2761,2768]},"virtual",[]]],"FunctionAttribute_override":["define",{"sourceInterval":[2805,2825]},null,[],["app",{"sourceInterval":[2805,2813]},"override",[]]],"FunctionAttribute_inline":["define",{"sourceInterval":[2850,2868]},null,[],["app",{"sourceInterval":[2850,2856]},"inline",[]]],"FunctionAttribute_abstract":["define",{"sourceInterval":[2893,2913]},null,[],["app",{"sourceInterval":[2893,2901]},"abstract",[]]],"FunctionAttribute":["define",{"sourceInterval":[2610,2913]},null,[],["alt",{"sourceInterval":[2630,2913]},["app",{"sourceInterval":[2630,2635]},"FunctionAttribute_getter",[]],["app",{"sourceInterval":[2673,2680]},"FunctionAttribute_mutates",[]],["app",{"sourceInterval":[2717,2724]},"FunctionAttribute_extends",[]],["app",{"sourceInterval":[2761,2768]},"FunctionAttribute_virtual",[]],["app",{"sourceInterval":[2805,2813]},"FunctionAttribute_override",[]],["app",{"sourceInterval":[2850,2856]},"FunctionAttribute_inline",[]],["app",{"sourceInterval":[2893,2901]},"FunctionAttribute_abstract",[]]]],"Function_withVoid":["define",{"sourceInterval":[2929,3016]},null,[],["seq",{"sourceInterval":[2929,3005]},["star",{"sourceInterval":[2929,2947]},["app",{"sourceInterval":[2929,2946]},"FunctionAttribute",[]]],["app",{"sourceInterval":[2948,2951]},"fun",[]],["app",{"sourceInterval":[2952,2954]},"id",[]],["terminal",{"sourceInterval":[2955,2958]},"("],["app",{"sourceInterval":[2959,2982]},"ListOf",[["app",{"sourceInterval":[2966,2977]},"FunctionArg",[]],["terminal",{"sourceInterval":[2978,2981]},","]]],["terminal",{"sourceInterval":[2983,2986]},")"],["terminal",{"sourceInterval":[2987,2990]},"{"],["star",{"sourceInterval":[2991,3001]},["app",{"sourceInterval":[2991,3000]},"Statement",[]]],["terminal",{"sourceInterval":[3002,3005]},"}"]]],"Function_withType":["define",{"sourceInterval":[3032,3128]},null,[],["seq",{"sourceInterval":[3032,3117]},["star",{"sourceInterval":[3032,3050]},["app",{"sourceInterval":[3032,3049]},"FunctionAttribute",[]]],["app",{"sourceInterval":[3051,3054]},"fun",[]],["app",{"sourceInterval":[3055,3057]},"id",[]],["terminal",{"sourceInterval":[3058,3061]},"("],["app",{"sourceInterval":[3062,3085]},"ListOf",[["app",{"sourceInterval":[3069,3080]},"FunctionArg",[]],["terminal",{"sourceInterval":[3081,3084]},","]]],["terminal",{"sourceInterval":[3086,3089]},")"],["terminal",{"sourceInterval":[3090,3093]},":"],["app",{"sourceInterval":[3094,3098]},"Type",[]],["terminal",{"sourceInterval":[3099,3102]},"{"],["star",{"sourceInterval":[3103,3113]},["app",{"sourceInterval":[3103,3112]},"Statement",[]]],["terminal",{"sourceInterval":[3114,3117]},"}"]]],"Function_abstractVoid":["define",{"sourceInterval":[3144,3220]},null,[],["seq",{"sourceInterval":[3144,3205]},["star",{"sourceInterval":[3144,3162]},["app",{"sourceInterval":[3144,3161]},"FunctionAttribute",[]]],["app",{"sourceInterval":[3163,3166]},"fun",[]],["app",{"sourceInterval":[3167,3169]},"id",[]],["terminal",{"sourceInterval":[3170,3173]},"("],["app",{"sourceInterval":[3174,3197]},"ListOf",[["app",{"sourceInterval":[3181,3192]},"FunctionArg",[]],["terminal",{"sourceInterval":[3193,3196]},","]]],["terminal",{"sourceInterval":[3198,3201]},")"],["terminal",{"sourceInterval":[3202,3205]},";"]]],"Function_abstractType":["define",{"sourceInterval":[3236,3321]},null,[],["seq",{"sourceInterval":[3236,3306]},["star",{"sourceInterval":[3236,3254]},["app",{"sourceInterval":[3236,3253]},"FunctionAttribute",[]]],["app",{"sourceInterval":[3255,3258]},"fun",[]],["app",{"sourceInterval":[3259,3261]},"id",[]],["terminal",{"sourceInterval":[3262,3265]},"("],["app",{"sourceInterval":[3266,3289]},"ListOf",[["app",{"sourceInterval":[3273,3284]},"FunctionArg",[]],["terminal",{"sourceInterval":[3285,3288]},","]]],["terminal",{"sourceInterval":[3290,3293]},")"],["terminal",{"sourceInterval":[3294,3297]},":"],["app",{"sourceInterval":[3298,3302]},"Type",[]],["terminal",{"sourceInterval":[3303,3306]},";"]]],"Function":["define",{"sourceInterval":[2918,3321]},null,[],["alt",{"sourceInterval":[2929,3321]},["app",{"sourceInterval":[2929,3005]},"Function_withVoid",[]],["app",{"sourceInterval":[3032,3117]},"Function_withType",[]],["app",{"sourceInterval":[3144,3205]},"Function_abstractVoid",[]],["app",{"sourceInterval":[3236,3306]},"Function_abstractType",[]]]],"FunctionArg":["define",{"sourceInterval":[3326,3351]},null,[],["seq",{"sourceInterval":[3340,3351]},["app",{"sourceInterval":[3340,3342]},"id",[]],["terminal",{"sourceInterval":[3343,3346]},":"],["app",{"sourceInterval":[3347,3351]},"Type",[]]]],"ReceiveFunction_simple":["define",{"sourceInterval":[3379,3436]},null,[],["seq",{"sourceInterval":[3379,3427]},["terminal",{"sourceInterval":[3379,3388]},"receive"],["terminal",{"sourceInterval":[3389,3392]},"("],["app",{"sourceInterval":[3393,3404]},"FunctionArg",[]],["terminal",{"sourceInterval":[3405,3408]},")"],["terminal",{"sourceInterval":[3409,3412]},"{"],["star",{"sourceInterval":[3413,3423]},["app",{"sourceInterval":[3413,3422]},"Statement",[]]],["terminal",{"sourceInterval":[3424,3427]},"}"]]],"ReceiveFunction_empty":["define",{"sourceInterval":[3459,3503]},null,[],["seq",{"sourceInterval":[3459,3495]},["terminal",{"sourceInterval":[3459,3468]},"receive"],["terminal",{"sourceInterval":[3469,3472]},"("],["terminal",{"sourceInterval":[3473,3476]},")"],["terminal",{"sourceInterval":[3477,3480]},"{"],["star",{"sourceInterval":[3481,3491]},["app",{"sourceInterval":[3481,3490]},"Statement",[]]],["terminal",{"sourceInterval":[3492,3495]},"}"]]],"ReceiveFunction_comment":["define",{"sourceInterval":[3526,3586]},null,[],["seq",{"sourceInterval":[3526,3576]},["terminal",{"sourceInterval":[3526,3535]},"receive"],["terminal",{"sourceInterval":[3536,3539]},"("],["app",{"sourceInterval":[3540,3553]},"stringLiteral",[]],["terminal",{"sourceInterval":[3554,3557]},")"],["terminal",{"sourceInterval":[3558,3561]},"{"],["star",{"sourceInterval":[3562,3572]},["app",{"sourceInterval":[3562,3571]},"Statement",[]]],["terminal",{"sourceInterval":[3573,3576]},"}"]]],"ReceiveFunction_bounced":["define",{"sourceInterval":[3609,3667]},null,[],["seq",{"sourceInterval":[3609,3657]},["terminal",{"sourceInterval":[3609,3618]},"bounced"],["terminal",{"sourceInterval":[3619,3622]},"("],["app",{"sourceInterval":[3623,3634]},"FunctionArg",[]],["terminal",{"sourceInterval":[3635,3638]},")"],["terminal",{"sourceInterval":[3639,3642]},"{"],["star",{"sourceInterval":[3643,3653]},["app",{"sourceInterval":[3643,3652]},"Statement",[]]],["terminal",{"sourceInterval":[3654,3657]},"}"]]],"ReceiveFunction_externalSimple":["define",{"sourceInterval":[3690,3756]},null,[],["seq",{"sourceInterval":[3690,3739]},["terminal",{"sourceInterval":[3690,3700]},"external"],["terminal",{"sourceInterval":[3701,3704]},"("],["app",{"sourceInterval":[3705,3716]},"FunctionArg",[]],["terminal",{"sourceInterval":[3717,3720]},")"],["terminal",{"sourceInterval":[3721,3724]},"{"],["star",{"sourceInterval":[3725,3735]},["app",{"sourceInterval":[3725,3734]},"Statement",[]]],["terminal",{"sourceInterval":[3736,3739]},"}"]]],"ReceiveFunction_externalComment":["define",{"sourceInterval":[3779,3848]},null,[],["seq",{"sourceInterval":[3779,3830]},["terminal",{"sourceInterval":[3779,3789]},"external"],["terminal",{"sourceInterval":[3790,3793]},"("],["app",{"sourceInterval":[3794,3807]},"stringLiteral",[]],["terminal",{"sourceInterval":[3808,3811]},")"],["terminal",{"sourceInterval":[3812,3815]},"{"],["star",{"sourceInterval":[3816,3826]},["app",{"sourceInterval":[3816,3825]},"Statement",[]]],["terminal",{"sourceInterval":[3827,3830]},"}"]]],"ReceiveFunction_externalEmpty":["define",{"sourceInterval":[3871,3924]},null,[],["seq",{"sourceInterval":[3871,3908]},["terminal",{"sourceInterval":[3871,3881]},"external"],["terminal",{"sourceInterval":[3882,3885]},"("],["terminal",{"sourceInterval":[3886,3889]},")"],["terminal",{"sourceInterval":[3890,3893]},"{"],["star",{"sourceInterval":[3894,3904]},["app",{"sourceInterval":[3894,3903]},"Statement",[]]],["terminal",{"sourceInterval":[3905,3908]},"}"]]],"ReceiveFunction":["define",{"sourceInterval":[3361,3924]},null,[],["alt",{"sourceInterval":[3379,3924]},["app",{"sourceInterval":[3379,3427]},"ReceiveFunction_simple",[]],["app",{"sourceInterval":[3459,3495]},"ReceiveFunction_empty",[]],["app",{"sourceInterval":[3526,3576]},"ReceiveFunction_comment",[]],["app",{"sourceInterval":[3609,3657]},"ReceiveFunction_bounced",[]],["app",{"sourceInterval":[3690,3739]},"ReceiveFunction_externalSimple",[]],["app",{"sourceInterval":[3779,3830]},"ReceiveFunction_externalComment",[]],["app",{"sourceInterval":[3871,3908]},"ReceiveFunction_externalEmpty",[]]]],"Statement":["define",{"sourceInterval":[3948,4232]},null,[],["alt",{"sourceInterval":[3960,4232]},["app",{"sourceInterval":[3960,3972]},"StatementLet",[]],["app",{"sourceInterval":[3989,4003]},"StatementBlock",[]],["app",{"sourceInterval":[4020,4035]},"StatementReturn",[]],["app",{"sourceInterval":[4052,4071]},"StatementExpression",[]],["app",{"sourceInterval":[4088,4103]},"StatementAssign",[]],["app",{"sourceInterval":[4120,4138]},"StatementCondition",[]],["app",{"sourceInterval":[4155,4169]},"StatementWhile",[]],["app",{"sourceInterval":[4186,4201]},"StatementRepeat",[]],["app",{"sourceInterval":[4218,4232]},"StatementUntil",[]]]],"StatementBlock":["define",{"sourceInterval":[4237,4272]},null,[],["seq",{"sourceInterval":[4254,4272]},["terminal",{"sourceInterval":[4254,4257]},"{"],["star",{"sourceInterval":[4258,4268]},["app",{"sourceInterval":[4258,4267]},"Statement",[]]],["terminal",{"sourceInterval":[4269,4272]},"}"]]],"StatementLet":["define",{"sourceInterval":[4277,4326]},null,[],["seq",{"sourceInterval":[4292,4326]},["app",{"sourceInterval":[4292,4295]},"let",[]],["app",{"sourceInterval":[4296,4298]},"id",[]],["terminal",{"sourceInterval":[4299,4302]},":"],["app",{"sourceInterval":[4303,4307]},"Type",[]],["terminal",{"sourceInterval":[4308,4311]},"="],["app",{"sourceInterval":[4312,4322]},"Expression",[]],["terminal",{"sourceInterval":[4323,4326]},";"]]],"StatementReturn_withExpression":["define",{"sourceInterval":[4349,4387]},null,[],["seq",{"sourceInterval":[4349,4370]},["app",{"sourceInterval":[4349,4355]},"return",[]],["app",{"sourceInterval":[4356,4366]},"Expression",[]],["terminal",{"sourceInterval":[4367,4370]},";"]]],"StatementReturn_withoutExpression":["define",{"sourceInterval":[4410,4440]},null,[],["seq",{"sourceInterval":[4410,4420]},["app",{"sourceInterval":[4410,4416]},"return",[]],["terminal",{"sourceInterval":[4417,4420]},";"]]],"StatementReturn":["define",{"sourceInterval":[4331,4440]},null,[],["alt",{"sourceInterval":[4349,4440]},["app",{"sourceInterval":[4349,4370]},"StatementReturn_withExpression",[]],["app",{"sourceInterval":[4410,4420]},"StatementReturn_withoutExpression",[]]]],"StatementExpression":["define",{"sourceInterval":[4449,4485]},null,[],["seq",{"sourceInterval":[4471,4485]},["app",{"sourceInterval":[4471,4481]},"Expression",[]],["terminal",{"sourceInterval":[4482,4485]},";"]]],"StatementAssign":["define",{"sourceInterval":[4490,4533]},null,[],["seq",{"sourceInterval":[4508,4533]},["app",{"sourceInterval":[4508,4514]},"LValue",[]],["terminal",{"sourceInterval":[4515,4518]},"="],["app",{"sourceInterval":[4519,4529]},"Expression",[]],["terminal",{"sourceInterval":[4530,4533]},";"]]],"StatementCondition_simple":["define",{"sourceInterval":[4559,4606]},null,[],["seq",{"sourceInterval":[4559,4597]},["app",{"sourceInterval":[4559,4561]},"if",[]],["app",{"sourceInterval":[4562,4572]},"Expression",[]],["terminal",{"sourceInterval":[4573,4576]},"{"],["star",{"sourceInterval":[4577,4587]},["app",{"sourceInterval":[4577,4586]},"Statement",[]]],["terminal",{"sourceInterval":[4588,4591]},"}"],["not",{"sourceInterval":[4592,4597]},["app",{"sourceInterval":[4593,4597]},"else",[]]]]],"StatementCondition_withElse":["define",{"sourceInterval":[4632,4699]},null,[],["seq",{"sourceInterval":[4632,4688]},["app",{"sourceInterval":[4632,4634]},"if",[]],["app",{"sourceInterval":[4635,4645]},"Expression",[]],["terminal",{"sourceInterval":[4646,4649]},"{"],["star",{"sourceInterval":[4650,4660]},["app",{"sourceInterval":[4650,4659]},"Statement",[]]],["terminal",{"sourceInterval":[4661,4664]},"}"],["app",{"sourceInterval":[4665,4669]},"else",[]],["terminal",{"sourceInterval":[4670,4673]},"{"],["star",{"sourceInterval":[4674,4684]},["app",{"sourceInterval":[4674,4683]},"Statement",[]]],["terminal",{"sourceInterval":[4685,4688]},"}"]]],"StatementCondition_withElseIf":["define",{"sourceInterval":[4725,4794]},null,[],["seq",{"sourceInterval":[4725,4781]},["app",{"sourceInterval":[4725,4727]},"if",[]],["app",{"sourceInterval":[4728,4738]},"Expression",[]],["terminal",{"sourceInterval":[4739,4742]},"{"],["star",{"sourceInterval":[4743,4753]},["app",{"sourceInterval":[4743,4752]},"Statement",[]]],["terminal",{"sourceInterval":[4754,4757]},"}"],["app",{"sourceInterval":[4758,4762]},"else",[]],["app",{"sourceInterval":[4763,4781]},"StatementCondition",[]]]],"StatementCondition":["define",{"sourceInterval":[4538,4794]},null,[],["alt",{"sourceInterval":[4559,4794]},["app",{"sourceInterval":[4559,4597]},"StatementCondition_simple",[]],["app",{"sourceInterval":[4632,4688]},"StatementCondition_withElse",[]],["app",{"sourceInterval":[4725,4781]},"StatementCondition_withElseIf",[]]]],"StatementWhile":["define",{"sourceInterval":[4799,4859]},null,[],["seq",{"sourceInterval":[4816,4859]},["app",{"sourceInterval":[4816,4821]},"while",[]],["terminal",{"sourceInterval":[4822,4825]},"("],["app",{"sourceInterval":[4826,4836]},"Expression",[]],["terminal",{"sourceInterval":[4837,4840]},")"],["terminal",{"sourceInterval":[4841,4844]},"{"],["star",{"sourceInterval":[4845,4855]},["app",{"sourceInterval":[4845,4854]},"Statement",[]]],["terminal",{"sourceInterval":[4856,4859]},"}"]]],"StatementRepeat":["define",{"sourceInterval":[4864,4926]},null,[],["seq",{"sourceInterval":[4882,4926]},["app",{"sourceInterval":[4882,4888]},"repeat",[]],["terminal",{"sourceInterval":[4889,4892]},"("],["app",{"sourceInterval":[4893,4903]},"Expression",[]],["terminal",{"sourceInterval":[4904,4907]},")"],["terminal",{"sourceInterval":[4908,4911]},"{"],["star",{"sourceInterval":[4912,4922]},["app",{"sourceInterval":[4912,4921]},"Statement",[]]],["terminal",{"sourceInterval":[4923,4926]},"}"]]],"StatementUntil":["define",{"sourceInterval":[4931,4998]},null,[],["seq",{"sourceInterval":[4948,4998]},["app",{"sourceInterval":[4948,4950]},"do",[]],["terminal",{"sourceInterval":[4951,4954]},"{"],["star",{"sourceInterval":[4955,4965]},["app",{"sourceInterval":[4955,4964]},"Statement",[]]],["terminal",{"sourceInterval":[4966,4969]},"}"],["app",{"sourceInterval":[4970,4975]},"until",[]],["terminal",{"sourceInterval":[4976,4979]},"("],["app",{"sourceInterval":[4980,4990]},"Expression",[]],["terminal",{"sourceInterval":[4991,4994]},")"],["terminal",{"sourceInterval":[4995,4998]},";"]]],"LValue_more":["define",{"sourceInterval":[5028,5048]},null,[],["seq",{"sourceInterval":[5028,5041]},["app",{"sourceInterval":[5028,5030]},"id",[]],["terminal",{"sourceInterval":[5031,5034]},"."],["app",{"sourceInterval":[5035,5041]},"LValue",[]]]],"LValue_single":["define",{"sourceInterval":[5062,5073]},null,[],["app",{"sourceInterval":[5062,5064]},"id",[]]],"LValue":["define",{"sourceInterval":[5019,5073]},null,[],["alt",{"sourceInterval":[5028,5073]},["app",{"sourceInterval":[5028,5041]},"LValue_more",[]],["app",{"sourceInterval":[5062,5064]},"LValue_single",[]]]],"Expression":["define",{"sourceInterval":[5098,5123]},null,[],["app",{"sourceInterval":[5111,5123]},"ExpressionOr",[]]],"ExpressionOr_or":["define",{"sourceInterval":[5143,5179]},null,[],["seq",{"sourceInterval":[5143,5174]},["app",{"sourceInterval":[5143,5155]},"ExpressionOr",[]],["terminal",{"sourceInterval":[5156,5160]},"||"],["app",{"sourceInterval":[5161,5174]},"ExpressionAnd",[]]]],"ExpressionOr":["define",{"sourceInterval":[5128,5212]},null,[],["alt",{"sourceInterval":[5143,5212]},["app",{"sourceInterval":[5143,5174]},"ExpressionOr_or",[]],["app",{"sourceInterval":[5199,5212]},"ExpressionAnd",[]]]],"ExpressionAnd_and":["define",{"sourceInterval":[5233,5275]},null,[],["seq",{"sourceInterval":[5233,5269]},["app",{"sourceInterval":[5233,5246]},"ExpressionAnd",[]],["terminal",{"sourceInterval":[5247,5251]},"&&"],["app",{"sourceInterval":[5252,5269]},"ExpressionCompare",[]]]],"ExpressionAnd":["define",{"sourceInterval":[5217,5313]},null,[],["alt",{"sourceInterval":[5233,5313]},["app",{"sourceInterval":[5233,5269]},"ExpressionAnd_and",[]],["app",{"sourceInterval":[5296,5313]},"ExpressionCompare",[]]]],"ExpressionCompare_not":["define",{"sourceInterval":[5338,5383]},null,[],["seq",{"sourceInterval":[5338,5377]},["app",{"sourceInterval":[5338,5355]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5356,5360]},"!="],["app",{"sourceInterval":[5361,5377]},"ExpressionBinary",[]]]],"ExpressionCompare_eq":["define",{"sourceInterval":[5408,5452]},null,[],["seq",{"sourceInterval":[5408,5447]},["app",{"sourceInterval":[5408,5425]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5426,5430]},"=="],["app",{"sourceInterval":[5431,5447]},"ExpressionBinary",[]]]],"ExpressionCompare_gt":["define",{"sourceInterval":[5477,5520]},null,[],["seq",{"sourceInterval":[5477,5515]},["app",{"sourceInterval":[5477,5494]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5495,5498]},">"],["app",{"sourceInterval":[5499,5515]},"ExpressionBinary",[]]]],"ExpressionCompare_gte":["define",{"sourceInterval":[5545,5590]},null,[],["seq",{"sourceInterval":[5545,5584]},["app",{"sourceInterval":[5545,5562]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5563,5567]},">="],["app",{"sourceInterval":[5568,5584]},"ExpressionBinary",[]]]],"ExpressionCompare_lt":["define",{"sourceInterval":[5615,5658]},null,[],["seq",{"sourceInterval":[5615,5653]},["app",{"sourceInterval":[5615,5632]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5633,5636]},"<"],["app",{"sourceInterval":[5637,5653]},"ExpressionBinary",[]]]],"ExpressionCompare_lte":["define",{"sourceInterval":[5683,5728]},null,[],["seq",{"sourceInterval":[5683,5722]},["app",{"sourceInterval":[5683,5700]},"ExpressionCompare",[]],["terminal",{"sourceInterval":[5701,5705]},"<="],["app",{"sourceInterval":[5706,5722]},"ExpressionBinary",[]]]],"ExpressionCompare":["define",{"sourceInterval":[5318,5769]},null,[],["alt",{"sourceInterval":[5338,5769]},["app",{"sourceInterval":[5338,5377]},"ExpressionCompare_not",[]],["app",{"sourceInterval":[5408,5447]},"ExpressionCompare_eq",[]],["app",{"sourceInterval":[5477,5515]},"ExpressionCompare_gt",[]],["app",{"sourceInterval":[5545,5584]},"ExpressionCompare_gte",[]],["app",{"sourceInterval":[5615,5653]},"ExpressionCompare_lt",[]],["app",{"sourceInterval":[5683,5722]},"ExpressionCompare_lte",[]],["app",{"sourceInterval":[5753,5769]},"ExpressionBinary",[]]]],"ExpressionBinary_shr":["define",{"sourceInterval":[5793,5834]},null,[],["seq",{"sourceInterval":[5793,5828]},["app",{"sourceInterval":[5793,5809]},"ExpressionBinary",[]],["terminal",{"sourceInterval":[5810,5814]},">>"],["app",{"sourceInterval":[5815,5828]},"ExpressionAdd",[]]]],"ExpressionBinary_shl":["define",{"sourceInterval":[5857,5898]},null,[],["seq",{"sourceInterval":[5857,5892]},["app",{"sourceInterval":[5857,5873]},"ExpressionBinary",[]],["terminal",{"sourceInterval":[5874,5878]},"<<"],["app",{"sourceInterval":[5879,5892]},"ExpressionAdd",[]]]],"ExpressionBinary_bin_and":["define",{"sourceInterval":[5921,5965]},null,[],["seq",{"sourceInterval":[5921,5955]},["app",{"sourceInterval":[5921,5937]},"ExpressionBinary",[]],["terminal",{"sourceInterval":[5938,5941]},"&"],["app",{"sourceInterval":[5942,5955]},"ExpressionAdd",[]]]],"ExpressionBinary_bin_or":["define",{"sourceInterval":[5988,6031]},null,[],["seq",{"sourceInterval":[5988,6022]},["app",{"sourceInterval":[5988,6004]},"ExpressionBinary",[]],["terminal",{"sourceInterval":[6005,6008]},"|"],["app",{"sourceInterval":[6009,6022]},"ExpressionAdd",[]]]],"ExpressionBinary":["define",{"sourceInterval":[5774,6067]},null,[],["alt",{"sourceInterval":[5793,6067]},["app",{"sourceInterval":[5793,5828]},"ExpressionBinary_shr",[]],["app",{"sourceInterval":[5857,5892]},"ExpressionBinary_shl",[]],["app",{"sourceInterval":[5921,5955]},"ExpressionBinary_bin_and",[]],["app",{"sourceInterval":[5988,6022]},"ExpressionBinary_bin_or",[]],["app",{"sourceInterval":[6054,6067]},"ExpressionAdd",[]]]],"ExpressionAdd_add":["define",{"sourceInterval":[6088,6130]},null,[],["seq",{"sourceInterval":[6088,6124]},["app",{"sourceInterval":[6088,6101]},"ExpressionAdd",[]],["terminal",{"sourceInterval":[6102,6105]},"+"],["not",{"sourceInterval":[6106,6110]},["terminal",{"sourceInterval":[6107,6110]},"+"]],["app",{"sourceInterval":[6111,6124]},"ExpressionMul",[]]]],"ExpressionAdd_sub":["define",{"sourceInterval":[6151,6193]},null,[],["seq",{"sourceInterval":[6151,6187]},["app",{"sourceInterval":[6151,6164]},"ExpressionAdd",[]],["terminal",{"sourceInterval":[6165,6168]},"-"],["not",{"sourceInterval":[6169,6173]},["terminal",{"sourceInterval":[6170,6173]},"-"]],["app",{"sourceInterval":[6174,6187]},"ExpressionMul",[]]]],"ExpressionAdd":["define",{"sourceInterval":[6072,6227]},null,[],["alt",{"sourceInterval":[6088,6227]},["app",{"sourceInterval":[6088,6124]},"ExpressionAdd_add",[]],["app",{"sourceInterval":[6151,6187]},"ExpressionAdd_sub",[]],["app",{"sourceInterval":[6214,6227]},"ExpressionMul",[]]]],"ExpressionMul_mul":["define",{"sourceInterval":[6248,6287]},null,[],["seq",{"sourceInterval":[6248,6281]},["app",{"sourceInterval":[6248,6261]},"ExpressionMul",[]],["terminal",{"sourceInterval":[6262,6265]},"*"],["app",{"sourceInterval":[6266,6281]},"ExpressionUnary",[]]]],"ExpressionMul_div":["define",{"sourceInterval":[6308,6347]},null,[],["seq",{"sourceInterval":[6308,6341]},["app",{"sourceInterval":[6308,6321]},"ExpressionMul",[]],["terminal",{"sourceInterval":[6322,6325]},"/"],["app",{"sourceInterval":[6326,6341]},"ExpressionUnary",[]]]],"ExpressionMul_rem":["define",{"sourceInterval":[6368,6407]},null,[],["seq",{"sourceInterval":[6368,6401]},["app",{"sourceInterval":[6368,6381]},"ExpressionMul",[]],["terminal",{"sourceInterval":[6382,6385]},"%"],["app",{"sourceInterval":[6386,6401]},"ExpressionUnary",[]]]],"ExpressionMul":["define",{"sourceInterval":[6232,6443]},null,[],["alt",{"sourceInterval":[6248,6443]},["app",{"sourceInterval":[6248,6281]},"ExpressionMul_mul",[]],["app",{"sourceInterval":[6308,6341]},"ExpressionMul_div",[]],["app",{"sourceInterval":[6368,6401]},"ExpressionMul_rem",[]],["app",{"sourceInterval":[6428,6443]},"ExpressionUnary",[]]]],"ExpressionUnary_neg":["define",{"sourceInterval":[6466,6497]},null,[],["seq",{"sourceInterval":[6466,6491]},["terminal",{"sourceInterval":[6466,6469]},"-"],["app",{"sourceInterval":[6470,6491]},"ExpressionUnarySuffix",[]]]],"ExpressionUnary_add":["define",{"sourceInterval":[6520,6551]},null,[],["seq",{"sourceInterval":[6520,6545]},["terminal",{"sourceInterval":[6520,6523]},"+"],["app",{"sourceInterval":[6524,6545]},"ExpressionUnarySuffix",[]]]],"ExpressionUnary_not":["define",{"sourceInterval":[6574,6605]},null,[],["seq",{"sourceInterval":[6574,6599]},["terminal",{"sourceInterval":[6574,6577]},"!"],["app",{"sourceInterval":[6578,6599]},"ExpressionUnarySuffix",[]]]],"ExpressionUnary":["define",{"sourceInterval":[6448,6649]},null,[],["alt",{"sourceInterval":[6466,6649]},["app",{"sourceInterval":[6466,6491]},"ExpressionUnary_neg",[]],["app",{"sourceInterval":[6520,6545]},"ExpressionUnary_add",[]],["app",{"sourceInterval":[6574,6599]},"ExpressionUnary_not",[]],["app",{"sourceInterval":[6628,6649]},"ExpressionUnarySuffix",[]]]],"ExpressionUnarySuffix_notNull":["define",{"sourceInterval":[6678,6708]},null,[],["seq",{"sourceInterval":[6678,6698]},["app",{"sourceInterval":[6678,6693]},"ExpressionValue",[]],["terminal",{"sourceInterval":[6694,6698]},"!!"]]],"ExpressionUnarySuffix":["define",{"sourceInterval":[6654,6752]},null,[],["alt",{"sourceInterval":[6678,6752]},["app",{"sourceInterval":[6678,6698]},"ExpressionUnarySuffix_notNull",[]],["app",{"sourceInterval":[6737,6752]},"ExpressionValue",[]]]],"ExpressionBracket":["define",{"sourceInterval":[6757,6795]},null,[],["seq",{"sourceInterval":[6777,6795]},["terminal",{"sourceInterval":[6777,6780]},"("],["app",{"sourceInterval":[6781,6791]},"Expression",[]],["terminal",{"sourceInterval":[6792,6795]},")"]]],"ExpressionValue":["define",{"sourceInterval":[6827,7217]},null,[],["alt",{"sourceInterval":[6845,7217]},["app",{"sourceInterval":[6845,6859]},"ExpressionCall",[]],["app",{"sourceInterval":[6882,6897]},"ExpressionField",[]],["app",{"sourceInterval":[6920,6940]},"ExpressionStaticCall",[]],["app",{"sourceInterval":[6963,6980]},"ExpressionBracket",[]],["app",{"sourceInterval":[7003,7016]},"ExpressionNew",[]],["app",{"sourceInterval":[7039,7053]},"integerLiteral",[]],["app",{"sourceInterval":[7076,7087]},"boolLiteral",[]],["app",{"sourceInterval":[7110,7112]},"id",[]],["app",{"sourceInterval":[7135,7139]},"null",[]],["app",{"sourceInterval":[7162,7178]},"ExpressionInitOf",[]],["app",{"sourceInterval":[7201,7217]},"ExpressionString",[]]]],"ExpressionString":["define",{"sourceInterval":[7222,7254]},null,[],["app",{"sourceInterval":[7241,7254]},"stringLiteral",[]]],"ExpressionField":["define",{"sourceInterval":[7259,7304]},null,[],["seq",{"sourceInterval":[7277,7304]},["app",{"sourceInterval":[7277,7292]},"ExpressionValue",[]],["terminal",{"sourceInterval":[7293,7296]},"."],["app",{"sourceInterval":[7297,7299]},"id",[]],["not",{"sourceInterval":[7300,7304]},["terminal",{"sourceInterval":[7301,7304]},"("]]]],"ExpressionCall":["define",{"sourceInterval":[7309,7380]},null,[],["seq",{"sourceInterval":[7326,7380]},["app",{"sourceInterval":[7326,7341]},"ExpressionValue",[]],["terminal",{"sourceInterval":[7342,7345]},"."],["app",{"sourceInterval":[7346,7348]},"id",[]],["terminal",{"sourceInterval":[7349,7352]},"("],["app",{"sourceInterval":[7353,7376]},"ListOf",[["app",{"sourceInterval":[7360,7370]},"Expression",[]],["terminal",{"sourceInterval":[7372,7375]},","]]],["terminal",{"sourceInterval":[7377,7380]},")"]]],"ExpressionNew":["define",{"sourceInterval":[7385,7437]},null,[],["seq",{"sourceInterval":[7401,7437]},["app",{"sourceInterval":[7401,7403]},"id",[]],["terminal",{"sourceInterval":[7404,7407]},"{"],["app",{"sourceInterval":[7408,7433]},"ListOf",[["app",{"sourceInterval":[7415,7427]},"NewParameter",[]],["terminal",{"sourceInterval":[7429,7432]},","]]],["terminal",{"sourceInterval":[7434,7437]},"}"]]],"NewParameter":["define",{"sourceInterval":[7442,7474]},null,[],["seq",{"sourceInterval":[7457,7474]},["app",{"sourceInterval":[7457,7459]},"id",[]],["terminal",{"sourceInterval":[7460,7463]},":"],["app",{"sourceInterval":[7464,7474]},"Expression",[]]]],"ExpressionStaticCall":["define",{"sourceInterval":[7479,7536]},null,[],["seq",{"sourceInterval":[7502,7536]},["app",{"sourceInterval":[7502,7504]},"id",[]],["terminal",{"sourceInterval":[7505,7508]},"("],["app",{"sourceInterval":[7509,7532]},"ListOf",[["app",{"sourceInterval":[7516,7526]},"Expression",[]],["terminal",{"sourceInterval":[7528,7531]},","]]],["terminal",{"sourceInterval":[7533,7536]},")"]]],"ExpressionInitOf":["define",{"sourceInterval":[7541,7601]},null,[],["seq",{"sourceInterval":[7560,7601]},["app",{"sourceInterval":[7560,7566]},"initOf",[]],["app",{"sourceInterval":[7567,7569]},"id",[]],["terminal",{"sourceInterval":[7570,7573]},"("],["app",{"sourceInterval":[7574,7597]},"ListOf",[["app",{"sourceInterval":[7581,7591]},"Expression",[]],["terminal",{"sourceInterval":[7593,7596]},","]]],["terminal",{"sourceInterval":[7598,7601]},")"]]],"typeLiteral":["define",{"sourceInterval":[7627,7671]},null,[],["seq",{"sourceInterval":[7641,7671]},["app",{"sourceInterval":[7641,7654]},"letterAsciiUC",[]],["star",{"sourceInterval":[7655,7671]},["app",{"sourceInterval":[7655,7670]},"typeLiteralPart",[]]]]],"typeLiteralPart":["define",{"sourceInterval":[7676,7719]},null,[],["alt",{"sourceInterval":[7694,7719]},["app",{"sourceInterval":[7694,7705]},"letterAscii",[]],["app",{"sourceInterval":[7708,7713]},"digit",[]],["terminal",{"sourceInterval":[7716,7719]},"_"]]],"integerLiteral":["define",{"sourceInterval":[7926,8020]},null,[],["alt",{"sourceInterval":[7943,8020]},["app",{"sourceInterval":[7943,7960]},"integerLiteralHex",[]],["app",{"sourceInterval":[7963,7980]},"integerLiteralBin",[]],["app",{"sourceInterval":[7983,8000]},"integerLiteralOct",[]],["app",{"sourceInterval":[8003,8020]},"integerLiteralDec",[]]]],"integerLiteralDec":["define",{"sourceInterval":[8047,8088]},null,[],["seq",{"sourceInterval":[8067,8088]},["plus",{"sourceInterval":[8067,8073]},["app",{"sourceInterval":[8067,8072]},"digit",[]]],["star",{"sourceInterval":[8074,8088]},["alt",{"sourceInterval":[8075,8086]},["terminal",{"sourceInterval":[8075,8078]},"_"],["app",{"sourceInterval":[8081,8086]},"digit",[]]]]]],"integerLiteralHex":["define",{"sourceInterval":[8093,8202]},null,[],["alt",{"sourceInterval":[8113,8202]},["seq",{"sourceInterval":[8113,8145]},["terminal",{"sourceInterval":[8113,8117]},"0x"],["plus",{"sourceInterval":[8118,8127]},["app",{"sourceInterval":[8118,8126]},"hexDigit",[]]],["star",{"sourceInterval":[8128,8145]},["alt",{"sourceInterval":[8129,8143]},["terminal",{"sourceInterval":[8129,8132]},"_"],["app",{"sourceInterval":[8135,8143]},"hexDigit",[]]]]],["seq",{"sourceInterval":[8170,8202]},["terminal",{"sourceInterval":[8170,8174]},"0X"],["plus",{"sourceInterval":[8175,8184]},["app",{"sourceInterval":[8175,8183]},"hexDigit",[]]],["star",{"sourceInterval":[8185,8202]},["alt",{"sourceInterval":[8186,8200]},["terminal",{"sourceInterval":[8186,8189]},"_"],["app",{"sourceInterval":[8192,8200]},"hexDigit",[]]]]]]],"integerLiteralBin":["define",{"sourceInterval":[8207,8316]},null,[],["alt",{"sourceInterval":[8227,8316]},["seq",{"sourceInterval":[8227,8259]},["terminal",{"sourceInterval":[8227,8231]},"0b"],["plus",{"sourceInterval":[8232,8241]},["app",{"sourceInterval":[8232,8240]},"binDigit",[]]],["star",{"sourceInterval":[8242,8259]},["alt",{"sourceInterval":[8243,8257]},["terminal",{"sourceInterval":[8243,8246]},"_"],["app",{"sourceInterval":[8249,8257]},"binDigit",[]]]]],["seq",{"sourceInterval":[8284,8316]},["terminal",{"sourceInterval":[8284,8288]},"0B"],["plus",{"sourceInterval":[8289,8298]},["app",{"sourceInterval":[8289,8297]},"binDigit",[]]],["star",{"sourceInterval":[8299,8316]},["alt",{"sourceInterval":[8300,8314]},["terminal",{"sourceInterval":[8300,8303]},"_"],["app",{"sourceInterval":[8306,8314]},"binDigit",[]]]]]]],"integerLiteralOct":["define",{"sourceInterval":[8321,8430]},null,[],["alt",{"sourceInterval":[8341,8430]},["seq",{"sourceInterval":[8341,8373]},["terminal",{"sourceInterval":[8341,8345]},"0o"],["plus",{"sourceInterval":[8346,8355]},["app",{"sourceInterval":[8346,8354]},"octDigit",[]]],["star",{"sourceInterval":[8356,8373]},["alt",{"sourceInterval":[8357,8371]},["terminal",{"sourceInterval":[8357,8360]},"_"],["app",{"sourceInterval":[8363,8371]},"octDigit",[]]]]],["seq",{"sourceInterval":[8398,8430]},["terminal",{"sourceInterval":[8398,8402]},"0O"],["plus",{"sourceInterval":[8403,8412]},["app",{"sourceInterval":[8403,8411]},"octDigit",[]]],["star",{"sourceInterval":[8413,8430]},["alt",{"sourceInterval":[8414,8428]},["terminal",{"sourceInterval":[8414,8417]},"_"],["app",{"sourceInterval":[8420,8428]},"octDigit",[]]]]]]],"binDigit":["define",{"sourceInterval":[8435,8455]},null,[],["alt",{"sourceInterval":[8446,8455]},["terminal",{"sourceInterval":[8446,8449]},"0"],["terminal",{"sourceInterval":[8452,8455]},"1"]]],"octDigit":["define",{"sourceInterval":[8460,8479]},null,[],["range",{"sourceInterval":[8471,8479]},"0","7"]],"letterAsciiLC":["define",{"sourceInterval":[8500,8524]},null,[],["range",{"sourceInterval":[8516,8524]},"a","z"]],"letterAsciiUC":["define",{"sourceInterval":[8529,8553]},null,[],["range",{"sourceInterval":[8545,8553]},"A","Z"]],"letterAscii":["define",{"sourceInterval":[8558,8601]},null,[],["alt",{"sourceInterval":[8572,8601]},["app",{"sourceInterval":[8572,8585]},"letterAsciiLC",[]],["app",{"sourceInterval":[8588,8601]},"letterAsciiUC",[]]]],"letterComment":["define",{"sourceInterval":[8606,8665]},null,[],["alt",{"sourceInterval":[8622,8665]},["app",{"sourceInterval":[8622,8635]},"letterAsciiLC",[]],["app",{"sourceInterval":[8638,8651]},"letterAsciiUC",[]],["app",{"sourceInterval":[8654,8659]},"digit",[]],["terminal",{"sourceInterval":[8662,8665]},"_"]]],"idStart":["define",{"sourceInterval":[8689,8716]},null,[],["alt",{"sourceInterval":[8699,8716]},["app",{"sourceInterval":[8699,8710]},"letterAscii",[]],["terminal",{"sourceInterval":[8713,8716]},"_"]]],"idPart":["define",{"sourceInterval":[8721,8755]},null,[],["alt",{"sourceInterval":[8730,8755]},["app",{"sourceInterval":[8730,8741]},"letterAscii",[]],["app",{"sourceInterval":[8744,8749]},"digit",[]],["terminal",{"sourceInterval":[8752,8755]},"_"]]],"id":["define",{"sourceInterval":[8760,8798]},null,[],["seq",{"sourceInterval":[8765,8798]},["not",{"sourceInterval":[8765,8778]},["app",{"sourceInterval":[8766,8778]},"reservedWord",[]]],["lex",{"sourceInterval":[8779,8787]},["app",{"sourceInterval":[8780,8787]},"idStart",[]]],["lex",{"sourceInterval":[8788,8798]},["star",{"sourceInterval":[8790,8797]},["app",{"sourceInterval":[8790,8796]},"idPart",[]]]]]],"funcLetter":["define",{"sourceInterval":[8819,8880]},null,[],["alt",{"sourceInterval":[8832,8880]},["app",{"sourceInterval":[8832,8843]},"letterAscii",[]],["terminal",{"sourceInterval":[8846,8849]},"_"],["terminal",{"sourceInterval":[8852,8855]},"'"],["terminal",{"sourceInterval":[8858,8861]},"?"],["terminal",{"sourceInterval":[8864,8867]},"!"],["terminal",{"sourceInterval":[8870,8874]},"::"],["terminal",{"sourceInterval":[8877,8880]},"&"]]],"funcId":["define",{"sourceInterval":[8885,8927]},null,[],["seq",{"sourceInterval":[8894,8927]},["app",{"sourceInterval":[8894,8904]},"funcLetter",[]],["star",{"sourceInterval":[8905,8927]},["lex",{"sourceInterval":[8905,8926]},["alt",{"sourceInterval":[8907,8925]},["app",{"sourceInterval":[8907,8917]},"funcLetter",[]],["app",{"sourceInterval":[8920,8925]},"digit",[]]]]]]],"boolLiteral":["define",{"sourceInterval":[8953,8993]},null,[],["seq",{"sourceInterval":[8967,8993]},["alt",{"sourceInterval":[8968,8984]},["terminal",{"sourceInterval":[8968,8974]},"true"],["terminal",{"sourceInterval":[8977,8984]},"false"]],["not",{"sourceInterval":[8986,8993]},["app",{"sourceInterval":[8987,8993]},"idPart",[]]]]],"stringLiteralCharacter":["define",{"sourceInterval":[9021,9081]},null,[],["seq",{"sourceInterval":[9046,9081]},["not",{"sourceInterval":[9046,9077]},["alt",{"sourceInterval":[9048,9076]},["terminal",{"sourceInterval":[9048,9052]},"\""],["terminal",{"sourceInterval":[9055,9059]},"\\"],["app",{"sourceInterval":[9062,9076]},"lineTerminator",[]]]],["app",{"sourceInterval":[9078,9081]},"any",[]]]],"stringLiteral":["define",{"sourceInterval":[9086,9135]},null,[],["seq",{"sourceInterval":[9102,9135]},["terminal",{"sourceInterval":[9102,9106]},"\""],["star",{"sourceInterval":[9107,9130]},["app",{"sourceInterval":[9107,9129]},"stringLiteralCharacter",[]]],["terminal",{"sourceInterval":[9131,9135]},"\""]]],"keyword":["define",{"sourceInterval":[9188,9701]},null,[],["alt",{"sourceInterval":[9198,9701]},["app",{"sourceInterval":[9198,9201]},"fun",[]],["app",{"sourceInterval":[9217,9220]},"let",[]],["app",{"sourceInterval":[9235,9241]},"return",[]],["app",{"sourceInterval":[9257,9263]},"extend",[]],["app",{"sourceInterval":[9279,9285]},"native",[]],["app",{"sourceInterval":[9301,9307]},"public",[]],["app",{"sourceInterval":[9323,9327]},"null",[]],["app",{"sourceInterval":[9343,9345]},"if",[]],["app",{"sourceInterval":[9361,9365]},"else",[]],["app",{"sourceInterval":[9381,9386]},"while",[]],["app",{"sourceInterval":[9402,9408]},"repeat",[]],["app",{"sourceInterval":[9424,9426]},"do",[]],["app",{"sourceInterval":[9442,9447]},"until",[]],["app",{"sourceInterval":[9463,9465]},"as",[]],["app",{"sourceInterval":[9482,9489]},"mutates",[]],["app",{"sourceInterval":[9504,9511]},"extends",[]],["app",{"sourceInterval":[9526,9532]},"import",[]],["app",{"sourceInterval":[9547,9551]},"with",[]],["app",{"sourceInterval":[9566,9571]},"trait",[]],["app",{"sourceInterval":[9586,9592]},"initOf",[]],["app",{"sourceInterval":[9607,9615]},"override",[]],["app",{"sourceInterval":[9630,9638]},"abstract",[]],["app",{"sourceInterval":[9653,9660]},"virtual",[]],["app",{"sourceInterval":[9675,9681]},"inline",[]],["app",{"sourceInterval":[9696,9701]},"const",[]]]],"contract":["define",{"sourceInterval":[9706,9735]},null,[],["seq",{"sourceInterval":[9717,9735]},["terminal",{"sourceInterval":[9717,9727]},"contract"],["not",{"sourceInterval":[9728,9735]},["app",{"sourceInterval":[9729,9735]},"idPart",[]]]]],"let":["define",{"sourceInterval":[9740,9759]},null,[],["seq",{"sourceInterval":[9746,9759]},["terminal",{"sourceInterval":[9746,9751]},"let"],["not",{"sourceInterval":[9752,9759]},["app",{"sourceInterval":[9753,9759]},"idPart",[]]]]],"fun":["define",{"sourceInterval":[9764,9783]},null,[],["seq",{"sourceInterval":[9770,9783]},["terminal",{"sourceInterval":[9770,9775]},"fun"],["not",{"sourceInterval":[9776,9783]},["app",{"sourceInterval":[9777,9783]},"idPart",[]]]]],"return":["define",{"sourceInterval":[9788,9813]},null,[],["seq",{"sourceInterval":[9797,9813]},["terminal",{"sourceInterval":[9797,9805]},"return"],["not",{"sourceInterval":[9806,9813]},["app",{"sourceInterval":[9807,9813]},"idPart",[]]]]],"extend":["define",{"sourceInterval":[9818,9843]},null,[],["seq",{"sourceInterval":[9827,9843]},["terminal",{"sourceInterval":[9827,9835]},"extend"],["not",{"sourceInterval":[9836,9843]},["app",{"sourceInterval":[9837,9843]},"idPart",[]]]]],"native":["define",{"sourceInterval":[9848,9873]},null,[],["seq",{"sourceInterval":[9857,9873]},["terminal",{"sourceInterval":[9857,9865]},"native"],["not",{"sourceInterval":[9866,9873]},["app",{"sourceInterval":[9867,9873]},"idPart",[]]]]],"public":["define",{"sourceInterval":[9878,9903]},null,[],["seq",{"sourceInterval":[9887,9903]},["terminal",{"sourceInterval":[9887,9895]},"public"],["not",{"sourceInterval":[9896,9903]},["app",{"sourceInterval":[9897,9903]},"idPart",[]]]]],"null":["define",{"sourceInterval":[9908,9929]},null,[],["seq",{"sourceInterval":[9915,9929]},["terminal",{"sourceInterval":[9915,9921]},"null"],["not",{"sourceInterval":[9922,9929]},["app",{"sourceInterval":[9923,9929]},"idPart",[]]]]],"if":["define",{"sourceInterval":[9934,9951]},null,[],["seq",{"sourceInterval":[9939,9951]},["terminal",{"sourceInterval":[9939,9943]},"if"],["not",{"sourceInterval":[9944,9951]},["app",{"sourceInterval":[9945,9951]},"idPart",[]]]]],"else":["define",{"sourceInterval":[9956,9977]},null,[],["seq",{"sourceInterval":[9963,9977]},["terminal",{"sourceInterval":[9963,9969]},"else"],["not",{"sourceInterval":[9970,9977]},["app",{"sourceInterval":[9971,9977]},"idPart",[]]]]],"while":["define",{"sourceInterval":[9982,10005]},null,[],["seq",{"sourceInterval":[9990,10005]},["terminal",{"sourceInterval":[9990,9997]},"while"],["not",{"sourceInterval":[9998,10005]},["app",{"sourceInterval":[9999,10005]},"idPart",[]]]]],"repeat":["define",{"sourceInterval":[10010,10035]},null,[],["seq",{"sourceInterval":[10019,10035]},["terminal",{"sourceInterval":[10019,10027]},"repeat"],["not",{"sourceInterval":[10028,10035]},["app",{"sourceInterval":[10029,10035]},"idPart",[]]]]],"do":["define",{"sourceInterval":[10040,10057]},null,[],["seq",{"sourceInterval":[10045,10057]},["terminal",{"sourceInterval":[10045,10049]},"do"],["not",{"sourceInterval":[10050,10057]},["app",{"sourceInterval":[10051,10057]},"idPart",[]]]]],"until":["define",{"sourceInterval":[10062,10085]},null,[],["seq",{"sourceInterval":[10070,10085]},["terminal",{"sourceInterval":[10070,10077]},"until"],["not",{"sourceInterval":[10078,10085]},["app",{"sourceInterval":[10079,10085]},"idPart",[]]]]],"as":["define",{"sourceInterval":[10090,10107]},null,[],["seq",{"sourceInterval":[10095,10107]},["terminal",{"sourceInterval":[10095,10099]},"as"],["not",{"sourceInterval":[10100,10107]},["app",{"sourceInterval":[10101,10107]},"idPart",[]]]]],"mutates":["define",{"sourceInterval":[10112,10139]},null,[],["seq",{"sourceInterval":[10122,10139]},["terminal",{"sourceInterval":[10122,10131]},"mutates"],["not",{"sourceInterval":[10132,10139]},["app",{"sourceInterval":[10133,10139]},"idPart",[]]]]],"extends":["define",{"sourceInterval":[10144,10171]},null,[],["seq",{"sourceInterval":[10154,10171]},["terminal",{"sourceInterval":[10154,10163]},"extends"],["not",{"sourceInterval":[10164,10171]},["app",{"sourceInterval":[10165,10171]},"idPart",[]]]]],"import":["define",{"sourceInterval":[10176,10201]},null,[],["seq",{"sourceInterval":[10185,10201]},["terminal",{"sourceInterval":[10185,10193]},"import"],["not",{"sourceInterval":[10194,10201]},["app",{"sourceInterval":[10195,10201]},"idPart",[]]]]],"with":["define",{"sourceInterval":[10206,10227]},null,[],["seq",{"sourceInterval":[10213,10227]},["terminal",{"sourceInterval":[10213,10219]},"with"],["not",{"sourceInterval":[10220,10227]},["app",{"sourceInterval":[10221,10227]},"idPart",[]]]]],"trait":["define",{"sourceInterval":[10232,10255]},null,[],["seq",{"sourceInterval":[10240,10255]},["terminal",{"sourceInterval":[10240,10247]},"trait"],["not",{"sourceInterval":[10248,10255]},["app",{"sourceInterval":[10249,10255]},"idPart",[]]]]],"initOf":["define",{"sourceInterval":[10260,10285]},null,[],["seq",{"sourceInterval":[10269,10285]},["terminal",{"sourceInterval":[10269,10277]},"initOf"],["not",{"sourceInterval":[10278,10285]},["app",{"sourceInterval":[10279,10285]},"idPart",[]]]]],"virtual":["define",{"sourceInterval":[10290,10317]},null,[],["seq",{"sourceInterval":[10300,10317]},["terminal",{"sourceInterval":[10300,10309]},"virtual"],["not",{"sourceInterval":[10310,10317]},["app",{"sourceInterval":[10311,10317]},"idPart",[]]]]],"override":["define",{"sourceInterval":[10322,10351]},null,[],["seq",{"sourceInterval":[10333,10351]},["terminal",{"sourceInterval":[10333,10343]},"override"],["not",{"sourceInterval":[10344,10351]},["app",{"sourceInterval":[10345,10351]},"idPart",[]]]]],"inline":["define",{"sourceInterval":[10356,10381]},null,[],["seq",{"sourceInterval":[10365,10381]},["terminal",{"sourceInterval":[10365,10373]},"inline"],["not",{"sourceInterval":[10374,10381]},["app",{"sourceInterval":[10375,10381]},"idPart",[]]]]],"const":["define",{"sourceInterval":[10386,10409]},null,[],["seq",{"sourceInterval":[10394,10409]},["terminal",{"sourceInterval":[10394,10401]},"const"],["not",{"sourceInterval":[10402,10409]},["app",{"sourceInterval":[10403,10409]},"idPart",[]]]]],"abstract":["define",{"sourceInterval":[10414,10443]},null,[],["seq",{"sourceInterval":[10425,10443]},["terminal",{"sourceInterval":[10425,10435]},"abstract"],["not",{"sourceInterval":[10436,10443]},["app",{"sourceInterval":[10437,10443]},"idPart",[]]]]],"nameAttribute":["define",{"sourceInterval":[10467,10490]},null,[],["terminal",{"sourceInterval":[10483,10490]},"@name"]],"reservedWord":["define",{"sourceInterval":[10512,10534]},null,[],["app",{"sourceInterval":[10527,10534]},"keyword",[]]],"space":["extend",{"sourceInterval":[10556,10589]},null,[],["alt",{"sourceInterval":[10565,10589]},["app",{"sourceInterval":[10565,10572]},"comment",[]],["app",{"sourceInterval":[10575,10589]},"lineTerminator",[]]]],"comment":["define",{"sourceInterval":[10594,10640]},null,[],["alt",{"sourceInterval":[10604,10640]},["app",{"sourceInterval":[10604,10620]},"multiLineComment",[]],["app",{"sourceInterval":[10623,10640]},"singleLineComment",[]]]],"lineTerminator":["define",{"sourceInterval":[10645,10695]},null,[],["alt",{"sourceInterval":[10662,10695]},["terminal",{"sourceInterval":[10662,10666]},"\n"],["terminal",{"sourceInterval":[10669,10673]},"\r"],["terminal",{"sourceInterval":[10676,10684]},"\u2028"],["terminal",{"sourceInterval":[10687,10695]},"\u2029"]]],"multiLineComment":["define",{"sourceInterval":[10700,10741]},null,[],["seq",{"sourceInterval":[10719,10741]},["terminal",{"sourceInterval":[10719,10723]},"/*"],["star",{"sourceInterval":[10724,10736]},["seq",{"sourceInterval":[10725,10734]},["not",{"sourceInterval":[10725,10730]},["terminal",{"sourceInterval":[10726,10730]},"*/"]],["app",{"sourceInterval":[10731,10734]},"any",[]]]],["terminal",{"sourceInterval":[10737,10741]},"*/"]]],"singleLineComment":["define",{"sourceInterval":[10746,10793]},null,[],["seq",{"sourceInterval":[10766,10793]},["terminal",{"sourceInterval":[10766,10770]},"//"],["star",{"sourceInterval":[10771,10793]},["seq",{"sourceInterval":[10772,10791]},["not",{"sourceInterval":[10772,10787]},["app",{"sourceInterval":[10773,10787]},"lineTerminator",[]]],["app",{"sourceInterval":[10788,10791]},"any",[]]]]]]}]);module.exports=result; \ No newline at end of file diff --git a/src/test/feature-integer-literals.spec.ts b/src/test/feature-integer-literals.spec.ts index 684785f9c..505197759 100644 --- a/src/test/feature-integer-literals.spec.ts +++ b/src/test/feature-integer-literals.spec.ts @@ -27,5 +27,9 @@ describe('feature-integer-literals', () => { expect(await contract.getBinLiteral1()).toEqual(0b101010n); expect(await contract.getBinLiteral2()).toEqual(-0b101010n); expect(await contract.getBinLiteral3()).toEqual(0b1010100000n); + + expect(await contract.getOctLiteral1()).toEqual(0o123n); + expect(await contract.getOctLiteral2()).toEqual(-0o123n); + expect(await contract.getOctLiteral3()).toEqual(0o1012300000n); }); }); diff --git a/src/test/features/integer-literals.tact b/src/test/features/integer-literals.tact index 9be4fd9ec..65303cbe9 100644 --- a/src/test/features/integer-literals.tact +++ b/src/test/features/integer-literals.tact @@ -43,4 +43,16 @@ contract IntegerLiteralsTester { get fun binLiteral3(): Int { return 0b1_0101_00__000; } + + get fun octLiteral1(): Int { + return 0o123; + } + + get fun octLiteral2(): Int { + return -0o123; + } + + get fun octLiteral3(): Int { + return 0o1_0123_00__000; + } } \ No newline at end of file diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.abi b/src/test/features/output/integer-literals_IntegerLiteralsTester.abi index 43ee3a03b..c1e8e9196 100644 --- a/src/test/features/output/integer-literals_IntegerLiteralsTester.abi +++ b/src/test/features/output/integer-literals_IntegerLiteralsTester.abi @@ -1 +1 @@ -{"name":"IntegerLiteralsTester","types":[{"name":"StateInit","header":null,"fields":[{"name":"code","type":{"kind":"simple","type":"cell","optional":false}},{"name":"data","type":{"kind":"simple","type":"cell","optional":false}}]},{"name":"Context","header":null,"fields":[{"name":"bounced","type":{"kind":"simple","type":"bool","optional":false}},{"name":"sender","type":{"kind":"simple","type":"address","optional":false}},{"name":"value","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"raw","type":{"kind":"simple","type":"slice","optional":false}}]},{"name":"SendParameters","header":null,"fields":[{"name":"bounce","type":{"kind":"simple","type":"bool","optional":false}},{"name":"to","type":{"kind":"simple","type":"address","optional":false}},{"name":"value","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"mode","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"body","type":{"kind":"simple","type":"cell","optional":true}},{"name":"code","type":{"kind":"simple","type":"cell","optional":true}},{"name":"data","type":{"kind":"simple","type":"cell","optional":true}}]}],"receivers":[{"receiver":"internal","message":{"kind":"empty"}}],"getters":[{"name":"decLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"decLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"decLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"hexLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"hexLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"hexLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"binLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"binLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"binLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}}],"errors":{"2":{"message":"Stack undeflow"},"3":{"message":"Stack overflow"},"4":{"message":"Integer overflow"},"5":{"message":"Integer out of expected range"},"6":{"message":"Invalid opcode"},"7":{"message":"Type check error"},"8":{"message":"Cell overflow"},"9":{"message":"Cell underflow"},"10":{"message":"Dictionary error"},"13":{"message":"Out of gas error"},"32":{"message":"Method ID not found"},"34":{"message":"Action is invalid or not supported"},"37":{"message":"Not enough TON"},"38":{"message":"Not enough extra-currencies"},"128":{"message":"Null reference exception"},"129":{"message":"Invalid serialization prefix"},"130":{"message":"Invalid incoming message"},"131":{"message":"Constraints error"},"132":{"message":"Access denied"},"133":{"message":"Contract stopped"},"134":{"message":"Invalid argument"},"135":{"message":"Code of a contract was not found"},"136":{"message":"Invalid address"},"137":{"message":"Masterchain support is not enabled for this contract"}},"interfaces":["org.ton.introspection.v0","org.ton.abi.ipfs.v0","org.ton.deploy.lazy.v0","org.ton.debug.v0","org.ton.chain.workchain.v0"]} \ No newline at end of file +{"name":"IntegerLiteralsTester","types":[{"name":"StateInit","header":null,"fields":[{"name":"code","type":{"kind":"simple","type":"cell","optional":false}},{"name":"data","type":{"kind":"simple","type":"cell","optional":false}}]},{"name":"Context","header":null,"fields":[{"name":"bounced","type":{"kind":"simple","type":"bool","optional":false}},{"name":"sender","type":{"kind":"simple","type":"address","optional":false}},{"name":"value","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"raw","type":{"kind":"simple","type":"slice","optional":false}}]},{"name":"SendParameters","header":null,"fields":[{"name":"bounce","type":{"kind":"simple","type":"bool","optional":false}},{"name":"to","type":{"kind":"simple","type":"address","optional":false}},{"name":"value","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"mode","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"body","type":{"kind":"simple","type":"cell","optional":true}},{"name":"code","type":{"kind":"simple","type":"cell","optional":true}},{"name":"data","type":{"kind":"simple","type":"cell","optional":true}}]}],"receivers":[{"receiver":"internal","message":{"kind":"empty"}}],"getters":[{"name":"decLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"decLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"decLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"hexLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"hexLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"hexLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"binLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"binLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"binLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"octLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"octLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"octLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}}],"errors":{"2":{"message":"Stack undeflow"},"3":{"message":"Stack overflow"},"4":{"message":"Integer overflow"},"5":{"message":"Integer out of expected range"},"6":{"message":"Invalid opcode"},"7":{"message":"Type check error"},"8":{"message":"Cell overflow"},"9":{"message":"Cell underflow"},"10":{"message":"Dictionary error"},"13":{"message":"Out of gas error"},"32":{"message":"Method ID not found"},"34":{"message":"Action is invalid or not supported"},"37":{"message":"Not enough TON"},"38":{"message":"Not enough extra-currencies"},"128":{"message":"Null reference exception"},"129":{"message":"Invalid serialization prefix"},"130":{"message":"Invalid incoming message"},"131":{"message":"Constraints error"},"132":{"message":"Access denied"},"133":{"message":"Contract stopped"},"134":{"message":"Invalid argument"},"135":{"message":"Code of a contract was not found"},"136":{"message":"Invalid address"},"137":{"message":"Masterchain support is not enabled for this contract"}},"interfaces":["org.ton.introspection.v0","org.ton.abi.ipfs.v0","org.ton.deploy.lazy.v0","org.ton.debug.v0","org.ton.chain.workchain.v0"]} \ No newline at end of file diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.code.boc b/src/test/features/output/integer-literals_IntegerLiteralsTester.code.boc index e5eb55d2a..9bd27b7bc 100644 Binary files a/src/test/features/output/integer-literals_IntegerLiteralsTester.code.boc and b/src/test/features/output/integer-literals_IntegerLiteralsTester.code.boc differ diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.code.fc b/src/test/features/output/integer-literals_IntegerLiteralsTester.code.fc index 7f534d048..43847308d 100644 --- a/src/test/features/output/integer-literals_IntegerLiteralsTester.code.fc +++ b/src/test/features/output/integer-literals_IntegerLiteralsTester.code.fc @@ -60,6 +60,21 @@ tuple $IntegerLiteralsTester$_contract_init() impure inline_ref { return ($self, 672); } +(tuple, int) $IntegerLiteralsTester$_fun_octLiteral1(tuple $self) impure inline_ref { + var ($self) = $self; + return ($self, 83); +} + +(tuple, int) $IntegerLiteralsTester$_fun_octLiteral2(tuple $self) impure inline_ref { + var ($self) = $self; + return ($self, (- 83)); +} + +(tuple, int) $IntegerLiteralsTester$_fun_octLiteral3(tuple $self) impure inline_ref { + var ($self) = $self; + return ($self, 136937472); +} + ;; ;; Receivers of a Contract IntegerLiteralsTester ;; @@ -127,6 +142,24 @@ _ %binLiteral3() method_id(124513) { return res; } +_ %octLiteral1() method_id(115972) { + var self = $IntegerLiteralsTester$_contract_load(); + var res = self~$IntegerLiteralsTester$_fun_octLiteral1(); + return res; +} + +_ %octLiteral2() method_id(128359) { + var self = $IntegerLiteralsTester$_contract_load(); + var res = self~$IntegerLiteralsTester$_fun_octLiteral2(); + return res; +} + +_ %octLiteral3() method_id(124230) { + var self = $IntegerLiteralsTester$_contract_load(); + var res = self~$IntegerLiteralsTester$_fun_octLiteral3(); + return res; +} + _ supported_interfaces() method_id { return ( "org.ton.introspection.v0"H >> 128, @@ -138,7 +171,7 @@ _ supported_interfaces() method_id { } _ get_abi_ipfs() method_id { - return "ipfs://QmTVJohQATrpjwL6CWMTknc5g3GMfbPLjwd28io5hPjK1m"; + return "ipfs://QmNsM6dTeFnXrmZ43LGqqPUSo2GCxyd2uh6Au2Yx4hvrwT"; } _ lazy_deployment_completed() method_id { diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.code.fif b/src/test/features/output/integer-literals_IntegerLiteralsTester.code.fif index 9f17ddedf..9190c321a 100644 --- a/src/test/features/output/integer-literals_IntegerLiteralsTester.code.fif +++ b/src/test/features/output/integer-literals_IntegerLiteralsTester.code.fif @@ -12,6 +12,9 @@ PROGRAM{ DECLPROC $IntegerLiteralsTester$_fun_binLiteral1 DECLPROC $IntegerLiteralsTester$_fun_binLiteral2 DECLPROC $IntegerLiteralsTester$_fun_binLiteral3 + DECLPROC $IntegerLiteralsTester$_fun_octLiteral1 + DECLPROC $IntegerLiteralsTester$_fun_octLiteral2 + DECLPROC $IntegerLiteralsTester$_fun_octLiteral3 DECLPROC %$IntegerLiteralsTester$_internal_empty 102042 DECLMETHOD %decLiteral1 114425 DECLMETHOD %decLiteral2 @@ -22,6 +25,9 @@ PROGRAM{ 116259 DECLMETHOD %binLiteral1 128576 DECLMETHOD %binLiteral2 124513 DECLMETHOD %binLiteral3 + 115972 DECLMETHOD %octLiteral1 + 128359 DECLMETHOD %octLiteral2 + 124230 DECLMETHOD %octLiteral3 113617 DECLMETHOD supported_interfaces 121275 DECLMETHOD get_abi_ipfs 115390 DECLMETHOD lazy_deployment_completed @@ -107,6 +113,15 @@ PROGRAM{ $IntegerLiteralsTester$_fun_binLiteral3 PROCREF:<{ 672 PUSHINT }> + $IntegerLiteralsTester$_fun_octLiteral1 PROCREF:<{ + 83 PUSHINT + }> + $IntegerLiteralsTester$_fun_octLiteral2 PROCREF:<{ + -83 PUSHINT + }> + $IntegerLiteralsTester$_fun_octLiteral3 PROCREF:<{ + 136937472 PUSHINT + }> %$IntegerLiteralsTester$_internal_empty PROCINLINE:<{ }> %decLiteral1 PROC:<{ @@ -154,6 +169,21 @@ PROGRAM{ $IntegerLiteralsTester$_fun_binLiteral3 INLINECALLDICT NIP }> + %octLiteral1 PROC:<{ + $IntegerLiteralsTester$_contract_load INLINECALLDICT + $IntegerLiteralsTester$_fun_octLiteral1 INLINECALLDICT + NIP + }> + %octLiteral2 PROC:<{ + $IntegerLiteralsTester$_contract_load INLINECALLDICT + $IntegerLiteralsTester$_fun_octLiteral2 INLINECALLDICT + NIP + }> + %octLiteral3 PROC:<{ + $IntegerLiteralsTester$_contract_load INLINECALLDICT + $IntegerLiteralsTester$_fun_octLiteral3 INLINECALLDICT + NIP + }> supported_interfaces PROC:<{ 123515602279859691144772641439386770278 PUSHINT 209801025412363888721030803524359905849 PUSHINT @@ -162,7 +192,7 @@ PROGRAM{ 209474421377847335869795010607481022628 PUSHINT }> get_abi_ipfs PROC:<{ - x{697066733a2f2f516d54564a6f6851415472706a774c3643574d546b6e63356733474d6662504c6a77643238696f3568506a4b316d} PUSHSLICE + x{697066733a2f2f516d4e734d36645465466e58726d5a34334c4771715055536f324743787964327568364175325978346876727754} PUSHSLICE }> lazy_deployment_completed PROC:<{ c4 PUSH diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.code.rev.fif b/src/test/features/output/integer-literals_IntegerLiteralsTester.code.rev.fif index 9b5b35e85..eb6f60797 100644 --- a/src/test/features/output/integer-literals_IntegerLiteralsTester.code.rev.fif +++ b/src/test/features/output/integer-literals_IntegerLiteralsTester.code.rev.fif @@ -8,9 +8,12 @@ PROGRAM{ DECLPROC supported_interfaces; DECLPROC ?fun_114425; DECLPROC lazy_deployment_completed; + DECLPROC ?fun_115972; DECLPROC ?fun_116259; DECLPROC get_abi_ipfs; + DECLPROC ?fun_124230; DECLPROC ?fun_124513; + DECLPROC ?fun_128359; DECLPROC ?fun_128576; DECLPROC ?fun_ref_026cdd3ff17e82bb; DECLPROC ?fun_ref_26dd4850c2973b9d; @@ -21,9 +24,12 @@ PROGRAM{ DECLPROC ?fun_ref_553f7869b01170d9; DECLPROC ?fun_ref_5bdfe841fa412a76; DECLPROC ?fun_ref_684a8c99db9474e5; + DECLPROC ?fun_ref_7366f20a31928e43; DECLPROC ?fun_ref_7a4cfefa28b39727; DECLPROC ?fun_ref_a05e0042bce184fb; + DECLPROC ?fun_ref_b5b9e67d57f2dcce; DECLPROC ?fun_ref_c0ca23818e24f3c9; + DECLPROC ?fun_ref_f0101fa3fb0bc1f5; recv_internal PROC:<{ s0 s1 XCHG CTOS @@ -113,19 +119,34 @@ PROGRAM{ 1 LDI s0 s1 XCHG }> + ?fun_115972 PROC:<{ + ?fun_ref_a05e0042bce184fb INLINECALLDICT + ?fun_ref_7366f20a31928e43 INLINECALLDICT + s1 POP + }> ?fun_116259 PROC:<{ ?fun_ref_a05e0042bce184fb INLINECALLDICT ?fun_ref_026cdd3ff17e82bb INLINECALLDICT s1 POP }> get_abi_ipfs PROC:<{ - x{697066733A2F2F516D54564A6F6851415472706A774C3643574D546B6E63356733474D6662504C6A77643238696F3568506A4B316D82_} PUSHSLICE + x{697066733A2F2F516D4E734D36645465466E58726D5A34334C4771715055536F32474378796432756836417532597834687672775482_} PUSHSLICE + }> + ?fun_124230 PROC:<{ + ?fun_ref_a05e0042bce184fb INLINECALLDICT + ?fun_ref_b5b9e67d57f2dcce INLINECALLDICT + s1 POP }> ?fun_124513 PROC:<{ ?fun_ref_a05e0042bce184fb INLINECALLDICT ?fun_ref_5bdfe841fa412a76 INLINECALLDICT s1 POP }> + ?fun_128359 PROC:<{ + ?fun_ref_a05e0042bce184fb INLINECALLDICT + ?fun_ref_f0101fa3fb0bc1f5 INLINECALLDICT + s1 POP + }> ?fun_128576 PROC:<{ ?fun_ref_a05e0042bce184fb INLINECALLDICT ?fun_ref_4065f3bb1951fe13 INLINECALLDICT @@ -183,6 +204,9 @@ PROGRAM{ ?fun_ref_684a8c99db9474e5 PROCREF:<{ 69024612352 PUSHINT }> + ?fun_ref_7366f20a31928e43 PROCREF:<{ + 83 PUSHINT + }> ?fun_ref_7a4cfefa28b39727 PROCREF:<{ 291 PUSHINT }> @@ -205,7 +229,13 @@ PROGRAM{ 137 THROWIFNOT ?fun_ref_c0ca23818e24f3c9 INLINECALLDICT }> + ?fun_ref_b5b9e67d57f2dcce PROCREF:<{ + 136937472 PUSHINT + }> ?fun_ref_c0ca23818e24f3c9 PROCREF:<{ NULL }> + ?fun_ref_f0101fa3fb0bc1f5 PROCREF:<{ + -83 PUSHINT + }> }END>c \ No newline at end of file diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.headers.fc b/src/test/features/output/integer-literals_IntegerLiteralsTester.headers.fc index 385aad478..1e13de2f8 100644 --- a/src/test/features/output/integer-literals_IntegerLiteralsTester.headers.fc +++ b/src/test/features/output/integer-literals_IntegerLiteralsTester.headers.fc @@ -41,3 +41,12 @@ tuple $IntegerLiteralsTester$_contract_load() impure inline_ref; ;; $IntegerLiteralsTester$_fun_binLiteral3 (tuple, int) $IntegerLiteralsTester$_fun_binLiteral3(tuple $self) impure inline_ref; + +;; $IntegerLiteralsTester$_fun_octLiteral1 +(tuple, int) $IntegerLiteralsTester$_fun_octLiteral1(tuple $self) impure inline_ref; + +;; $IntegerLiteralsTester$_fun_octLiteral2 +(tuple, int) $IntegerLiteralsTester$_fun_octLiteral2(tuple $self) impure inline_ref; + +;; $IntegerLiteralsTester$_fun_octLiteral3 +(tuple, int) $IntegerLiteralsTester$_fun_octLiteral3(tuple $self) impure inline_ref; diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.md b/src/test/features/output/integer-literals_IntegerLiteralsTester.md index 87a39d0a4..d6658a46c 100644 --- a/src/test/features/output/integer-literals_IntegerLiteralsTester.md +++ b/src/test/features/output/integer-literals_IntegerLiteralsTester.md @@ -1,6 +1,6 @@ # TACT Compilation Report Contract: IntegerLiteralsTester -BOC Size: 545 bytes +BOC Size: 607 bytes # Types Total Types: 3 @@ -18,7 +18,7 @@ TLB: `_ bounce:bool to:address value:int257 mode:int257 body:Maybe ^cell code:Ma Signature: `SendParameters{bounce:bool,to:address,value:int257,mode:int257,body:Maybe ^cell,code:Maybe ^cell,data:Maybe ^cell}` # Get Methods -Total Get Methods: 9 +Total Get Methods: 12 ## decLiteral1 @@ -38,6 +38,12 @@ Total Get Methods: 9 ## binLiteral3 +## octLiteral1 + +## octLiteral2 + +## octLiteral3 + # Error Codes 2: Stack undeflow 3: Stack overflow diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.pkg b/src/test/features/output/integer-literals_IntegerLiteralsTester.pkg index 91f239db9..84bd8cca5 100644 --- a/src/test/features/output/integer-literals_IntegerLiteralsTester.pkg +++ b/src/test/features/output/integer-literals_IntegerLiteralsTester.pkg @@ -1 +1 @@ -{"name":"IntegerLiteralsTester","code":"te6ccgECJgEAAhUAART/APSkE/S88sgLAQIBYgIDApLQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxZ2zzy4IIwyPhDAcx/AcoAye1UIwQCASAFBgA8AZIwf+BwIddJwh+VMCDXCx/ewAAB10nBIbCRf+BwAgFIBwgCASAODwIBIAkKAg+1Qttnm2eGMCMNAg+ylTbPNs8MYCMLAg+ynXbPNs8MYCMMAA6CGBASMAAAAAaB/t0ABoEBIwIBIBARAgEgGRoCD7XTW2ebZ4YwIxICASATFAAEgHsCD7O2Ns82zwxgIxUCAVgWFwAMghA8VnjgALir0YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopAIOqvnbPNs8MSMYAASAhQIBIBscAgEgICECAUgdHgB1sm7jQ1aXBmczovL1FtVFZKb2hRQVRycGp3TDZDV01Ua25jNWczR01mYlBMandkMjhpbzVoUGpLMW2CAAEKq+7UTQ0gABAg6qI9s82zwxIx8ABIAqAg+xmHbPNs8MYCMiAg+xkDbPNs8MYCMkAAaBAqABNO1E0NQB+GPSADCRbeD4KNcLCoMJuvLgids8JQAEgNYAAm0=","abi":"{\"name\":\"IntegerLiteralsTester\",\"types\":[{\"name\":\"StateInit\",\"header\":null,\"fields\":[{\"name\":\"code\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":false}},{\"name\":\"data\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":false}}]},{\"name\":\"Context\",\"header\":null,\"fields\":[{\"name\":\"bounced\",\"type\":{\"kind\":\"simple\",\"type\":\"bool\",\"optional\":false}},{\"name\":\"sender\",\"type\":{\"kind\":\"simple\",\"type\":\"address\",\"optional\":false}},{\"name\":\"value\",\"type\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"raw\",\"type\":{\"kind\":\"simple\",\"type\":\"slice\",\"optional\":false}}]},{\"name\":\"SendParameters\",\"header\":null,\"fields\":[{\"name\":\"bounce\",\"type\":{\"kind\":\"simple\",\"type\":\"bool\",\"optional\":false}},{\"name\":\"to\",\"type\":{\"kind\":\"simple\",\"type\":\"address\",\"optional\":false}},{\"name\":\"value\",\"type\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"mode\",\"type\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"body\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":true}},{\"name\":\"code\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":true}},{\"name\":\"data\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":true}}]}],\"receivers\":[{\"receiver\":\"internal\",\"message\":{\"kind\":\"empty\"}}],\"getters\":[{\"name\":\"decLiteral1\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"decLiteral2\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"decLiteral3\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"hexLiteral1\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"hexLiteral2\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"hexLiteral3\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"binLiteral1\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"binLiteral2\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"binLiteral3\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}}],\"errors\":{\"2\":{\"message\":\"Stack undeflow\"},\"3\":{\"message\":\"Stack overflow\"},\"4\":{\"message\":\"Integer overflow\"},\"5\":{\"message\":\"Integer out of expected range\"},\"6\":{\"message\":\"Invalid opcode\"},\"7\":{\"message\":\"Type check error\"},\"8\":{\"message\":\"Cell overflow\"},\"9\":{\"message\":\"Cell underflow\"},\"10\":{\"message\":\"Dictionary error\"},\"13\":{\"message\":\"Out of gas error\"},\"32\":{\"message\":\"Method ID not found\"},\"34\":{\"message\":\"Action is invalid or not supported\"},\"37\":{\"message\":\"Not enough TON\"},\"38\":{\"message\":\"Not enough extra-currencies\"},\"128\":{\"message\":\"Null reference exception\"},\"129\":{\"message\":\"Invalid serialization prefix\"},\"130\":{\"message\":\"Invalid incoming message\"},\"131\":{\"message\":\"Constraints error\"},\"132\":{\"message\":\"Access denied\"},\"133\":{\"message\":\"Contract stopped\"},\"134\":{\"message\":\"Invalid argument\"},\"135\":{\"message\":\"Code of a contract was not found\"},\"136\":{\"message\":\"Invalid address\"},\"137\":{\"message\":\"Masterchain support is not enabled for this contract\"}},\"interfaces\":[\"org.ton.introspection.v0\",\"org.ton.abi.ipfs.v0\",\"org.ton.deploy.lazy.v0\",\"org.ton.debug.v0\",\"org.ton.chain.workchain.v0\"]}","init":{"kind":"direct","args":[],"prefix":{"bits":1,"value":0},"deployment":{"kind":"system-cell","system":"te6cckECKAEAAh8AAQHAAQEFobyzAgEU/wD0pBP0vPLICwMCAWIkBAIBIBwFAgEgEgYCASAMBwIBIAoIAg+xkDbPNs8MYCYJAASA1gIPsZh2zzbPDGAmCwAGgQKgAgEgDg0AdbJu40NWlwZnM6Ly9RbVRWSm9oUUFUcnBqd0w2Q1dNVGtuYzVnM0dNZmJQTGp3ZDI4aW81aFBqSzFtggAgFIEQ8CDqoj2zzbPDEmEAAEgCoAEKq+7UTQ0gABAgEgGhMCASAYFAIBWBcVAg6q+ds82zwxJhYABICFALir0YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopAIPs7Y2zzbPDGAmGQAMghA8VnjgAg+101tnm2eGMCYbAASAewIBSB8dAg+1Qttnm2eGMCYeAAaBASMCASAiIAIPsp12zzbPDGAmIQAGgf7dAg+ylTbPNs8MYCYjAA6CGBASMAAAApLQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxZ2zzy4IIwyPhDAcx/AcoAye1UJiUAPAGSMH/gcCHXScIflTAg1wsf3sAAAddJwSGwkX/gcAE07UTQ1AH4Y9IAMJFt4Pgo1wsKgwm68uCJ2zwnAAJtwEbooQ=="}},"sources":{"src/test/features/integer-literals.tact":"Y29udHJhY3QgSW50ZWdlckxpdGVyYWxzVGVzdGVyIHsKCiAgICBpbml0KCkgewogICAgICAgIAogICAgfQogICAgCiAgICByZWNlaXZlKCkgewogICAgICAgIC8vIERlcGxveQogICAgfQoKICAgIGdldCBmdW4gZGVjTGl0ZXJhbDEoKTogSW50IHsKICAgICAgICByZXR1cm4gMTIzOwogICAgfQoKICAgIGdldCBmdW4gZGVjTGl0ZXJhbDIoKTogSW50IHsKICAgICAgICByZXR1cm4gLTEyMzsKICAgIH0KCiAgICBnZXQgZnVuIGRlY0xpdGVyYWwzKCk6IEludCB7CiAgICAgICAgcmV0dXJuIDFfMDEyM18wMF9fMDAwOwogICAgfQoKICAgIGdldCBmdW4gaGV4TGl0ZXJhbDEoKTogSW50IHsKICAgICAgICByZXR1cm4gMHgxMjM7CiAgICB9CgogICAgZ2V0IGZ1biBoZXhMaXRlcmFsMigpOiBJbnQgewogICAgICAgIHJldHVybiAtMHgxMjM7CiAgICB9CgogICAgZ2V0IGZ1biBoZXhMaXRlcmFsMygpOiBJbnQgewogICAgICAgIHJldHVybiAweDFfMDEyM18wMF9fMDAwOwogICAgfQoKICAgIGdldCBmdW4gYmluTGl0ZXJhbDEoKTogSW50IHsKICAgICAgICByZXR1cm4gMGIxMDEwMTA7CiAgICB9CgogICAgZ2V0IGZ1biBiaW5MaXRlcmFsMigpOiBJbnQgewogICAgICAgIHJldHVybiAtMGIxMDEwMTA7CiAgICB9CgogICAgZ2V0IGZ1biBiaW5MaXRlcmFsMygpOiBJbnQgewogICAgICAgIHJldHVybiAwYjFfMDEwMV8wMF9fMDAwOwogICAgfQp9"},"compiler":{"name":"tact","version":"invalid","parameters":"{\"entrypoint\":\"./src/test/features/integer-literals.tact\",\"options\":{\"debug\":true}}"}} \ No newline at end of file +{"name":"IntegerLiteralsTester","code":"te6ccgECLwEAAlMAART/APSkE/S88sgLAQIBYgIDApLQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxZ2zzy4IIwyPhDAcx/AcoAye1ULAQCASAFBgA8AZIwf+BwIddJwh+VMCDXCx/ewAAB10nBIbCRf+BwAgFIBwgCASAODwIBIAkKAg+1Qttnm2eGMCwNAg+ylTbPNs8MYCwLAg+ynXbPNs8MYCwMAA6CGBASMAAAAAaB/t0ABoEBIwIBIBARAgEgGRoCD7XTW2ebZ4YwLBICASATFAAEgHsCD7O2Ns82zwxgLBUCAVgWFwAMghA8VnjgALir0YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopAIOqvnbPNs8MSwYAASAhQIBIBscAgEgIyQCAUgdHgB1sm7jQ1aXBmczovL1FtTnNNNmRUZUZuWHJtWjQzTEdxcVBVU28yR0N4eWQydWg2QXUyWXg0aHZyd1SCAAEKq+7UTQ0gABAgEgHyACDaYJtnm2eGMsIQINpEe2ebZ4YywiAASAUwAEgCoCAWYlJgIBZikqAg2mjbZ5tnhjLCcCDaTDtnm2eGMsKAAMghAIKYAAAAaBAqACDabPtnm2eGMsKwINpIG2ebZ4YywtAASArQE07UTQ1AH4Y9IAMJFt4Pgo1wsKgwm68uCJ2zwuAASA1gACbQ==","abi":"{\"name\":\"IntegerLiteralsTester\",\"types\":[{\"name\":\"StateInit\",\"header\":null,\"fields\":[{\"name\":\"code\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":false}},{\"name\":\"data\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":false}}]},{\"name\":\"Context\",\"header\":null,\"fields\":[{\"name\":\"bounced\",\"type\":{\"kind\":\"simple\",\"type\":\"bool\",\"optional\":false}},{\"name\":\"sender\",\"type\":{\"kind\":\"simple\",\"type\":\"address\",\"optional\":false}},{\"name\":\"value\",\"type\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"raw\",\"type\":{\"kind\":\"simple\",\"type\":\"slice\",\"optional\":false}}]},{\"name\":\"SendParameters\",\"header\":null,\"fields\":[{\"name\":\"bounce\",\"type\":{\"kind\":\"simple\",\"type\":\"bool\",\"optional\":false}},{\"name\":\"to\",\"type\":{\"kind\":\"simple\",\"type\":\"address\",\"optional\":false}},{\"name\":\"value\",\"type\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"mode\",\"type\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"body\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":true}},{\"name\":\"code\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":true}},{\"name\":\"data\",\"type\":{\"kind\":\"simple\",\"type\":\"cell\",\"optional\":true}}]}],\"receivers\":[{\"receiver\":\"internal\",\"message\":{\"kind\":\"empty\"}}],\"getters\":[{\"name\":\"decLiteral1\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"decLiteral2\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"decLiteral3\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"hexLiteral1\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"hexLiteral2\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"hexLiteral3\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"binLiteral1\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"binLiteral2\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"binLiteral3\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"octLiteral1\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"octLiteral2\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}},{\"name\":\"octLiteral3\",\"arguments\":[],\"returnType\":{\"kind\":\"simple\",\"type\":\"int\",\"optional\":false,\"format\":257}}],\"errors\":{\"2\":{\"message\":\"Stack undeflow\"},\"3\":{\"message\":\"Stack overflow\"},\"4\":{\"message\":\"Integer overflow\"},\"5\":{\"message\":\"Integer out of expected range\"},\"6\":{\"message\":\"Invalid opcode\"},\"7\":{\"message\":\"Type check error\"},\"8\":{\"message\":\"Cell overflow\"},\"9\":{\"message\":\"Cell underflow\"},\"10\":{\"message\":\"Dictionary error\"},\"13\":{\"message\":\"Out of gas error\"},\"32\":{\"message\":\"Method ID not found\"},\"34\":{\"message\":\"Action is invalid or not supported\"},\"37\":{\"message\":\"Not enough TON\"},\"38\":{\"message\":\"Not enough extra-currencies\"},\"128\":{\"message\":\"Null reference exception\"},\"129\":{\"message\":\"Invalid serialization prefix\"},\"130\":{\"message\":\"Invalid incoming message\"},\"131\":{\"message\":\"Constraints error\"},\"132\":{\"message\":\"Access denied\"},\"133\":{\"message\":\"Contract stopped\"},\"134\":{\"message\":\"Invalid argument\"},\"135\":{\"message\":\"Code of a contract was not found\"},\"136\":{\"message\":\"Invalid address\"},\"137\":{\"message\":\"Masterchain support is not enabled for this contract\"}},\"interfaces\":[\"org.ton.introspection.v0\",\"org.ton.abi.ipfs.v0\",\"org.ton.deploy.lazy.v0\",\"org.ton.debug.v0\",\"org.ton.chain.workchain.v0\"]}","init":{"kind":"direct","args":[],"prefix":{"bits":1,"value":0},"deployment":{"kind":"system-cell","system":"te6cckECMQEAAl0AAQHAAQEFobyzAgEU/wD0pBP0vPLICwMCAWItBAIBICUFAgEgGwYCASASBwIBIA0IAgFmCwkCDaSBtnm2eGMvCgAEgNYCDabPtnm2eGMvDAAEgK0CAWYQDgINpMO2ebZ4Yy8PAAaBAqACDaaNtnm2eGMvEQAMghAIKYAAAgEgFBMAdbJu40NWlwZnM6Ly9RbU5zTTZkVGVGblhybVo0M0xHcXFQVVNvMkdDeHlkMnVoNkF1Mll4NGh2cndUggAgFIGhUCASAYFgINpEe2ebZ4Yy8XAASAKgINpgm2ebZ4Yy8ZAASAUwAQqr7tRNDSAAECASAjHAIBICEdAgFYIB4CDqr52zzbPDEvHwAEgIUAuKvRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikAg+ztjbPNs8MYC8iAAyCEDxWeOACD7XTW2ebZ4YwLyQABIB7AgFIKCYCD7VC22ebZ4YwLycABoEBIwIBICspAg+ynXbPNs8MYC8qAAaB/t0CD7KVNs82zwxgLywADoIYEBIwAAACktAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFnbPPLggjDI+EMBzH8BygDJ7VQvLgA8AZIwf+BwIddJwh+VMCDXCx/ewAAB10nBIbCRf+BwATTtRNDUAfhj0gAwkW3g+CjXCwqDCbry4InbPDAAAm3lCWAT"}},"sources":{"src/test/features/integer-literals.tact":"Y29udHJhY3QgSW50ZWdlckxpdGVyYWxzVGVzdGVyIHsKCiAgICBpbml0KCkgewogICAgICAgIAogICAgfQogICAgCiAgICByZWNlaXZlKCkgewogICAgICAgIC8vIERlcGxveQogICAgfQoKICAgIGdldCBmdW4gZGVjTGl0ZXJhbDEoKTogSW50IHsKICAgICAgICByZXR1cm4gMTIzOwogICAgfQoKICAgIGdldCBmdW4gZGVjTGl0ZXJhbDIoKTogSW50IHsKICAgICAgICByZXR1cm4gLTEyMzsKICAgIH0KCiAgICBnZXQgZnVuIGRlY0xpdGVyYWwzKCk6IEludCB7CiAgICAgICAgcmV0dXJuIDFfMDEyM18wMF9fMDAwOwogICAgfQoKICAgIGdldCBmdW4gaGV4TGl0ZXJhbDEoKTogSW50IHsKICAgICAgICByZXR1cm4gMHgxMjM7CiAgICB9CgogICAgZ2V0IGZ1biBoZXhMaXRlcmFsMigpOiBJbnQgewogICAgICAgIHJldHVybiAtMHgxMjM7CiAgICB9CgogICAgZ2V0IGZ1biBoZXhMaXRlcmFsMygpOiBJbnQgewogICAgICAgIHJldHVybiAweDFfMDEyM18wMF9fMDAwOwogICAgfQoKICAgIGdldCBmdW4gYmluTGl0ZXJhbDEoKTogSW50IHsKICAgICAgICByZXR1cm4gMGIxMDEwMTA7CiAgICB9CgogICAgZ2V0IGZ1biBiaW5MaXRlcmFsMigpOiBJbnQgewogICAgICAgIHJldHVybiAtMGIxMDEwMTA7CiAgICB9CgogICAgZ2V0IGZ1biBiaW5MaXRlcmFsMygpOiBJbnQgewogICAgICAgIHJldHVybiAwYjFfMDEwMV8wMF9fMDAwOwogICAgfQoKICAgIGdldCBmdW4gb2N0TGl0ZXJhbDEoKTogSW50IHsKICAgICAgICByZXR1cm4gMG8xMjM7CiAgICB9CgogICAgZ2V0IGZ1biBvY3RMaXRlcmFsMigpOiBJbnQgewogICAgICAgIHJldHVybiAtMG8xMjM7CiAgICB9CgogICAgZ2V0IGZ1biBvY3RMaXRlcmFsMygpOiBJbnQgewogICAgICAgIHJldHVybiAwbzFfMDEyM18wMF9fMDAwOwogICAgfQp9"},"compiler":{"name":"tact","version":"invalid","parameters":"{\"entrypoint\":\"./src/test/features/integer-literals.tact\",\"options\":{\"debug\":true}}"}} \ No newline at end of file diff --git a/src/test/features/output/integer-literals_IntegerLiteralsTester.ts b/src/test/features/output/integer-literals_IntegerLiteralsTester.ts index 06e81c9de..c28fe9212 100644 --- a/src/test/features/output/integer-literals_IntegerLiteralsTester.ts +++ b/src/test/features/output/integer-literals_IntegerLiteralsTester.ts @@ -201,8 +201,8 @@ function initIntegerLiteralsTester_init_args(src: IntegerLiteralsTester_init_arg } async function IntegerLiteralsTester_init() { - const __code = Cell.fromBase64('te6ccgECJgEAAhUAART/APSkE/S88sgLAQIBYgIDApLQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxZ2zzy4IIwyPhDAcx/AcoAye1UIwQCASAFBgA8AZIwf+BwIddJwh+VMCDXCx/ewAAB10nBIbCRf+BwAgFIBwgCASAODwIBIAkKAg+1Qttnm2eGMCMNAg+ylTbPNs8MYCMLAg+ynXbPNs8MYCMMAA6CGBASMAAAAAaB/t0ABoEBIwIBIBARAgEgGRoCD7XTW2ebZ4YwIxICASATFAAEgHsCD7O2Ns82zwxgIxUCAVgWFwAMghA8VnjgALir0YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopAIOqvnbPNs8MSMYAASAhQIBIBscAgEgICECAUgdHgB1sm7jQ1aXBmczovL1FtVFZKb2hRQVRycGp3TDZDV01Ua25jNWczR01mYlBMandkMjhpbzVoUGpLMW2CAAEKq+7UTQ0gABAg6qI9s82zwxIx8ABIAqAg+xmHbPNs8MYCMiAg+xkDbPNs8MYCMkAAaBAqABNO1E0NQB+GPSADCRbeD4KNcLCoMJuvLgids8JQAEgNYAAm0='); - const __system = Cell.fromBase64('te6cckECKAEAAh8AAQHAAQEFobyzAgEU/wD0pBP0vPLICwMCAWIkBAIBIBwFAgEgEgYCASAMBwIBIAoIAg+xkDbPNs8MYCYJAASA1gIPsZh2zzbPDGAmCwAGgQKgAgEgDg0AdbJu40NWlwZnM6Ly9RbVRWSm9oUUFUcnBqd0w2Q1dNVGtuYzVnM0dNZmJQTGp3ZDI4aW81aFBqSzFtggAgFIEQ8CDqoj2zzbPDEmEAAEgCoAEKq+7UTQ0gABAgEgGhMCASAYFAIBWBcVAg6q+ds82zwxJhYABICFALir0YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopAIPs7Y2zzbPDGAmGQAMghA8VnjgAg+101tnm2eGMCYbAASAewIBSB8dAg+1Qttnm2eGMCYeAAaBASMCASAiIAIPsp12zzbPDGAmIQAGgf7dAg+ylTbPNs8MYCYjAA6CGBASMAAAApLQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxZ2zzy4IIwyPhDAcx/AcoAye1UJiUAPAGSMH/gcCHXScIflTAg1wsf3sAAAddJwSGwkX/gcAE07UTQ1AH4Y9IAMJFt4Pgo1wsKgwm68uCJ2zwnAAJtwEbooQ=='); + const __code = Cell.fromBase64('te6ccgECLwEAAlMAART/APSkE/S88sgLAQIBYgIDApLQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxZ2zzy4IIwyPhDAcx/AcoAye1ULAQCASAFBgA8AZIwf+BwIddJwh+VMCDXCx/ewAAB10nBIbCRf+BwAgFIBwgCASAODwIBIAkKAg+1Qttnm2eGMCwNAg+ylTbPNs8MYCwLAg+ynXbPNs8MYCwMAA6CGBASMAAAAAaB/t0ABoEBIwIBIBARAgEgGRoCD7XTW2ebZ4YwLBICASATFAAEgHsCD7O2Ns82zwxgLBUCAVgWFwAMghA8VnjgALir0YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopAIOqvnbPNs8MSwYAASAhQIBIBscAgEgIyQCAUgdHgB1sm7jQ1aXBmczovL1FtTnNNNmRUZUZuWHJtWjQzTEdxcVBVU28yR0N4eWQydWg2QXUyWXg0aHZyd1SCAAEKq+7UTQ0gABAgEgHyACDaYJtnm2eGMsIQINpEe2ebZ4YywiAASAUwAEgCoCAWYlJgIBZikqAg2mjbZ5tnhjLCcCDaTDtnm2eGMsKAAMghAIKYAAAAaBAqACDabPtnm2eGMsKwINpIG2ebZ4YywtAASArQE07UTQ1AH4Y9IAMJFt4Pgo1wsKgwm68uCJ2zwuAASA1gACbQ=='); + const __system = Cell.fromBase64('te6cckECMQEAAl0AAQHAAQEFobyzAgEU/wD0pBP0vPLICwMCAWItBAIBICUFAgEgGwYCASASBwIBIA0IAgFmCwkCDaSBtnm2eGMvCgAEgNYCDabPtnm2eGMvDAAEgK0CAWYQDgINpMO2ebZ4Yy8PAAaBAqACDaaNtnm2eGMvEQAMghAIKYAAAgEgFBMAdbJu40NWlwZnM6Ly9RbU5zTTZkVGVGblhybVo0M0xHcXFQVVNvMkdDeHlkMnVoNkF1Mll4NGh2cndUggAgFIGhUCASAYFgINpEe2ebZ4Yy8XAASAKgINpgm2ebZ4Yy8ZAASAUwAQqr7tRNDSAAECASAjHAIBICEdAgFYIB4CDqr52zzbPDEvHwAEgIUAuKvRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikAg+ztjbPNs8MYC8iAAyCEDxWeOACD7XTW2ebZ4YwLyQABIB7AgFIKCYCD7VC22ebZ4YwLycABoEBIwIBICspAg+ynXbPNs8MYC8qAAaB/t0CD7KVNs82zwxgLywADoIYEBIwAAACktAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFnbPPLggjDI+EMBzH8BygDJ7VQvLgA8AZIwf+BwIddJwh+VMCDXCx/ewAAB10nBIbCRf+BwATTtRNDUAfhj0gAwkW3g+CjXCwqDCbry4InbPDAAAm3lCWAT'); let builder = beginCell(); builder.storeRef(__system); builder.storeUint(0, 1); @@ -254,6 +254,9 @@ const IntegerLiteralsTester_getters: ABIGetter[] = [ {"name":"binLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}}, {"name":"binLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}}, {"name":"binLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}}, + {"name":"octLiteral1","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}}, + {"name":"octLiteral2","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}}, + {"name":"octLiteral3","arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}}, ] const IntegerLiteralsTester_receivers: ABIReceiver[] = [ @@ -365,4 +368,25 @@ export class IntegerLiteralsTester implements Contract { return result; } + async getOctLiteral1(provider: ContractProvider) { + let builder = new TupleBuilder(); + let source = (await provider.get('octLiteral1', builder.build())).stack; + let result = source.readBigNumber(); + return result; + } + + async getOctLiteral2(provider: ContractProvider) { + let builder = new TupleBuilder(); + let source = (await provider.get('octLiteral2', builder.build())).stack; + let result = source.readBigNumber(); + return result; + } + + async getOctLiteral3(provider: ContractProvider) { + let builder = new TupleBuilder(); + let source = (await provider.get('octLiteral3', builder.build())).stack; + let result = source.readBigNumber(); + return result; + } + } \ No newline at end of file