From 823f2d78040e888bfa542e52e61d31df6721f51e Mon Sep 17 00:00:00 2001
From: jespergravgaard
Date: Sat, 8 May 2021 13:12:04 +0200
Subject: [PATCH] Working on type parser rewrite
---
.../model/statements/StatementSource.java | 6 +
.../kickc/model/symbols/Procedure.java | 27 +-
.../kickc/model/types/SymbolType.java | 2 +
.../model/types/SymbolTypeProcedure.java | 32 +-
.../dk/camelot64/kickc/parser/KickCParser.g4 | 8 +-
.../camelot64/kickc/parser/KickCParser.interp | 3 +-
.../camelot64/kickc/parser/KickCParser.java | 2132 ++++++++---------
.../kickc/parser/KickCParserBaseListener.java | 52 +-
.../kickc/parser/KickCParserBaseVisitor.java | 29 +-
.../kickc/parser/KickCParserListener.java | 70 +-
.../kickc/parser/KickCParserVisitor.java | 38 +-
.../Pass0GenerateStatementSequence.java | 257 +-
.../kickc/test/TestProgramsFast.java | 37 +-
src/test/kc/procedure-declare-0.c | 10 +-
src/test/kc/procedure-declare-1.c | 9 +
src/test/kc/procedure-declare-2.c | 11 +
src/test/kc/procedure-declare-3.c | 14 +
src/test/kc/procedure-declare-4.c | 19 +
src/test/kc/procedure-declare-5.c | 13 +
src/test/kc/procedure-declare-6.c | 14 +
src/test/kc/procedure-declare-7.c | 17 +
src/test/kc/procedure-declare-8.c | 20 +
22 files changed, 1438 insertions(+), 1382 deletions(-)
create mode 100644 src/test/kc/procedure-declare-1.c
create mode 100644 src/test/kc/procedure-declare-2.c
create mode 100644 src/test/kc/procedure-declare-3.c
create mode 100644 src/test/kc/procedure-declare-4.c
create mode 100644 src/test/kc/procedure-declare-5.c
create mode 100644 src/test/kc/procedure-declare-6.c
create mode 100644 src/test/kc/procedure-declare-7.c
create mode 100644 src/test/kc/procedure-declare-8.c
diff --git a/src/main/java/dk/camelot64/kickc/model/statements/StatementSource.java b/src/main/java/dk/camelot64/kickc/model/statements/StatementSource.java
index f676a657d..8ff63fff0 100644
--- a/src/main/java/dk/camelot64/kickc/model/statements/StatementSource.java
+++ b/src/main/java/dk/camelot64/kickc/model/statements/StatementSource.java
@@ -150,17 +150,23 @@ public class StatementSource implements Serializable {
}
public static StatementSource procedureBegin(KickCParser.DeclFunctionContext ctx) {
+ return new StatementSource(ctx);
+ /*
final KickCParser.DeclFunctionBodyContext bodyCtx = ctx.declFunctionBody();
ParseTree nodeStart = bodyCtx;
ParseTree nodeStop = bodyCtx.getChild(bodyCtx.getChildCount() - 4);
return new StatementSource(nodeStart, nodeStop);
+ */
}
public static StatementSource procedureEnd(KickCParser.DeclFunctionContext ctx) {
+ return new StatementSource(ctx);
+ /*
final KickCParser.DeclFunctionBodyContext bodyCtx = ctx.declFunctionBody();
ParseTree nodeStart = bodyCtx.getChild(bodyCtx.getChildCount() - 1);
ParseTree nodeStop = bodyCtx;
return new StatementSource(nodeStart, nodeStop);
+ */
}
public static StatementSource asm(KickCParser.StmtAsmContext ctx) {
diff --git a/src/main/java/dk/camelot64/kickc/model/symbols/Procedure.java b/src/main/java/dk/camelot64/kickc/model/symbols/Procedure.java
index dbfd4a6b8..259f17701 100644
--- a/src/main/java/dk/camelot64/kickc/model/symbols/Procedure.java
+++ b/src/main/java/dk/camelot64/kickc/model/symbols/Procedure.java
@@ -8,13 +8,16 @@ import dk.camelot64.kickc.model.values.ProcedureRef;
import dk.camelot64.kickc.passes.Pass1ByteXIntrinsicRewrite;
import dk.camelot64.kickc.passes.Pass1PrintfIntrinsicRewrite;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Objects;
/** Symbol describing a procedure/function */
public class Procedure extends Scope {
/** The return type. {@link SymbolType#VOID} if the procedure does not return a value. */
- private final SymbolType returnType;
+ private final SymbolTypeProcedure procedureType;
/** The names of the parameters of the procedure. */
private List parameterNames;
/** True if the parameter list ends with a variable length parameter list "..." */
@@ -78,9 +81,9 @@ public class Procedure extends Scope {
/** The calling convention used for this procedure. */
private CallingConvention callingConvention;
- public Procedure(String name, SymbolType returnType, Scope parentScope, String codeSegment, String dataSegment, CallingConvention callingConvention) {
+ public Procedure(String name, SymbolTypeProcedure procedureType, Scope parentScope, String codeSegment, String dataSegment, CallingConvention callingConvention) {
super(name, parentScope, dataSegment);
- this.returnType = returnType;
+ this.procedureType = procedureType;
this.declaredInline = false;
this.interruptType = null;
this.comments = new ArrayList<>();
@@ -127,7 +130,7 @@ public class Procedure extends Scope {
}
public SymbolType getReturnType() {
- return returnType;
+ return procedureType.getReturnType();
}
public List getParameters() {
@@ -172,7 +175,7 @@ public class Procedure extends Scope {
@Override
public SymbolType getType() {
- return new SymbolTypeProcedure(returnType);
+ return procedureType;
}
public boolean isDeclaredInline() {
@@ -245,7 +248,7 @@ public class Procedure extends Scope {
if(interruptType != null) {
res.append("__interrupt(").append(interruptType).append(") ");
}
- res.append(returnType.getTypeName()).append(" ").append(getFullName()).append("(");
+ res.append(getReturnType().getTypeName()).append(" ").append(getFullName()).append("(");
boolean first = true;
if(parameterNames != null) {
for(Variable parameter : getParameters()) {
@@ -271,18 +274,22 @@ public class Procedure extends Scope {
if(o == null || getClass() != o.getClass()) return false;
if(!super.equals(o)) return false;
Procedure procedure = (Procedure) o;
- return declaredInline == procedure.declaredInline &&
- Objects.equals(returnType, procedure.returnType) &&
+ return variableLengthParameterList == procedure.variableLengthParameterList &&
+ declaredInline == procedure.declaredInline &&
+ declaredIntrinsic == procedure.declaredIntrinsic &&
+ isConstructor == procedure.isConstructor &&
+ Objects.equals(procedureType, procedure.procedureType) &&
Objects.equals(parameterNames, procedure.parameterNames) &&
Objects.equals(interruptType, procedure.interruptType) &&
Objects.equals(comments, procedure.comments) &&
Objects.equals(reservedZps, procedure.reservedZps) &&
Objects.equals(codeSegment, procedure.codeSegment) &&
+ Objects.equals(constructorRefs, procedure.constructorRefs) &&
callingConvention == procedure.callingConvention;
}
@Override
public int hashCode() {
- return Objects.hash(super.hashCode(), returnType, parameterNames, declaredInline, interruptType, comments, reservedZps, codeSegment, callingConvention);
+ return Objects.hash(super.hashCode(), procedureType, parameterNames, variableLengthParameterList, declaredInline, declaredIntrinsic, interruptType, comments, reservedZps, codeSegment, constructorRefs, isConstructor, callingConvention);
}
}
diff --git a/src/main/java/dk/camelot64/kickc/model/types/SymbolType.java b/src/main/java/dk/camelot64/kickc/model/types/SymbolType.java
index 4a8608a3d..a9bec9157 100644
--- a/src/main/java/dk/camelot64/kickc/model/types/SymbolType.java
+++ b/src/main/java/dk/camelot64/kickc/model/types/SymbolType.java
@@ -45,6 +45,8 @@ public interface SymbolType extends Serializable {
SymbolTypeNamed LABEL = new SymbolTypeNamed("label", 1, false, false);
/** Void type representing no value. */
SymbolTypeNamed VOID = new SymbolTypeNamed("void", 0, false, false);
+ /** Value List type representing a "..." parameter list. */
+ SymbolTypeNamed PARAM_LIST = new SymbolTypeNamed("param_list", 0, false, false);
/** An unresolved type. Will be infered later. */
SymbolTypeNamed VAR = new SymbolTypeNamed("var", -1, false, false);
diff --git a/src/main/java/dk/camelot64/kickc/model/types/SymbolTypeProcedure.java b/src/main/java/dk/camelot64/kickc/model/types/SymbolTypeProcedure.java
index 033b798eb..039f7d32f 100644
--- a/src/main/java/dk/camelot64/kickc/model/types/SymbolTypeProcedure.java
+++ b/src/main/java/dk/camelot64/kickc/model/types/SymbolTypeProcedure.java
@@ -1,14 +1,17 @@
package dk.camelot64.kickc.model.types;
+import java.util.List;
import java.util.Objects;
/** A function returning another type */
public class SymbolTypeProcedure implements SymbolType {
private SymbolType returnType;
+ private List paramTypes;
- public SymbolTypeProcedure(SymbolType returnType) {
+ public SymbolTypeProcedure(SymbolType returnType, List paramTypes) {
this.returnType = returnType;
+ this.paramTypes = paramTypes;
}
@Override
@@ -35,9 +38,28 @@ public class SymbolTypeProcedure implements SymbolType {
return returnType;
}
+ public List getParamTypes() {
+ return paramTypes;
+ }
+
+ public void setParamTypes(List paramTypes) {
+ this.paramTypes = paramTypes;
+ }
+
@Override
public String getTypeBaseName() {
- return returnType.getTypeName() + "()";
+ final StringBuilder typeBaseName = new StringBuilder();
+ typeBaseName.append(returnType.getTypeBaseName());
+ typeBaseName.append("(");
+ boolean first = true;
+ for(SymbolType paramType : paramTypes) {
+ if(!first)
+ typeBaseName.append(",");
+ first = false;
+ typeBaseName.append(paramType.getTypeBaseName());
+ }
+ typeBaseName.append(")");
+ return typeBaseName.toString();
}
@Override
@@ -50,11 +72,13 @@ public class SymbolTypeProcedure implements SymbolType {
if(this == o) return true;
if(o == null || getClass() != o.getClass()) return false;
SymbolTypeProcedure that = (SymbolTypeProcedure) o;
- return Objects.equals(returnType, that.returnType);
+ return Objects.equals(returnType, that.returnType) &&
+ Objects.equals(paramTypes, that.paramTypes);
}
@Override
public int hashCode() {
- return Objects.hash(returnType);
+ return Objects.hash(returnType, paramTypes);
}
+
}
diff --git a/src/main/java/dk/camelot64/kickc/parser/KickCParser.g4 b/src/main/java/dk/camelot64/kickc/parser/KickCParser.g4
index 5ba194fde..4ed036f10 100644
--- a/src/main/java/dk/camelot64/kickc/parser/KickCParser.g4
+++ b/src/main/java/dk/camelot64/kickc/parser/KickCParser.g4
@@ -72,6 +72,7 @@ typeSpecifier
declarator
: NAME {if(isTypedef) { cParser.addTypedef($NAME.text); isTypedef=false; } } #declaratorName
+ | declarator PAR_BEGIN parameterListDecl? PAR_END #declaratorProcedure
| declarator BRACKET_BEGIN (expr)? BRACKET_END #declaratorArray
| ASTERISK directive* declarator #declaratorPointer
| PAR_BEGIN declarator PAR_END #declaratorPar
@@ -80,7 +81,6 @@ declarator
type
: SIMPLETYPE #typeSimple
| SIGNEDNESS SIMPLETYPE? #typeSignedSimple
- | type PAR_BEGIN PAR_END #typeProcedure // TODO: Move to declarator
| structDef #typeStructDef
| structRef #typeStructRef
| enumDef #typeEnumDef
@@ -118,11 +118,7 @@ enumMember
;
declFunction
- : declType declarator PAR_BEGIN parameterListDecl? PAR_END (declFunctionBody | ';' )
- ;
-
-declFunctionBody
- : CURLY_BEGIN stmtSeq? CURLY_END
+ : declType declarator CURLY_BEGIN stmtSeq? CURLY_END
;
parameterListDecl
diff --git a/src/main/java/dk/camelot64/kickc/parser/KickCParser.interp b/src/main/java/dk/camelot64/kickc/parser/KickCParser.interp
index b129eb65b..4752bcd71 100644
--- a/src/main/java/dk/camelot64/kickc/parser/KickCParser.interp
+++ b/src/main/java/dk/camelot64/kickc/parser/KickCParser.interp
@@ -333,7 +333,6 @@ enumDef
enumMemberList
enumMember
declFunction
-declFunctionBody
parameterListDecl
parameterDecl
pragma
@@ -362,4 +361,4 @@ asmExpr
atn:
-[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 156, 825, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 4, 7, 4, 102, 10, 4, 12, 4, 14, 4, 105, 11, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 5, 5, 121, 10, 5, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 7, 7, 132, 10, 7, 12, 7, 14, 7, 135, 11, 7, 3, 8, 3, 8, 3, 8, 5, 8, 140, 10, 8, 3, 8, 3, 8, 3, 8, 3, 8, 5, 8, 146, 10, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 7, 10, 154, 10, 10, 12, 10, 14, 10, 157, 11, 10, 3, 10, 3, 10, 7, 10, 161, 10, 10, 12, 10, 14, 10, 164, 11, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 5, 11, 174, 10, 11, 3, 11, 7, 11, 177, 10, 11, 12, 11, 14, 11, 180, 11, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 7, 12, 187, 10, 12, 12, 12, 14, 12, 190, 11, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 197, 10, 12, 3, 12, 3, 12, 3, 12, 5, 12, 202, 10, 12, 3, 12, 7, 12, 205, 10, 12, 12, 12, 14, 12, 208, 11, 12, 3, 13, 3, 13, 3, 13, 3, 13, 5, 13, 214, 10, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 5, 13, 221, 10, 13, 3, 13, 3, 13, 3, 13, 7, 13, 226, 10, 13, 12, 13, 14, 13, 229, 11, 13, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 5, 15, 236, 10, 15, 3, 15, 3, 15, 6, 15, 240, 10, 15, 13, 15, 14, 15, 241, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 5, 18, 254, 10, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 7, 19, 266, 10, 19, 12, 19, 14, 19, 269, 11, 19, 3, 20, 3, 20, 3, 20, 5, 20, 274, 10, 20, 3, 21, 3, 21, 3, 21, 3, 21, 5, 21, 280, 10, 21, 3, 21, 3, 21, 3, 21, 5, 21, 285, 10, 21, 3, 22, 3, 22, 5, 22, 289, 10, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 7, 23, 296, 10, 23, 12, 23, 14, 23, 299, 11, 23, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 5, 24, 306, 10, 24, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 7, 25, 314, 10, 25, 12, 25, 14, 25, 317, 11, 25, 3, 25, 3, 25, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 5, 26, 328, 10, 26, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 5, 27, 339, 10, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 5, 27, 360, 10, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 7, 27, 367, 10, 27, 12, 27, 14, 27, 370, 11, 27, 3, 27, 3, 27, 3, 27, 5, 27, 375, 10, 27, 3, 28, 6, 28, 378, 10, 28, 13, 28, 14, 28, 379, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 5, 29, 387, 10, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 5, 29, 400, 10, 29, 3, 29, 7, 29, 403, 10, 29, 12, 29, 14, 29, 406, 11, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 7, 29, 415, 10, 29, 12, 29, 14, 29, 418, 11, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 7, 29, 429, 10, 29, 12, 29, 14, 29, 432, 11, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 5, 29, 450, 10, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 5, 29, 459, 10, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 5, 29, 467, 10, 29, 3, 30, 6, 30, 470, 10, 30, 13, 30, 14, 30, 471, 3, 30, 3, 30, 3, 30, 5, 30, 477, 10, 30, 5, 30, 479, 10, 30, 3, 31, 3, 31, 3, 31, 3, 31, 5, 31, 485, 10, 31, 3, 32, 3, 32, 3, 32, 5, 32, 490, 10, 32, 3, 32, 3, 32, 5, 32, 494, 10, 32, 3, 32, 3, 32, 3, 32, 3, 32, 3, 32, 3, 32, 3, 32, 5, 32, 503, 10, 32, 3, 33, 5, 33, 506, 10, 33, 3, 33, 5, 33, 509, 10, 33, 3, 34, 3, 34, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 7, 35, 519, 10, 35, 12, 35, 14, 35, 522, 11, 35, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 5, 36, 533, 10, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 5, 36, 541, 10, 36, 3, 36, 3, 36, 3, 36, 3, 36, 5, 36, 547, 10, 36, 3, 36, 3, 36, 5, 36, 551, 10, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 7, 36, 570, 10, 36, 12, 36, 14, 36, 573, 11, 36, 3, 36, 5, 36, 576, 10, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 6, 36, 583, 10, 36, 13, 36, 14, 36, 584, 3, 36, 3, 36, 5, 36, 589, 10, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 5, 36, 639, 10, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 3, 36, 7, 36, 649, 10, 36, 12, 36, 14, 36, 652, 11, 36, 3, 37, 3, 37, 3, 37, 7, 37, 657, 10, 37, 12, 37, 14, 37, 660, 11, 37, 3, 38, 3, 38, 5, 38, 664, 10, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 3, 39, 7, 39, 672, 10, 39, 12, 39, 14, 39, 675, 11, 39, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 5, 40, 689, 10, 40, 3, 41, 7, 41, 692, 10, 41, 12, 41, 14, 41, 695, 11, 41, 3, 42, 3, 42, 3, 42, 5, 42, 700, 10, 42, 3, 43, 3, 43, 3, 43, 7, 43, 705, 10, 43, 12, 43, 14, 43, 708, 11, 43, 3, 43, 3, 43, 3, 43, 7, 43, 713, 10, 43, 12, 43, 14, 43, 716, 11, 43, 5, 43, 718, 10, 43, 3, 44, 3, 44, 5, 44, 722, 10, 44, 3, 44, 7, 44, 725, 10, 44, 12, 44, 14, 44, 728, 11, 44, 3, 45, 3, 45, 3, 45, 3, 45, 7, 45, 734, 10, 45, 12, 45, 14, 45, 737, 11, 45, 3, 45, 7, 45, 740, 10, 45, 12, 45, 14, 45, 743, 11, 45, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 5, 46, 790, 10, 46, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 5, 47, 806, 10, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 7, 47, 820, 10, 47, 12, 47, 14, 47, 823, 11, 47, 3, 47, 2, 10, 12, 20, 22, 24, 36, 68, 70, 92, 48, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 2, 13, 3, 2, 23, 24, 5, 2, 18, 19, 25, 26, 82, 82, 4, 2, 33, 33, 36, 36, 3, 2, 29, 30, 3, 2, 20, 22, 3, 2, 18, 19, 3, 2, 31, 36, 3, 2, 127, 130, 3, 2, 125, 126, 3, 2, 131, 132, 3, 2, 127, 128, 2, 945, 2, 94, 3, 2, 2, 2, 4, 97, 3, 2, 2, 2, 6, 103, 3, 2, 2, 2, 8, 120, 3, 2, 2, 2, 10, 122, 3, 2, 2, 2, 12, 125, 3, 2, 2, 2, 14, 145, 3, 2, 2, 2, 16, 147, 3, 2, 2, 2, 18, 155, 3, 2, 2, 2, 20, 165, 3, 2, 2, 2, 22, 196, 3, 2, 2, 2, 24, 220, 3, 2, 2, 2, 26, 230, 3, 2, 2, 2, 28, 233, 3, 2, 2, 2, 30, 245, 3, 2, 2, 2, 32, 248, 3, 2, 2, 2, 34, 251, 3, 2, 2, 2, 36, 259, 3, 2, 2, 2, 38, 270, 3, 2, 2, 2, 40, 275, 3, 2, 2, 2, 42, 286, 3, 2, 2, 2, 44, 292, 3, 2, 2, 2, 46, 305, 3, 2, 2, 2, 48, 307, 3, 2, 2, 2, 50, 327, 3, 2, 2, 2, 52, 374, 3, 2, 2, 2, 54, 377, 3, 2, 2, 2, 56, 466, 3, 2, 2, 2, 58, 469, 3, 2, 2, 2, 60, 480, 3, 2, 2, 2, 62, 502, 3, 2, 2, 2, 64, 508, 3, 2, 2, 2, 66, 510, 3, 2, 2, 2, 68, 512, 3, 2, 2, 2, 70, 588, 3, 2, 2, 2, 72, 653, 3, 2, 2, 2, 74, 661, 3, 2, 2, 2, 76, 667, 3, 2, 2, 2, 78, 688, 3, 2, 2, 2, 80, 693, 3, 2, 2, 2, 82, 699, 3, 2, 2, 2, 84, 717, 3, 2, 2, 2, 86, 719, 3, 2, 2, 2, 88, 729, 3, 2, 2, 2, 90, 789, 3, 2, 2, 2, 92, 805, 3, 2, 2, 2, 94, 95, 5, 6, 4, 2, 95, 96, 7, 2, 2, 3, 96, 3, 3, 2, 2, 2, 97, 98, 5, 80, 41, 2, 98, 99, 7, 2, 2, 3, 99, 5, 3, 2, 2, 2, 100, 102, 5, 8, 5, 2, 101, 100, 3, 2, 2, 2, 102, 105, 3, 2, 2, 2, 103, 101, 3, 2, 2, 2, 103, 104, 3, 2, 2, 2, 104, 7, 3, 2, 2, 2, 105, 103, 3, 2, 2, 2, 106, 107, 5, 10, 6, 2, 107, 108, 7, 10, 2, 2, 108, 121, 3, 2, 2, 2, 109, 121, 5, 40, 21, 2, 110, 111, 5, 28, 15, 2, 111, 112, 7, 10, 2, 2, 112, 121, 3, 2, 2, 2, 113, 114, 5, 34, 18, 2, 114, 115, 7, 10, 2, 2, 115, 121, 3, 2, 2, 2, 116, 121, 5, 48, 25, 2, 117, 118, 5, 16, 9, 2, 118, 119, 7, 10, 2, 2, 119, 121, 3, 2, 2, 2, 120, 106, 3, 2, 2, 2, 120, 109, 3, 2, 2, 2, 120, 110, 3, 2, 2, 2, 120, 113, 3, 2, 2, 2, 120, 116, 3, 2, 2, 2, 120, 117, 3, 2, 2, 2, 121, 9, 3, 2, 2, 2, 122, 123, 5, 18, 10, 2, 123, 124, 5, 12, 7, 2, 124, 11, 3, 2, 2, 2, 125, 126, 8, 7, 1, 2, 126, 127, 5, 14, 8, 2, 127, 133, 3, 2, 2, 2, 128, 129, 12, 3, 2, 2, 129, 130, 7, 12, 2, 2, 130, 132, 5, 14, 8, 2, 131, 128, 3, 2, 2, 2, 132, 135, 3, 2, 2, 2, 133, 131, 3, 2, 2, 2, 133, 134, 3, 2, 2, 2, 134, 13, 3, 2, 2, 2, 135, 133, 3, 2, 2, 2, 136, 139, 5, 22, 12, 2, 137, 138, 7, 39, 2, 2, 138, 140, 5, 70, 36, 2, 139, 137, 3, 2, 2, 2, 139, 140, 3, 2, 2, 2, 140, 146, 3, 2, 2, 2, 141, 142, 5, 22, 12, 2, 142, 143, 7, 39, 2, 2, 143, 144, 5, 74, 38, 2, 144, 146, 3, 2, 2, 2, 145, 136, 3, 2, 2, 2, 145, 141, 3, 2, 2, 2, 146, 15, 3, 2, 2, 2, 147, 148, 7, 41, 2, 2, 148, 149, 5, 18, 10, 2, 149, 150, 8, 9, 1, 2, 150, 151, 5, 22, 12, 2, 151, 17, 3, 2, 2, 2, 152, 154, 5, 52, 27, 2, 153, 152, 3, 2, 2, 2, 154, 157, 3, 2, 2, 2, 155, 153, 3, 2, 2, 2, 155, 156, 3, 2, 2, 2, 156, 158, 3, 2, 2, 2, 157, 155, 3, 2, 2, 2, 158, 162, 5, 24, 13, 2, 159, 161, 5, 52, 27, 2, 160, 159, 3, 2, 2, 2, 161, 164, 3, 2, 2, 2, 162, 160, 3, 2, 2, 2, 162, 163, 3, 2, 2, 2, 163, 19, 3, 2, 2, 2, 164, 162, 3, 2, 2, 2, 165, 166, 8, 11, 1, 2, 166, 167, 5, 24, 13, 2, 167, 178, 3, 2, 2, 2, 168, 169, 12, 4, 2, 2, 169, 177, 7, 20, 2, 2, 170, 171, 12, 3, 2, 2, 171, 173, 7, 6, 2, 2, 172, 174, 5, 70, 36, 2, 173, 172, 3, 2, 2, 2, 173, 174, 3, 2, 2, 2, 174, 175, 3, 2, 2, 2, 175, 177, 7, 7, 2, 2, 176, 168, 3, 2, 2, 2, 176, 170, 3, 2, 2, 2, 177, 180, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 178, 179, 3, 2, 2, 2, 179, 21, 3, 2, 2, 2, 180, 178, 3, 2, 2, 2, 181, 182, 8, 12, 1, 2, 182, 183, 7, 109, 2, 2, 183, 197, 8, 12, 1, 2, 184, 188, 7, 20, 2, 2, 185, 187, 5, 52, 27, 2, 186, 185, 3, 2, 2, 2, 187, 190, 3, 2, 2, 2, 188, 186, 3, 2, 2, 2, 188, 189, 3, 2, 2, 2, 189, 191, 3, 2, 2, 2, 190, 188, 3, 2, 2, 2, 191, 197, 5, 22, 12, 4, 192, 193, 7, 8, 2, 2, 193, 194, 5, 22, 12, 2, 194, 195, 7, 9, 2, 2, 195, 197, 3, 2, 2, 2, 196, 181, 3, 2, 2, 2, 196, 184, 3, 2, 2, 2, 196, 192, 3, 2, 2, 2, 197, 206, 3, 2, 2, 2, 198, 199, 12, 5, 2, 2, 199, 201, 7, 6, 2, 2, 200, 202, 5, 70, 36, 2, 201, 200, 3, 2, 2, 2, 201, 202, 3, 2, 2, 2, 202, 203, 3, 2, 2, 2, 203, 205, 7, 7, 2, 2, 204, 198, 3, 2, 2, 2, 205, 208, 3, 2, 2, 2, 206, 204, 3, 2, 2, 2, 206, 207, 3, 2, 2, 2, 207, 23, 3, 2, 2, 2, 208, 206, 3, 2, 2, 2, 209, 210, 8, 13, 1, 2, 210, 221, 7, 84, 2, 2, 211, 213, 7, 83, 2, 2, 212, 214, 7, 84, 2, 2, 213, 212, 3, 2, 2, 2, 213, 214, 3, 2, 2, 2, 214, 221, 3, 2, 2, 2, 215, 221, 5, 28, 15, 2, 216, 221, 5, 26, 14, 2, 217, 221, 5, 34, 18, 2, 218, 221, 5, 32, 17, 2, 219, 221, 7, 3, 2, 2, 220, 209, 3, 2, 2, 2, 220, 211, 3, 2, 2, 2, 220, 215, 3, 2, 2, 2, 220, 216, 3, 2, 2, 2, 220, 217, 3, 2, 2, 2, 220, 218, 3, 2, 2, 2, 220, 219, 3, 2, 2, 2, 221, 227, 3, 2, 2, 2, 222, 223, 12, 8, 2, 2, 223, 224, 7, 8, 2, 2, 224, 226, 7, 9, 2, 2, 225, 222, 3, 2, 2, 2, 226, 229, 3, 2, 2, 2, 227, 225, 3, 2, 2, 2, 227, 228, 3, 2, 2, 2, 228, 25, 3, 2, 2, 2, 229, 227, 3, 2, 2, 2, 230, 231, 7, 71, 2, 2, 231, 232, 7, 109, 2, 2, 232, 27, 3, 2, 2, 2, 233, 235, 7, 71, 2, 2, 234, 236, 7, 109, 2, 2, 235, 234, 3, 2, 2, 2, 235, 236, 3, 2, 2, 2, 236, 237, 3, 2, 2, 2, 237, 239, 7, 4, 2, 2, 238, 240, 5, 30, 16, 2, 239, 238, 3, 2, 2, 2, 240, 241, 3, 2, 2, 2, 241, 239, 3, 2, 2, 2, 241, 242, 3, 2, 2, 2, 242, 243, 3, 2, 2, 2, 243, 244, 7, 5, 2, 2, 244, 29, 3, 2, 2, 2, 245, 246, 5, 10, 6, 2, 246, 247, 7, 10, 2, 2, 247, 31, 3, 2, 2, 2, 248, 249, 7, 72, 2, 2, 249, 250, 7, 109, 2, 2, 250, 33, 3, 2, 2, 2, 251, 253, 7, 72, 2, 2, 252, 254, 7, 109, 2, 2, 253, 252, 3, 2, 2, 2, 253, 254, 3, 2, 2, 2, 254, 255, 3, 2, 2, 2, 255, 256, 7, 4, 2, 2, 256, 257, 5, 36, 19, 2, 257, 258, 7, 5, 2, 2, 258, 35, 3, 2, 2, 2, 259, 260, 8, 19, 1, 2, 260, 261, 5, 38, 20, 2, 261, 267, 3, 2, 2, 2, 262, 263, 12, 3, 2, 2, 263, 264, 7, 12, 2, 2, 264, 266, 5, 38, 20, 2, 265, 262, 3, 2, 2, 2, 266, 269, 3, 2, 2, 2, 267, 265, 3, 2, 2, 2, 267, 268, 3, 2, 2, 2, 268, 37, 3, 2, 2, 2, 269, 267, 3, 2, 2, 2, 270, 273, 7, 109, 2, 2, 271, 272, 7, 39, 2, 2, 272, 274, 5, 70, 36, 2, 273, 271, 3, 2, 2, 2, 273, 274, 3, 2, 2, 2, 274, 39, 3, 2, 2, 2, 275, 276, 5, 18, 10, 2, 276, 277, 5, 22, 12, 2, 277, 279, 7, 8, 2, 2, 278, 280, 5, 44, 23, 2, 279, 278, 3, 2, 2, 2, 279, 280, 3, 2, 2, 2, 280, 281, 3, 2, 2, 2, 281, 284, 7, 9, 2, 2, 282, 285, 5, 42, 22, 2, 283, 285, 7, 10, 2, 2, 284, 282, 3, 2, 2, 2, 284, 283, 3, 2, 2, 2, 285, 41, 3, 2, 2, 2, 286, 288, 7, 4, 2, 2, 287, 289, 5, 54, 28, 2, 288, 287, 3, 2, 2, 2, 288, 289, 3, 2, 2, 2, 289, 290, 3, 2, 2, 2, 290, 291, 7, 5, 2, 2, 291, 43, 3, 2, 2, 2, 292, 297, 5, 46, 24, 2, 293, 294, 7, 12, 2, 2, 294, 296, 5, 46, 24, 2, 295, 293, 3, 2, 2, 2, 296, 299, 3, 2, 2, 2, 297, 295, 3, 2, 2, 2, 297, 298, 3, 2, 2, 2, 298, 45, 3, 2, 2, 2, 299, 297, 3, 2, 2, 2, 300, 301, 5, 18, 10, 2, 301, 302, 5, 22, 12, 2, 302, 306, 3, 2, 2, 2, 303, 306, 7, 84, 2, 2, 304, 306, 7, 14, 2, 2, 305, 300, 3, 2, 2, 2, 305, 303, 3, 2, 2, 2, 305, 304, 3, 2, 2, 2, 306, 47, 3, 2, 2, 2, 307, 308, 7, 89, 2, 2, 308, 309, 7, 109, 2, 2, 309, 310, 7, 8, 2, 2, 310, 315, 5, 50, 26, 2, 311, 312, 7, 12, 2, 2, 312, 314, 5, 50, 26, 2, 313, 311, 3, 2, 2, 2, 314, 317, 3, 2, 2, 2, 315, 313, 3, 2, 2, 2, 315, 316, 3, 2, 2, 2, 316, 318, 3, 2, 2, 2, 317, 315, 3, 2, 2, 2, 318, 319, 7, 9, 2, 2, 319, 49, 3, 2, 2, 2, 320, 328, 7, 100, 2, 2, 321, 322, 7, 100, 2, 2, 322, 323, 7, 13, 2, 2, 323, 328, 7, 100, 2, 2, 324, 328, 7, 109, 2, 2, 325, 328, 7, 110, 2, 2, 326, 328, 7, 58, 2, 2, 327, 320, 3, 2, 2, 2, 327, 321, 3, 2, 2, 2, 327, 324, 3, 2, 2, 2, 327, 325, 3, 2, 2, 2, 327, 326, 3, 2, 2, 2, 328, 51, 3, 2, 2, 2, 329, 375, 7, 42, 2, 2, 330, 331, 7, 45, 2, 2, 331, 332, 7, 8, 2, 2, 332, 333, 7, 100, 2, 2, 333, 375, 7, 9, 2, 2, 334, 338, 7, 50, 2, 2, 335, 336, 7, 8, 2, 2, 336, 337, 7, 109, 2, 2, 337, 339, 7, 9, 2, 2, 338, 335, 3, 2, 2, 2, 338, 339, 3, 2, 2, 2, 339, 375, 3, 2, 2, 2, 340, 375, 7, 53, 2, 2, 341, 375, 7, 54, 2, 2, 342, 343, 7, 52, 2, 2, 343, 344, 7, 8, 2, 2, 344, 345, 5, 70, 36, 2, 345, 346, 7, 9, 2, 2, 346, 375, 3, 2, 2, 2, 347, 375, 7, 47, 2, 2, 348, 375, 7, 48, 2, 2, 349, 375, 7, 55, 2, 2, 350, 375, 7, 56, 2, 2, 351, 375, 7, 43, 2, 2, 352, 375, 7, 44, 2, 2, 353, 375, 7, 46, 2, 2, 354, 375, 7, 57, 2, 2, 355, 359, 7, 49, 2, 2, 356, 357, 7, 8, 2, 2, 357, 358, 7, 109, 2, 2, 358, 360, 7, 9, 2, 2, 359, 356, 3, 2, 2, 2, 359, 360, 3, 2, 2, 2, 360, 375, 3, 2, 2, 2, 361, 362, 7, 51, 2, 2, 362, 363, 7, 8, 2, 2, 363, 368, 5, 50, 26, 2, 364, 365, 7, 12, 2, 2, 365, 367, 5, 50, 26, 2, 366, 364, 3, 2, 2, 2, 367, 370, 3, 2, 2, 2, 368, 366, 3, 2, 2, 2, 368, 369, 3, 2, 2, 2, 369, 371, 3, 2, 2, 2, 370, 368, 3, 2, 2, 2, 371, 372, 7, 9, 2, 2, 372, 375, 3, 2, 2, 2, 373, 375, 7, 58, 2, 2, 374, 329, 3, 2, 2, 2, 374, 330, 3, 2, 2, 2, 374, 334, 3, 2, 2, 2, 374, 340, 3, 2, 2, 2, 374, 341, 3, 2, 2, 2, 374, 342, 3, 2, 2, 2, 374, 347, 3, 2, 2, 2, 374, 348, 3, 2, 2, 2, 374, 349, 3, 2, 2, 2, 374, 350, 3, 2, 2, 2, 374, 351, 3, 2, 2, 2, 374, 352, 3, 2, 2, 2, 374, 353, 3, 2, 2, 2, 374, 354, 3, 2, 2, 2, 374, 355, 3, 2, 2, 2, 374, 361, 3, 2, 2, 2, 374, 373, 3, 2, 2, 2, 375, 53, 3, 2, 2, 2, 376, 378, 5, 56, 29, 2, 377, 376, 3, 2, 2, 2, 378, 379, 3, 2, 2, 2, 379, 377, 3, 2, 2, 2, 379, 380, 3, 2, 2, 2, 380, 55, 3, 2, 2, 2, 381, 382, 5, 10, 6, 2, 382, 383, 7, 10, 2, 2, 383, 467, 3, 2, 2, 2, 384, 386, 7, 4, 2, 2, 385, 387, 5, 54, 28, 2, 386, 385, 3, 2, 2, 2, 386, 387, 3, 2, 2, 2, 387, 388, 3, 2, 2, 2, 388, 467, 7, 5, 2, 2, 389, 390, 5, 68, 35, 2, 390, 391, 7, 10, 2, 2, 391, 467, 3, 2, 2, 2, 392, 393, 7, 59, 2, 2, 393, 394, 7, 8, 2, 2, 394, 395, 5, 68, 35, 2, 395, 396, 7, 9, 2, 2, 396, 399, 5, 56, 29, 2, 397, 398, 7, 60, 2, 2, 398, 400, 5, 56, 29, 2, 399, 397, 3, 2, 2, 2, 399, 400, 3, 2, 2, 2, 400, 467, 3, 2, 2, 2, 401, 403, 5, 52, 27, 2, 402, 401, 3, 2, 2, 2, 403, 406, 3, 2, 2, 2, 404, 402, 3, 2, 2, 2, 404, 405, 3, 2, 2, 2, 405, 407, 3, 2, 2, 2, 406, 404, 3, 2, 2, 2, 407, 408, 7, 61, 2, 2, 408, 409, 7, 8, 2, 2, 409, 410, 5, 68, 35, 2, 410, 411, 7, 9, 2, 2, 411, 412, 5, 56, 29, 2, 412, 467, 3, 2, 2, 2, 413, 415, 5, 52, 27, 2, 414, 413, 3, 2, 2, 2, 415, 418, 3, 2, 2, 2, 416, 414, 3, 2, 2, 2, 416, 417, 3, 2, 2, 2, 417, 419, 3, 2, 2, 2, 418, 416, 3, 2, 2, 2, 419, 420, 7, 62, 2, 2, 420, 421, 5, 56, 29, 2, 421, 422, 7, 61, 2, 2, 422, 423, 7, 8, 2, 2, 423, 424, 5, 68, 35, 2, 424, 425, 7, 9, 2, 2, 425, 426, 7, 10, 2, 2, 426, 467, 3, 2, 2, 2, 427, 429, 5, 52, 27, 2, 428, 427, 3, 2, 2, 2, 429, 432, 3, 2, 2, 2, 430, 428, 3, 2, 2, 2, 430, 431, 3, 2, 2, 2, 431, 433, 3, 2, 2, 2, 432, 430, 3, 2, 2, 2, 433, 434, 7, 63, 2, 2, 434, 435, 7, 8, 2, 2, 435, 436, 5, 62, 32, 2, 436, 437, 7, 9, 2, 2, 437, 438, 5, 56, 29, 2, 438, 467, 3, 2, 2, 2, 439, 440, 7, 64, 2, 2, 440, 441, 7, 8, 2, 2, 441, 442, 5, 68, 35, 2, 442, 443, 7, 9, 2, 2, 443, 444, 7, 4, 2, 2, 444, 445, 5, 58, 30, 2, 445, 446, 7, 5, 2, 2, 446, 467, 3, 2, 2, 2, 447, 449, 7, 65, 2, 2, 448, 450, 5, 68, 35, 2, 449, 448, 3, 2, 2, 2, 449, 450, 3, 2, 2, 2, 450, 451, 3, 2, 2, 2, 451, 467, 7, 10, 2, 2, 452, 453, 7, 66, 2, 2, 453, 467, 7, 10, 2, 2, 454, 455, 7, 67, 2, 2, 455, 467, 7, 10, 2, 2, 456, 458, 7, 68, 2, 2, 457, 459, 5, 76, 39, 2, 458, 457, 3, 2, 2, 2, 458, 459, 3, 2, 2, 2, 459, 460, 3, 2, 2, 2, 460, 461, 7, 4, 2, 2, 461, 462, 5, 80, 41, 2, 462, 463, 7, 134, 2, 2, 463, 467, 3, 2, 2, 2, 464, 467, 5, 74, 38, 2, 465, 467, 7, 10, 2, 2, 466, 381, 3, 2, 2, 2, 466, 384, 3, 2, 2, 2, 466, 389, 3, 2, 2, 2, 466, 392, 3, 2, 2, 2, 466, 404, 3, 2, 2, 2, 466, 416, 3, 2, 2, 2, 466, 430, 3, 2, 2, 2, 466, 439, 3, 2, 2, 2, 466, 447, 3, 2, 2, 2, 466, 452, 3, 2, 2, 2, 466, 454, 3, 2, 2, 2, 466, 456, 3, 2, 2, 2, 466, 464, 3, 2, 2, 2, 466, 465, 3, 2, 2, 2, 467, 57, 3, 2, 2, 2, 468, 470, 5, 60, 31, 2, 469, 468, 3, 2, 2, 2, 470, 471, 3, 2, 2, 2, 471, 469, 3, 2, 2, 2, 471, 472, 3, 2, 2, 2, 472, 478, 3, 2, 2, 2, 473, 474, 7, 69, 2, 2, 474, 476, 7, 11, 2, 2, 475, 477, 5, 54, 28, 2, 476, 475, 3, 2, 2, 2, 476, 477, 3, 2, 2, 2, 477, 479, 3, 2, 2, 2, 478, 473, 3, 2, 2, 2, 478, 479, 3, 2, 2, 2, 479, 59, 3, 2, 2, 2, 480, 481, 7, 70, 2, 2, 481, 482, 5, 70, 36, 2, 482, 484, 7, 11, 2, 2, 483, 485, 5, 54, 28, 2, 484, 483, 3, 2, 2, 2, 484, 485, 3, 2, 2, 2, 485, 61, 3, 2, 2, 2, 486, 487, 5, 64, 33, 2, 487, 489, 7, 10, 2, 2, 488, 490, 5, 66, 34, 2, 489, 488, 3, 2, 2, 2, 489, 490, 3, 2, 2, 2, 490, 491, 3, 2, 2, 2, 491, 493, 7, 10, 2, 2, 492, 494, 5, 68, 35, 2, 493, 492, 3, 2, 2, 2, 493, 494, 3, 2, 2, 2, 494, 503, 3, 2, 2, 2, 495, 496, 5, 18, 10, 2, 496, 497, 5, 22, 12, 2, 497, 498, 7, 11, 2, 2, 498, 499, 5, 70, 36, 2, 499, 500, 7, 13, 2, 2, 500, 501, 5, 70, 36, 2, 501, 503, 3, 2, 2, 2, 502, 486, 3, 2, 2, 2, 502, 495, 3, 2, 2, 2, 503, 63, 3, 2, 2, 2, 504, 506, 5, 10, 6, 2, 505, 504, 3, 2, 2, 2, 505, 506, 3, 2, 2, 2, 506, 509, 3, 2, 2, 2, 507, 509, 5, 68, 35, 2, 508, 505, 3, 2, 2, 2, 508, 507, 3, 2, 2, 2, 509, 65, 3, 2, 2, 2, 510, 511, 5, 68, 35, 2, 511, 67, 3, 2, 2, 2, 512, 513, 8, 35, 1, 2, 513, 514, 5, 70, 36, 2, 514, 520, 3, 2, 2, 2, 515, 516, 12, 3, 2, 2, 516, 517, 7, 12, 2, 2, 517, 519, 5, 70, 36, 2, 518, 515, 3, 2, 2, 2, 519, 522, 3, 2, 2, 2, 520, 518, 3, 2, 2, 2, 520, 521, 3, 2, 2, 2, 521, 69, 3, 2, 2, 2, 522, 520, 3, 2, 2, 2, 523, 524, 8, 36, 1, 2, 524, 525, 7, 8, 2, 2, 525, 526, 5, 68, 35, 2, 526, 527, 7, 9, 2, 2, 527, 589, 3, 2, 2, 2, 528, 529, 7, 73, 2, 2, 529, 532, 7, 8, 2, 2, 530, 533, 5, 70, 36, 2, 531, 533, 5, 20, 11, 2, 532, 530, 3, 2, 2, 2, 532, 531, 3, 2, 2, 2, 533, 534, 3, 2, 2, 2, 534, 535, 7, 9, 2, 2, 535, 589, 3, 2, 2, 2, 536, 537, 7, 74, 2, 2, 537, 540, 7, 8, 2, 2, 538, 541, 5, 70, 36, 2, 539, 541, 5, 20, 11, 2, 540, 538, 3, 2, 2, 2, 540, 539, 3, 2, 2, 2, 541, 542, 3, 2, 2, 2, 542, 543, 7, 9, 2, 2, 543, 589, 3, 2, 2, 2, 544, 546, 7, 75, 2, 2, 545, 547, 7, 8, 2, 2, 546, 545, 3, 2, 2, 2, 546, 547, 3, 2, 2, 2, 547, 548, 3, 2, 2, 2, 548, 550, 7, 109, 2, 2, 549, 551, 7, 9, 2, 2, 550, 549, 3, 2, 2, 2, 550, 551, 3, 2, 2, 2, 551, 589, 3, 2, 2, 2, 552, 553, 7, 8, 2, 2, 553, 554, 5, 20, 11, 2, 554, 555, 7, 9, 2, 2, 555, 556, 5, 70, 36, 26, 556, 589, 3, 2, 2, 2, 557, 558, 9, 2, 2, 2, 558, 589, 5, 70, 36, 25, 559, 560, 7, 20, 2, 2, 560, 589, 5, 70, 36, 23, 561, 562, 9, 3, 2, 2, 562, 589, 5, 70, 36, 22, 563, 564, 9, 4, 2, 2, 564, 589, 5, 70, 36, 18, 565, 566, 7, 4, 2, 2, 566, 571, 5, 70, 36, 2, 567, 568, 7, 12, 2, 2, 568, 570, 5, 70, 36, 2, 569, 567, 3, 2, 2, 2, 570, 573, 3, 2, 2, 2, 571, 569, 3, 2, 2, 2, 571, 572, 3, 2, 2, 2, 572, 575, 3, 2, 2, 2, 573, 571, 3, 2, 2, 2, 574, 576, 7, 12, 2, 2, 575, 574, 3, 2, 2, 2, 575, 576, 3, 2, 2, 2, 576, 577, 3, 2, 2, 2, 577, 578, 7, 5, 2, 2, 578, 589, 3, 2, 2, 2, 579, 589, 7, 109, 2, 2, 580, 589, 7, 100, 2, 2, 581, 583, 7, 110, 2, 2, 582, 581, 3, 2, 2, 2, 583, 584, 3, 2, 2, 2, 584, 582, 3, 2, 2, 2, 584, 585, 3, 2, 2, 2, 585, 589, 3, 2, 2, 2, 586, 589, 7, 111, 2, 2, 587, 589, 7, 85, 2, 2, 588, 523, 3, 2, 2, 2, 588, 528, 3, 2, 2, 2, 588, 536, 3, 2, 2, 2, 588, 544, 3, 2, 2, 2, 588, 552, 3, 2, 2, 2, 588, 557, 3, 2, 2, 2, 588, 559, 3, 2, 2, 2, 588, 561, 3, 2, 2, 2, 588, 563, 3, 2, 2, 2, 588, 565, 3, 2, 2, 2, 588, 579, 3, 2, 2, 2, 588, 580, 3, 2, 2, 2, 588, 582, 3, 2, 2, 2, 588, 586, 3, 2, 2, 2, 588, 587, 3, 2, 2, 2, 589, 650, 3, 2, 2, 2, 590, 591, 12, 21, 2, 2, 591, 592, 9, 5, 2, 2, 592, 649, 5, 70, 36, 22, 593, 594, 12, 20, 2, 2, 594, 595, 9, 6, 2, 2, 595, 649, 5, 70, 36, 21, 596, 597, 12, 19, 2, 2, 597, 598, 9, 7, 2, 2, 598, 649, 5, 70, 36, 20, 599, 600, 12, 17, 2, 2, 600, 601, 9, 8, 2, 2, 601, 649, 5, 70, 36, 18, 602, 603, 12, 16, 2, 2, 603, 604, 7, 25, 2, 2, 604, 649, 5, 70, 36, 17, 605, 606, 12, 15, 2, 2, 606, 607, 7, 27, 2, 2, 607, 649, 5, 70, 36, 16, 608, 609, 12, 14, 2, 2, 609, 610, 7, 28, 2, 2, 610, 649, 5, 70, 36, 15, 611, 612, 12, 13, 2, 2, 612, 613, 7, 37, 2, 2, 613, 649, 5, 70, 36, 14, 614, 615, 12, 12, 2, 2, 615, 616, 7, 38, 2, 2, 616, 649, 5, 70, 36, 13, 617, 618, 12, 11, 2, 2, 618, 619, 7, 15, 2, 2, 619, 620, 5, 70, 36, 2, 620, 621, 7, 11, 2, 2, 621, 622, 5, 70, 36, 12, 622, 649, 3, 2, 2, 2, 623, 624, 12, 10, 2, 2, 624, 625, 7, 39, 2, 2, 625, 649, 5, 70, 36, 10, 626, 627, 12, 9, 2, 2, 627, 628, 7, 40, 2, 2, 628, 649, 5, 70, 36, 9, 629, 630, 12, 33, 2, 2, 630, 631, 7, 16, 2, 2, 631, 649, 7, 109, 2, 2, 632, 633, 12, 32, 2, 2, 633, 634, 7, 17, 2, 2, 634, 649, 7, 109, 2, 2, 635, 636, 12, 31, 2, 2, 636, 638, 7, 8, 2, 2, 637, 639, 5, 72, 37, 2, 638, 637, 3, 2, 2, 2, 638, 639, 3, 2, 2, 2, 639, 640, 3, 2, 2, 2, 640, 649, 7, 9, 2, 2, 641, 642, 12, 27, 2, 2, 642, 643, 7, 6, 2, 2, 643, 644, 5, 68, 35, 2, 644, 645, 7, 7, 2, 2, 645, 649, 3, 2, 2, 2, 646, 647, 12, 24, 2, 2, 647, 649, 9, 2, 2, 2, 648, 590, 3, 2, 2, 2, 648, 593, 3, 2, 2, 2, 648, 596, 3, 2, 2, 2, 648, 599, 3, 2, 2, 2, 648, 602, 3, 2, 2, 2, 648, 605, 3, 2, 2, 2, 648, 608, 3, 2, 2, 2, 648, 611, 3, 2, 2, 2, 648, 614, 3, 2, 2, 2, 648, 617, 3, 2, 2, 2, 648, 623, 3, 2, 2, 2, 648, 626, 3, 2, 2, 2, 648, 629, 3, 2, 2, 2, 648, 632, 3, 2, 2, 2, 648, 635, 3, 2, 2, 2, 648, 641, 3, 2, 2, 2, 648, 646, 3, 2, 2, 2, 649, 652, 3, 2, 2, 2, 650, 648, 3, 2, 2, 2, 650, 651, 3, 2, 2, 2, 651, 71, 3, 2, 2, 2, 652, 650, 3, 2, 2, 2, 653, 658, 5, 70, 36, 2, 654, 655, 7, 12, 2, 2, 655, 657, 5, 70, 36, 2, 656, 654, 3, 2, 2, 2, 657, 660, 3, 2, 2, 2, 658, 656, 3, 2, 2, 2, 658, 659, 3, 2, 2, 2, 659, 73, 3, 2, 2, 2, 660, 658, 3, 2, 2, 2, 661, 663, 7, 76, 2, 2, 662, 664, 5, 76, 39, 2, 663, 662, 3, 2, 2, 2, 663, 664, 3, 2, 2, 2, 664, 665, 3, 2, 2, 2, 665, 666, 7, 86, 2, 2, 666, 75, 3, 2, 2, 2, 667, 668, 7, 8, 2, 2, 668, 673, 5, 78, 40, 2, 669, 670, 7, 12, 2, 2, 670, 672, 5, 78, 40, 2, 671, 669, 3, 2, 2, 2, 672, 675, 3, 2, 2, 2, 673, 671, 3, 2, 2, 2, 673, 674, 3, 2, 2, 2, 674, 676, 3, 2, 2, 2, 675, 673, 3, 2, 2, 2, 676, 677, 7, 9, 2, 2, 677, 77, 3, 2, 2, 2, 678, 679, 7, 77, 2, 2, 679, 689, 7, 110, 2, 2, 680, 681, 7, 78, 2, 2, 681, 689, 7, 109, 2, 2, 682, 683, 7, 79, 2, 2, 683, 689, 7, 110, 2, 2, 684, 685, 7, 80, 2, 2, 685, 689, 5, 70, 36, 2, 686, 687, 7, 81, 2, 2, 687, 689, 5, 70, 36, 2, 688, 678, 3, 2, 2, 2, 688, 680, 3, 2, 2, 2, 688, 682, 3, 2, 2, 2, 688, 684, 3, 2, 2, 2, 688, 686, 3, 2, 2, 2, 689, 79, 3, 2, 2, 2, 690, 692, 5, 82, 42, 2, 691, 690, 3, 2, 2, 2, 692, 695, 3, 2, 2, 2, 693, 691, 3, 2, 2, 2, 693, 694, 3, 2, 2, 2, 694, 81, 3, 2, 2, 2, 695, 693, 3, 2, 2, 2, 696, 700, 5, 84, 43, 2, 697, 700, 5, 86, 44, 2, 698, 700, 5, 88, 45, 2, 699, 696, 3, 2, 2, 2, 699, 697, 3, 2, 2, 2, 699, 698, 3, 2, 2, 2, 700, 83, 3, 2, 2, 2, 701, 702, 7, 147, 2, 2, 702, 706, 7, 118, 2, 2, 703, 705, 7, 148, 2, 2, 704, 703, 3, 2, 2, 2, 705, 708, 3, 2, 2, 2, 706, 704, 3, 2, 2, 2, 706, 707, 3, 2, 2, 2, 707, 718, 3, 2, 2, 2, 708, 706, 3, 2, 2, 2, 709, 710, 7, 146, 2, 2, 710, 714, 7, 118, 2, 2, 711, 713, 7, 148, 2, 2, 712, 711, 3, 2, 2, 2, 713, 716, 3, 2, 2, 2, 714, 712, 3, 2, 2, 2, 714, 715, 3, 2, 2, 2, 715, 718, 3, 2, 2, 2, 716, 714, 3, 2, 2, 2, 717, 701, 3, 2, 2, 2, 717, 709, 3, 2, 2, 2, 718, 85, 3, 2, 2, 2, 719, 721, 7, 116, 2, 2, 720, 722, 5, 90, 46, 2, 721, 720, 3, 2, 2, 2, 721, 722, 3, 2, 2, 2, 722, 726, 3, 2, 2, 2, 723, 725, 7, 148, 2, 2, 724, 723, 3, 2, 2, 2, 725, 728, 3, 2, 2, 2, 726, 724, 3, 2, 2, 2, 726, 727, 3, 2, 2, 2, 727, 87, 3, 2, 2, 2, 728, 726, 3, 2, 2, 2, 729, 730, 7, 115, 2, 2, 730, 735, 5, 92, 47, 2, 731, 732, 7, 119, 2, 2, 732, 734, 5, 92, 47, 2, 733, 731, 3, 2, 2, 2, 734, 737, 3, 2, 2, 2, 735, 733, 3, 2, 2, 2, 735, 736, 3, 2, 2, 2, 736, 741, 3, 2, 2, 2, 737, 735, 3, 2, 2, 2, 738, 740, 7, 148, 2, 2, 739, 738, 3, 2, 2, 2, 740, 743, 3, 2, 2, 2, 741, 739, 3, 2, 2, 2, 741, 742, 3, 2, 2, 2, 742, 89, 3, 2, 2, 2, 743, 741, 3, 2, 2, 2, 744, 790, 5, 92, 47, 2, 745, 746, 7, 117, 2, 2, 746, 790, 5, 92, 47, 2, 747, 748, 5, 92, 47, 2, 748, 749, 7, 119, 2, 2, 749, 750, 5, 92, 47, 2, 750, 790, 3, 2, 2, 2, 751, 752, 7, 120, 2, 2, 752, 753, 5, 92, 47, 2, 753, 754, 7, 121, 2, 2, 754, 755, 7, 119, 2, 2, 755, 756, 7, 147, 2, 2, 756, 790, 3, 2, 2, 2, 757, 758, 7, 120, 2, 2, 758, 759, 7, 120, 2, 2, 759, 760, 5, 92, 47, 2, 760, 761, 7, 121, 2, 2, 761, 762, 7, 121, 2, 2, 762, 763, 7, 119, 2, 2, 763, 764, 7, 147, 2, 2, 764, 790, 3, 2, 2, 2, 765, 766, 7, 120, 2, 2, 766, 767, 5, 92, 47, 2, 767, 768, 7, 119, 2, 2, 768, 769, 7, 147, 2, 2, 769, 770, 7, 121, 2, 2, 770, 771, 7, 119, 2, 2, 771, 772, 7, 147, 2, 2, 772, 790, 3, 2, 2, 2, 773, 774, 7, 120, 2, 2, 774, 775, 5, 92, 47, 2, 775, 776, 7, 119, 2, 2, 776, 777, 7, 147, 2, 2, 777, 778, 7, 121, 2, 2, 778, 790, 3, 2, 2, 2, 779, 780, 7, 120, 2, 2, 780, 781, 5, 92, 47, 2, 781, 782, 7, 121, 2, 2, 782, 790, 3, 2, 2, 2, 783, 784, 7, 120, 2, 2, 784, 785, 7, 120, 2, 2, 785, 786, 5, 92, 47, 2, 786, 787, 7, 121, 2, 2, 787, 788, 7, 121, 2, 2, 788, 790, 3, 2, 2, 2, 789, 744, 3, 2, 2, 2, 789, 745, 3, 2, 2, 2, 789, 747, 3, 2, 2, 2, 789, 751, 3, 2, 2, 2, 789, 757, 3, 2, 2, 2, 789, 765, 3, 2, 2, 2, 789, 773, 3, 2, 2, 2, 789, 779, 3, 2, 2, 2, 789, 783, 3, 2, 2, 2, 790, 91, 3, 2, 2, 2, 791, 792, 8, 47, 1, 2, 792, 793, 7, 122, 2, 2, 793, 794, 5, 92, 47, 2, 794, 795, 7, 123, 2, 2, 795, 806, 3, 2, 2, 2, 796, 797, 9, 9, 2, 2, 797, 806, 5, 92, 47, 10, 798, 806, 7, 147, 2, 2, 799, 806, 7, 145, 2, 2, 800, 801, 7, 133, 2, 2, 801, 802, 7, 147, 2, 2, 802, 806, 7, 134, 2, 2, 803, 806, 7, 135, 2, 2, 804, 806, 7, 144, 2, 2, 805, 791, 3, 2, 2, 2, 805, 796, 3, 2, 2, 2, 805, 798, 3, 2, 2, 2, 805, 799, 3, 2, 2, 2, 805, 800, 3, 2, 2, 2, 805, 803, 3, 2, 2, 2, 805, 804, 3, 2, 2, 2, 806, 821, 3, 2, 2, 2, 807, 808, 12, 12, 2, 2, 808, 809, 7, 124, 2, 2, 809, 820, 5, 92, 47, 13, 810, 811, 12, 11, 2, 2, 811, 812, 9, 10, 2, 2, 812, 820, 5, 92, 47, 12, 813, 814, 12, 9, 2, 2, 814, 815, 9, 11, 2, 2, 815, 820, 5, 92, 47, 10, 816, 817, 12, 8, 2, 2, 817, 818, 9, 12, 2, 2, 818, 820, 5, 92, 47, 9, 819, 807, 3, 2, 2, 2, 819, 810, 3, 2, 2, 2, 819, 813, 3, 2, 2, 2, 819, 816, 3, 2, 2, 2, 820, 823, 3, 2, 2, 2, 821, 819, 3, 2, 2, 2, 821, 822, 3, 2, 2, 2, 822, 93, 3, 2, 2, 2, 823, 821, 3, 2, 2, 2, 82, 103, 120, 133, 139, 145, 155, 162, 173, 176, 178, 188, 196, 201, 206, 213, 220, 227, 235, 241, 253, 267, 273, 279, 284, 288, 297, 305, 315, 327, 338, 359, 368, 374, 379, 386, 399, 404, 416, 430, 449, 458, 466, 471, 476, 478, 484, 489, 493, 502, 505, 508, 520, 532, 540, 546, 550, 571, 575, 584, 588, 638, 648, 650, 658, 663, 673, 688, 693, 699, 706, 714, 717, 721, 726, 735, 741, 789, 805, 819, 821]
\ No newline at end of file
+[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 156, 811, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 4, 7, 4, 100, 10, 4, 12, 4, 14, 4, 103, 11, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 5, 5, 119, 10, 5, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 7, 7, 130, 10, 7, 12, 7, 14, 7, 133, 11, 7, 3, 8, 3, 8, 3, 8, 5, 8, 138, 10, 8, 3, 8, 3, 8, 3, 8, 3, 8, 5, 8, 144, 10, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 7, 10, 152, 10, 10, 12, 10, 14, 10, 155, 11, 10, 3, 10, 3, 10, 7, 10, 159, 10, 10, 12, 10, 14, 10, 162, 11, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 5, 11, 172, 10, 11, 3, 11, 7, 11, 175, 10, 11, 12, 11, 14, 11, 178, 11, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 7, 12, 185, 10, 12, 12, 12, 14, 12, 188, 11, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 195, 10, 12, 3, 12, 3, 12, 3, 12, 5, 12, 200, 10, 12, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 206, 10, 12, 3, 12, 7, 12, 209, 10, 12, 12, 12, 14, 12, 212, 11, 12, 3, 13, 3, 13, 3, 13, 5, 13, 217, 10, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 5, 13, 224, 10, 13, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 5, 15, 231, 10, 15, 3, 15, 3, 15, 6, 15, 235, 10, 15, 13, 15, 14, 15, 236, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 5, 18, 249, 10, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 7, 19, 261, 10, 19, 12, 19, 14, 19, 264, 11, 19, 3, 20, 3, 20, 3, 20, 5, 20, 269, 10, 20, 3, 21, 3, 21, 3, 21, 3, 21, 5, 21, 275, 10, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 7, 22, 282, 10, 22, 12, 22, 14, 22, 285, 11, 22, 3, 23, 3, 23, 3, 23, 3, 23, 3, 23, 5, 23, 292, 10, 23, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 7, 24, 300, 10, 24, 12, 24, 14, 24, 303, 11, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 5, 25, 314, 10, 25, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 5, 26, 325, 10, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 5, 26, 346, 10, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 7, 26, 353, 10, 26, 12, 26, 14, 26, 356, 11, 26, 3, 26, 3, 26, 3, 26, 5, 26, 361, 10, 26, 3, 27, 6, 27, 364, 10, 27, 13, 27, 14, 27, 365, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 5, 28, 373, 10, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 5, 28, 386, 10, 28, 3, 28, 7, 28, 389, 10, 28, 12, 28, 14, 28, 392, 11, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 7, 28, 401, 10, 28, 12, 28, 14, 28, 404, 11, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 7, 28, 415, 10, 28, 12, 28, 14, 28, 418, 11, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 5, 28, 436, 10, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 5, 28, 445, 10, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 5, 28, 453, 10, 28, 3, 29, 6, 29, 456, 10, 29, 13, 29, 14, 29, 457, 3, 29, 3, 29, 3, 29, 5, 29, 463, 10, 29, 5, 29, 465, 10, 29, 3, 30, 3, 30, 3, 30, 3, 30, 5, 30, 471, 10, 30, 3, 31, 3, 31, 3, 31, 5, 31, 476, 10, 31, 3, 31, 3, 31, 5, 31, 480, 10, 31, 3, 31, 3, 31, 3, 31, 3, 31, 3, 31, 3, 31, 3, 31, 5, 31, 489, 10, 31, 3, 32, 5, 32, 492, 10, 32, 3, 32, 5, 32, 495, 10, 32, 3, 33, 3, 33, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 7, 34, 505, 10, 34, 12, 34, 14, 34, 508, 11, 34, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 5, 35, 519, 10, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 5, 35, 527, 10, 35, 3, 35, 3, 35, 3, 35, 3, 35, 5, 35, 533, 10, 35, 3, 35, 3, 35, 5, 35, 537, 10, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 7, 35, 556, 10, 35, 12, 35, 14, 35, 559, 11, 35, 3, 35, 5, 35, 562, 10, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 6, 35, 569, 10, 35, 13, 35, 14, 35, 570, 3, 35, 3, 35, 5, 35, 575, 10, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 5, 35, 625, 10, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 7, 35, 635, 10, 35, 12, 35, 14, 35, 638, 11, 35, 3, 36, 3, 36, 3, 36, 7, 36, 643, 10, 36, 12, 36, 14, 36, 646, 11, 36, 3, 37, 3, 37, 5, 37, 650, 10, 37, 3, 37, 3, 37, 3, 38, 3, 38, 3, 38, 3, 38, 7, 38, 658, 10, 38, 12, 38, 14, 38, 661, 11, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 5, 39, 675, 10, 39, 3, 40, 7, 40, 678, 10, 40, 12, 40, 14, 40, 681, 11, 40, 3, 41, 3, 41, 3, 41, 5, 41, 686, 10, 41, 3, 42, 3, 42, 3, 42, 7, 42, 691, 10, 42, 12, 42, 14, 42, 694, 11, 42, 3, 42, 3, 42, 3, 42, 7, 42, 699, 10, 42, 12, 42, 14, 42, 702, 11, 42, 5, 42, 704, 10, 42, 3, 43, 3, 43, 5, 43, 708, 10, 43, 3, 43, 7, 43, 711, 10, 43, 12, 43, 14, 43, 714, 11, 43, 3, 44, 3, 44, 3, 44, 3, 44, 7, 44, 720, 10, 44, 12, 44, 14, 44, 723, 11, 44, 3, 44, 7, 44, 726, 10, 44, 12, 44, 14, 44, 729, 11, 44, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 5, 45, 776, 10, 45, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 5, 46, 792, 10, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 7, 46, 806, 10, 46, 12, 46, 14, 46, 809, 11, 46, 3, 46, 2, 9, 12, 20, 22, 36, 66, 68, 90, 47, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 2, 13, 3, 2, 23, 24, 5, 2, 18, 19, 25, 26, 82, 82, 4, 2, 33, 33, 36, 36, 3, 2, 29, 30, 3, 2, 20, 22, 3, 2, 18, 19, 3, 2, 31, 36, 3, 2, 127, 130, 3, 2, 125, 126, 3, 2, 131, 132, 3, 2, 127, 128, 2, 931, 2, 92, 3, 2, 2, 2, 4, 95, 3, 2, 2, 2, 6, 101, 3, 2, 2, 2, 8, 118, 3, 2, 2, 2, 10, 120, 3, 2, 2, 2, 12, 123, 3, 2, 2, 2, 14, 143, 3, 2, 2, 2, 16, 145, 3, 2, 2, 2, 18, 153, 3, 2, 2, 2, 20, 163, 3, 2, 2, 2, 22, 194, 3, 2, 2, 2, 24, 223, 3, 2, 2, 2, 26, 225, 3, 2, 2, 2, 28, 228, 3, 2, 2, 2, 30, 240, 3, 2, 2, 2, 32, 243, 3, 2, 2, 2, 34, 246, 3, 2, 2, 2, 36, 254, 3, 2, 2, 2, 38, 265, 3, 2, 2, 2, 40, 270, 3, 2, 2, 2, 42, 278, 3, 2, 2, 2, 44, 291, 3, 2, 2, 2, 46, 293, 3, 2, 2, 2, 48, 313, 3, 2, 2, 2, 50, 360, 3, 2, 2, 2, 52, 363, 3, 2, 2, 2, 54, 452, 3, 2, 2, 2, 56, 455, 3, 2, 2, 2, 58, 466, 3, 2, 2, 2, 60, 488, 3, 2, 2, 2, 62, 494, 3, 2, 2, 2, 64, 496, 3, 2, 2, 2, 66, 498, 3, 2, 2, 2, 68, 574, 3, 2, 2, 2, 70, 639, 3, 2, 2, 2, 72, 647, 3, 2, 2, 2, 74, 653, 3, 2, 2, 2, 76, 674, 3, 2, 2, 2, 78, 679, 3, 2, 2, 2, 80, 685, 3, 2, 2, 2, 82, 703, 3, 2, 2, 2, 84, 705, 3, 2, 2, 2, 86, 715, 3, 2, 2, 2, 88, 775, 3, 2, 2, 2, 90, 791, 3, 2, 2, 2, 92, 93, 5, 6, 4, 2, 93, 94, 7, 2, 2, 3, 94, 3, 3, 2, 2, 2, 95, 96, 5, 78, 40, 2, 96, 97, 7, 2, 2, 3, 97, 5, 3, 2, 2, 2, 98, 100, 5, 8, 5, 2, 99, 98, 3, 2, 2, 2, 100, 103, 3, 2, 2, 2, 101, 99, 3, 2, 2, 2, 101, 102, 3, 2, 2, 2, 102, 7, 3, 2, 2, 2, 103, 101, 3, 2, 2, 2, 104, 105, 5, 10, 6, 2, 105, 106, 7, 10, 2, 2, 106, 119, 3, 2, 2, 2, 107, 119, 5, 40, 21, 2, 108, 109, 5, 28, 15, 2, 109, 110, 7, 10, 2, 2, 110, 119, 3, 2, 2, 2, 111, 112, 5, 34, 18, 2, 112, 113, 7, 10, 2, 2, 113, 119, 3, 2, 2, 2, 114, 119, 5, 46, 24, 2, 115, 116, 5, 16, 9, 2, 116, 117, 7, 10, 2, 2, 117, 119, 3, 2, 2, 2, 118, 104, 3, 2, 2, 2, 118, 107, 3, 2, 2, 2, 118, 108, 3, 2, 2, 2, 118, 111, 3, 2, 2, 2, 118, 114, 3, 2, 2, 2, 118, 115, 3, 2, 2, 2, 119, 9, 3, 2, 2, 2, 120, 121, 5, 18, 10, 2, 121, 122, 5, 12, 7, 2, 122, 11, 3, 2, 2, 2, 123, 124, 8, 7, 1, 2, 124, 125, 5, 14, 8, 2, 125, 131, 3, 2, 2, 2, 126, 127, 12, 3, 2, 2, 127, 128, 7, 12, 2, 2, 128, 130, 5, 14, 8, 2, 129, 126, 3, 2, 2, 2, 130, 133, 3, 2, 2, 2, 131, 129, 3, 2, 2, 2, 131, 132, 3, 2, 2, 2, 132, 13, 3, 2, 2, 2, 133, 131, 3, 2, 2, 2, 134, 137, 5, 22, 12, 2, 135, 136, 7, 39, 2, 2, 136, 138, 5, 68, 35, 2, 137, 135, 3, 2, 2, 2, 137, 138, 3, 2, 2, 2, 138, 144, 3, 2, 2, 2, 139, 140, 5, 22, 12, 2, 140, 141, 7, 39, 2, 2, 141, 142, 5, 72, 37, 2, 142, 144, 3, 2, 2, 2, 143, 134, 3, 2, 2, 2, 143, 139, 3, 2, 2, 2, 144, 15, 3, 2, 2, 2, 145, 146, 7, 41, 2, 2, 146, 147, 5, 18, 10, 2, 147, 148, 8, 9, 1, 2, 148, 149, 5, 22, 12, 2, 149, 17, 3, 2, 2, 2, 150, 152, 5, 50, 26, 2, 151, 150, 3, 2, 2, 2, 152, 155, 3, 2, 2, 2, 153, 151, 3, 2, 2, 2, 153, 154, 3, 2, 2, 2, 154, 156, 3, 2, 2, 2, 155, 153, 3, 2, 2, 2, 156, 160, 5, 24, 13, 2, 157, 159, 5, 50, 26, 2, 158, 157, 3, 2, 2, 2, 159, 162, 3, 2, 2, 2, 160, 158, 3, 2, 2, 2, 160, 161, 3, 2, 2, 2, 161, 19, 3, 2, 2, 2, 162, 160, 3, 2, 2, 2, 163, 164, 8, 11, 1, 2, 164, 165, 5, 24, 13, 2, 165, 176, 3, 2, 2, 2, 166, 167, 12, 4, 2, 2, 167, 175, 7, 20, 2, 2, 168, 169, 12, 3, 2, 2, 169, 171, 7, 6, 2, 2, 170, 172, 5, 68, 35, 2, 171, 170, 3, 2, 2, 2, 171, 172, 3, 2, 2, 2, 172, 173, 3, 2, 2, 2, 173, 175, 7, 7, 2, 2, 174, 166, 3, 2, 2, 2, 174, 168, 3, 2, 2, 2, 175, 178, 3, 2, 2, 2, 176, 174, 3, 2, 2, 2, 176, 177, 3, 2, 2, 2, 177, 21, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 179, 180, 8, 12, 1, 2, 180, 181, 7, 109, 2, 2, 181, 195, 8, 12, 1, 2, 182, 186, 7, 20, 2, 2, 183, 185, 5, 50, 26, 2, 184, 183, 3, 2, 2, 2, 185, 188, 3, 2, 2, 2, 186, 184, 3, 2, 2, 2, 186, 187, 3, 2, 2, 2, 187, 189, 3, 2, 2, 2, 188, 186, 3, 2, 2, 2, 189, 195, 5, 22, 12, 4, 190, 191, 7, 8, 2, 2, 191, 192, 5, 22, 12, 2, 192, 193, 7, 9, 2, 2, 193, 195, 3, 2, 2, 2, 194, 179, 3, 2, 2, 2, 194, 182, 3, 2, 2, 2, 194, 190, 3, 2, 2, 2, 195, 210, 3, 2, 2, 2, 196, 197, 12, 6, 2, 2, 197, 199, 7, 8, 2, 2, 198, 200, 5, 42, 22, 2, 199, 198, 3, 2, 2, 2, 199, 200, 3, 2, 2, 2, 200, 201, 3, 2, 2, 2, 201, 209, 7, 9, 2, 2, 202, 203, 12, 5, 2, 2, 203, 205, 7, 6, 2, 2, 204, 206, 5, 68, 35, 2, 205, 204, 3, 2, 2, 2, 205, 206, 3, 2, 2, 2, 206, 207, 3, 2, 2, 2, 207, 209, 7, 7, 2, 2, 208, 196, 3, 2, 2, 2, 208, 202, 3, 2, 2, 2, 209, 212, 3, 2, 2, 2, 210, 208, 3, 2, 2, 2, 210, 211, 3, 2, 2, 2, 211, 23, 3, 2, 2, 2, 212, 210, 3, 2, 2, 2, 213, 224, 7, 84, 2, 2, 214, 216, 7, 83, 2, 2, 215, 217, 7, 84, 2, 2, 216, 215, 3, 2, 2, 2, 216, 217, 3, 2, 2, 2, 217, 224, 3, 2, 2, 2, 218, 224, 5, 28, 15, 2, 219, 224, 5, 26, 14, 2, 220, 224, 5, 34, 18, 2, 221, 224, 5, 32, 17, 2, 222, 224, 7, 3, 2, 2, 223, 213, 3, 2, 2, 2, 223, 214, 3, 2, 2, 2, 223, 218, 3, 2, 2, 2, 223, 219, 3, 2, 2, 2, 223, 220, 3, 2, 2, 2, 223, 221, 3, 2, 2, 2, 223, 222, 3, 2, 2, 2, 224, 25, 3, 2, 2, 2, 225, 226, 7, 71, 2, 2, 226, 227, 7, 109, 2, 2, 227, 27, 3, 2, 2, 2, 228, 230, 7, 71, 2, 2, 229, 231, 7, 109, 2, 2, 230, 229, 3, 2, 2, 2, 230, 231, 3, 2, 2, 2, 231, 232, 3, 2, 2, 2, 232, 234, 7, 4, 2, 2, 233, 235, 5, 30, 16, 2, 234, 233, 3, 2, 2, 2, 235, 236, 3, 2, 2, 2, 236, 234, 3, 2, 2, 2, 236, 237, 3, 2, 2, 2, 237, 238, 3, 2, 2, 2, 238, 239, 7, 5, 2, 2, 239, 29, 3, 2, 2, 2, 240, 241, 5, 10, 6, 2, 241, 242, 7, 10, 2, 2, 242, 31, 3, 2, 2, 2, 243, 244, 7, 72, 2, 2, 244, 245, 7, 109, 2, 2, 245, 33, 3, 2, 2, 2, 246, 248, 7, 72, 2, 2, 247, 249, 7, 109, 2, 2, 248, 247, 3, 2, 2, 2, 248, 249, 3, 2, 2, 2, 249, 250, 3, 2, 2, 2, 250, 251, 7, 4, 2, 2, 251, 252, 5, 36, 19, 2, 252, 253, 7, 5, 2, 2, 253, 35, 3, 2, 2, 2, 254, 255, 8, 19, 1, 2, 255, 256, 5, 38, 20, 2, 256, 262, 3, 2, 2, 2, 257, 258, 12, 3, 2, 2, 258, 259, 7, 12, 2, 2, 259, 261, 5, 38, 20, 2, 260, 257, 3, 2, 2, 2, 261, 264, 3, 2, 2, 2, 262, 260, 3, 2, 2, 2, 262, 263, 3, 2, 2, 2, 263, 37, 3, 2, 2, 2, 264, 262, 3, 2, 2, 2, 265, 268, 7, 109, 2, 2, 266, 267, 7, 39, 2, 2, 267, 269, 5, 68, 35, 2, 268, 266, 3, 2, 2, 2, 268, 269, 3, 2, 2, 2, 269, 39, 3, 2, 2, 2, 270, 271, 5, 18, 10, 2, 271, 272, 5, 22, 12, 2, 272, 274, 7, 4, 2, 2, 273, 275, 5, 52, 27, 2, 274, 273, 3, 2, 2, 2, 274, 275, 3, 2, 2, 2, 275, 276, 3, 2, 2, 2, 276, 277, 7, 5, 2, 2, 277, 41, 3, 2, 2, 2, 278, 283, 5, 44, 23, 2, 279, 280, 7, 12, 2, 2, 280, 282, 5, 44, 23, 2, 281, 279, 3, 2, 2, 2, 282, 285, 3, 2, 2, 2, 283, 281, 3, 2, 2, 2, 283, 284, 3, 2, 2, 2, 284, 43, 3, 2, 2, 2, 285, 283, 3, 2, 2, 2, 286, 287, 5, 18, 10, 2, 287, 288, 5, 22, 12, 2, 288, 292, 3, 2, 2, 2, 289, 292, 7, 84, 2, 2, 290, 292, 7, 14, 2, 2, 291, 286, 3, 2, 2, 2, 291, 289, 3, 2, 2, 2, 291, 290, 3, 2, 2, 2, 292, 45, 3, 2, 2, 2, 293, 294, 7, 89, 2, 2, 294, 295, 7, 109, 2, 2, 295, 296, 7, 8, 2, 2, 296, 301, 5, 48, 25, 2, 297, 298, 7, 12, 2, 2, 298, 300, 5, 48, 25, 2, 299, 297, 3, 2, 2, 2, 300, 303, 3, 2, 2, 2, 301, 299, 3, 2, 2, 2, 301, 302, 3, 2, 2, 2, 302, 304, 3, 2, 2, 2, 303, 301, 3, 2, 2, 2, 304, 305, 7, 9, 2, 2, 305, 47, 3, 2, 2, 2, 306, 314, 7, 100, 2, 2, 307, 308, 7, 100, 2, 2, 308, 309, 7, 13, 2, 2, 309, 314, 7, 100, 2, 2, 310, 314, 7, 109, 2, 2, 311, 314, 7, 110, 2, 2, 312, 314, 7, 58, 2, 2, 313, 306, 3, 2, 2, 2, 313, 307, 3, 2, 2, 2, 313, 310, 3, 2, 2, 2, 313, 311, 3, 2, 2, 2, 313, 312, 3, 2, 2, 2, 314, 49, 3, 2, 2, 2, 315, 361, 7, 42, 2, 2, 316, 317, 7, 45, 2, 2, 317, 318, 7, 8, 2, 2, 318, 319, 7, 100, 2, 2, 319, 361, 7, 9, 2, 2, 320, 324, 7, 50, 2, 2, 321, 322, 7, 8, 2, 2, 322, 323, 7, 109, 2, 2, 323, 325, 7, 9, 2, 2, 324, 321, 3, 2, 2, 2, 324, 325, 3, 2, 2, 2, 325, 361, 3, 2, 2, 2, 326, 361, 7, 53, 2, 2, 327, 361, 7, 54, 2, 2, 328, 329, 7, 52, 2, 2, 329, 330, 7, 8, 2, 2, 330, 331, 5, 68, 35, 2, 331, 332, 7, 9, 2, 2, 332, 361, 3, 2, 2, 2, 333, 361, 7, 47, 2, 2, 334, 361, 7, 48, 2, 2, 335, 361, 7, 55, 2, 2, 336, 361, 7, 56, 2, 2, 337, 361, 7, 43, 2, 2, 338, 361, 7, 44, 2, 2, 339, 361, 7, 46, 2, 2, 340, 361, 7, 57, 2, 2, 341, 345, 7, 49, 2, 2, 342, 343, 7, 8, 2, 2, 343, 344, 7, 109, 2, 2, 344, 346, 7, 9, 2, 2, 345, 342, 3, 2, 2, 2, 345, 346, 3, 2, 2, 2, 346, 361, 3, 2, 2, 2, 347, 348, 7, 51, 2, 2, 348, 349, 7, 8, 2, 2, 349, 354, 5, 48, 25, 2, 350, 351, 7, 12, 2, 2, 351, 353, 5, 48, 25, 2, 352, 350, 3, 2, 2, 2, 353, 356, 3, 2, 2, 2, 354, 352, 3, 2, 2, 2, 354, 355, 3, 2, 2, 2, 355, 357, 3, 2, 2, 2, 356, 354, 3, 2, 2, 2, 357, 358, 7, 9, 2, 2, 358, 361, 3, 2, 2, 2, 359, 361, 7, 58, 2, 2, 360, 315, 3, 2, 2, 2, 360, 316, 3, 2, 2, 2, 360, 320, 3, 2, 2, 2, 360, 326, 3, 2, 2, 2, 360, 327, 3, 2, 2, 2, 360, 328, 3, 2, 2, 2, 360, 333, 3, 2, 2, 2, 360, 334, 3, 2, 2, 2, 360, 335, 3, 2, 2, 2, 360, 336, 3, 2, 2, 2, 360, 337, 3, 2, 2, 2, 360, 338, 3, 2, 2, 2, 360, 339, 3, 2, 2, 2, 360, 340, 3, 2, 2, 2, 360, 341, 3, 2, 2, 2, 360, 347, 3, 2, 2, 2, 360, 359, 3, 2, 2, 2, 361, 51, 3, 2, 2, 2, 362, 364, 5, 54, 28, 2, 363, 362, 3, 2, 2, 2, 364, 365, 3, 2, 2, 2, 365, 363, 3, 2, 2, 2, 365, 366, 3, 2, 2, 2, 366, 53, 3, 2, 2, 2, 367, 368, 5, 10, 6, 2, 368, 369, 7, 10, 2, 2, 369, 453, 3, 2, 2, 2, 370, 372, 7, 4, 2, 2, 371, 373, 5, 52, 27, 2, 372, 371, 3, 2, 2, 2, 372, 373, 3, 2, 2, 2, 373, 374, 3, 2, 2, 2, 374, 453, 7, 5, 2, 2, 375, 376, 5, 66, 34, 2, 376, 377, 7, 10, 2, 2, 377, 453, 3, 2, 2, 2, 378, 379, 7, 59, 2, 2, 379, 380, 7, 8, 2, 2, 380, 381, 5, 66, 34, 2, 381, 382, 7, 9, 2, 2, 382, 385, 5, 54, 28, 2, 383, 384, 7, 60, 2, 2, 384, 386, 5, 54, 28, 2, 385, 383, 3, 2, 2, 2, 385, 386, 3, 2, 2, 2, 386, 453, 3, 2, 2, 2, 387, 389, 5, 50, 26, 2, 388, 387, 3, 2, 2, 2, 389, 392, 3, 2, 2, 2, 390, 388, 3, 2, 2, 2, 390, 391, 3, 2, 2, 2, 391, 393, 3, 2, 2, 2, 392, 390, 3, 2, 2, 2, 393, 394, 7, 61, 2, 2, 394, 395, 7, 8, 2, 2, 395, 396, 5, 66, 34, 2, 396, 397, 7, 9, 2, 2, 397, 398, 5, 54, 28, 2, 398, 453, 3, 2, 2, 2, 399, 401, 5, 50, 26, 2, 400, 399, 3, 2, 2, 2, 401, 404, 3, 2, 2, 2, 402, 400, 3, 2, 2, 2, 402, 403, 3, 2, 2, 2, 403, 405, 3, 2, 2, 2, 404, 402, 3, 2, 2, 2, 405, 406, 7, 62, 2, 2, 406, 407, 5, 54, 28, 2, 407, 408, 7, 61, 2, 2, 408, 409, 7, 8, 2, 2, 409, 410, 5, 66, 34, 2, 410, 411, 7, 9, 2, 2, 411, 412, 7, 10, 2, 2, 412, 453, 3, 2, 2, 2, 413, 415, 5, 50, 26, 2, 414, 413, 3, 2, 2, 2, 415, 418, 3, 2, 2, 2, 416, 414, 3, 2, 2, 2, 416, 417, 3, 2, 2, 2, 417, 419, 3, 2, 2, 2, 418, 416, 3, 2, 2, 2, 419, 420, 7, 63, 2, 2, 420, 421, 7, 8, 2, 2, 421, 422, 5, 60, 31, 2, 422, 423, 7, 9, 2, 2, 423, 424, 5, 54, 28, 2, 424, 453, 3, 2, 2, 2, 425, 426, 7, 64, 2, 2, 426, 427, 7, 8, 2, 2, 427, 428, 5, 66, 34, 2, 428, 429, 7, 9, 2, 2, 429, 430, 7, 4, 2, 2, 430, 431, 5, 56, 29, 2, 431, 432, 7, 5, 2, 2, 432, 453, 3, 2, 2, 2, 433, 435, 7, 65, 2, 2, 434, 436, 5, 66, 34, 2, 435, 434, 3, 2, 2, 2, 435, 436, 3, 2, 2, 2, 436, 437, 3, 2, 2, 2, 437, 453, 7, 10, 2, 2, 438, 439, 7, 66, 2, 2, 439, 453, 7, 10, 2, 2, 440, 441, 7, 67, 2, 2, 441, 453, 7, 10, 2, 2, 442, 444, 7, 68, 2, 2, 443, 445, 5, 74, 38, 2, 444, 443, 3, 2, 2, 2, 444, 445, 3, 2, 2, 2, 445, 446, 3, 2, 2, 2, 446, 447, 7, 4, 2, 2, 447, 448, 5, 78, 40, 2, 448, 449, 7, 134, 2, 2, 449, 453, 3, 2, 2, 2, 450, 453, 5, 72, 37, 2, 451, 453, 7, 10, 2, 2, 452, 367, 3, 2, 2, 2, 452, 370, 3, 2, 2, 2, 452, 375, 3, 2, 2, 2, 452, 378, 3, 2, 2, 2, 452, 390, 3, 2, 2, 2, 452, 402, 3, 2, 2, 2, 452, 416, 3, 2, 2, 2, 452, 425, 3, 2, 2, 2, 452, 433, 3, 2, 2, 2, 452, 438, 3, 2, 2, 2, 452, 440, 3, 2, 2, 2, 452, 442, 3, 2, 2, 2, 452, 450, 3, 2, 2, 2, 452, 451, 3, 2, 2, 2, 453, 55, 3, 2, 2, 2, 454, 456, 5, 58, 30, 2, 455, 454, 3, 2, 2, 2, 456, 457, 3, 2, 2, 2, 457, 455, 3, 2, 2, 2, 457, 458, 3, 2, 2, 2, 458, 464, 3, 2, 2, 2, 459, 460, 7, 69, 2, 2, 460, 462, 7, 11, 2, 2, 461, 463, 5, 52, 27, 2, 462, 461, 3, 2, 2, 2, 462, 463, 3, 2, 2, 2, 463, 465, 3, 2, 2, 2, 464, 459, 3, 2, 2, 2, 464, 465, 3, 2, 2, 2, 465, 57, 3, 2, 2, 2, 466, 467, 7, 70, 2, 2, 467, 468, 5, 68, 35, 2, 468, 470, 7, 11, 2, 2, 469, 471, 5, 52, 27, 2, 470, 469, 3, 2, 2, 2, 470, 471, 3, 2, 2, 2, 471, 59, 3, 2, 2, 2, 472, 473, 5, 62, 32, 2, 473, 475, 7, 10, 2, 2, 474, 476, 5, 64, 33, 2, 475, 474, 3, 2, 2, 2, 475, 476, 3, 2, 2, 2, 476, 477, 3, 2, 2, 2, 477, 479, 7, 10, 2, 2, 478, 480, 5, 66, 34, 2, 479, 478, 3, 2, 2, 2, 479, 480, 3, 2, 2, 2, 480, 489, 3, 2, 2, 2, 481, 482, 5, 18, 10, 2, 482, 483, 5, 22, 12, 2, 483, 484, 7, 11, 2, 2, 484, 485, 5, 68, 35, 2, 485, 486, 7, 13, 2, 2, 486, 487, 5, 68, 35, 2, 487, 489, 3, 2, 2, 2, 488, 472, 3, 2, 2, 2, 488, 481, 3, 2, 2, 2, 489, 61, 3, 2, 2, 2, 490, 492, 5, 10, 6, 2, 491, 490, 3, 2, 2, 2, 491, 492, 3, 2, 2, 2, 492, 495, 3, 2, 2, 2, 493, 495, 5, 66, 34, 2, 494, 491, 3, 2, 2, 2, 494, 493, 3, 2, 2, 2, 495, 63, 3, 2, 2, 2, 496, 497, 5, 66, 34, 2, 497, 65, 3, 2, 2, 2, 498, 499, 8, 34, 1, 2, 499, 500, 5, 68, 35, 2, 500, 506, 3, 2, 2, 2, 501, 502, 12, 3, 2, 2, 502, 503, 7, 12, 2, 2, 503, 505, 5, 68, 35, 2, 504, 501, 3, 2, 2, 2, 505, 508, 3, 2, 2, 2, 506, 504, 3, 2, 2, 2, 506, 507, 3, 2, 2, 2, 507, 67, 3, 2, 2, 2, 508, 506, 3, 2, 2, 2, 509, 510, 8, 35, 1, 2, 510, 511, 7, 8, 2, 2, 511, 512, 5, 66, 34, 2, 512, 513, 7, 9, 2, 2, 513, 575, 3, 2, 2, 2, 514, 515, 7, 73, 2, 2, 515, 518, 7, 8, 2, 2, 516, 519, 5, 68, 35, 2, 517, 519, 5, 20, 11, 2, 518, 516, 3, 2, 2, 2, 518, 517, 3, 2, 2, 2, 519, 520, 3, 2, 2, 2, 520, 521, 7, 9, 2, 2, 521, 575, 3, 2, 2, 2, 522, 523, 7, 74, 2, 2, 523, 526, 7, 8, 2, 2, 524, 527, 5, 68, 35, 2, 525, 527, 5, 20, 11, 2, 526, 524, 3, 2, 2, 2, 526, 525, 3, 2, 2, 2, 527, 528, 3, 2, 2, 2, 528, 529, 7, 9, 2, 2, 529, 575, 3, 2, 2, 2, 530, 532, 7, 75, 2, 2, 531, 533, 7, 8, 2, 2, 532, 531, 3, 2, 2, 2, 532, 533, 3, 2, 2, 2, 533, 534, 3, 2, 2, 2, 534, 536, 7, 109, 2, 2, 535, 537, 7, 9, 2, 2, 536, 535, 3, 2, 2, 2, 536, 537, 3, 2, 2, 2, 537, 575, 3, 2, 2, 2, 538, 539, 7, 8, 2, 2, 539, 540, 5, 20, 11, 2, 540, 541, 7, 9, 2, 2, 541, 542, 5, 68, 35, 26, 542, 575, 3, 2, 2, 2, 543, 544, 9, 2, 2, 2, 544, 575, 5, 68, 35, 25, 545, 546, 7, 20, 2, 2, 546, 575, 5, 68, 35, 23, 547, 548, 9, 3, 2, 2, 548, 575, 5, 68, 35, 22, 549, 550, 9, 4, 2, 2, 550, 575, 5, 68, 35, 18, 551, 552, 7, 4, 2, 2, 552, 557, 5, 68, 35, 2, 553, 554, 7, 12, 2, 2, 554, 556, 5, 68, 35, 2, 555, 553, 3, 2, 2, 2, 556, 559, 3, 2, 2, 2, 557, 555, 3, 2, 2, 2, 557, 558, 3, 2, 2, 2, 558, 561, 3, 2, 2, 2, 559, 557, 3, 2, 2, 2, 560, 562, 7, 12, 2, 2, 561, 560, 3, 2, 2, 2, 561, 562, 3, 2, 2, 2, 562, 563, 3, 2, 2, 2, 563, 564, 7, 5, 2, 2, 564, 575, 3, 2, 2, 2, 565, 575, 7, 109, 2, 2, 566, 575, 7, 100, 2, 2, 567, 569, 7, 110, 2, 2, 568, 567, 3, 2, 2, 2, 569, 570, 3, 2, 2, 2, 570, 568, 3, 2, 2, 2, 570, 571, 3, 2, 2, 2, 571, 575, 3, 2, 2, 2, 572, 575, 7, 111, 2, 2, 573, 575, 7, 85, 2, 2, 574, 509, 3, 2, 2, 2, 574, 514, 3, 2, 2, 2, 574, 522, 3, 2, 2, 2, 574, 530, 3, 2, 2, 2, 574, 538, 3, 2, 2, 2, 574, 543, 3, 2, 2, 2, 574, 545, 3, 2, 2, 2, 574, 547, 3, 2, 2, 2, 574, 549, 3, 2, 2, 2, 574, 551, 3, 2, 2, 2, 574, 565, 3, 2, 2, 2, 574, 566, 3, 2, 2, 2, 574, 568, 3, 2, 2, 2, 574, 572, 3, 2, 2, 2, 574, 573, 3, 2, 2, 2, 575, 636, 3, 2, 2, 2, 576, 577, 12, 21, 2, 2, 577, 578, 9, 5, 2, 2, 578, 635, 5, 68, 35, 22, 579, 580, 12, 20, 2, 2, 580, 581, 9, 6, 2, 2, 581, 635, 5, 68, 35, 21, 582, 583, 12, 19, 2, 2, 583, 584, 9, 7, 2, 2, 584, 635, 5, 68, 35, 20, 585, 586, 12, 17, 2, 2, 586, 587, 9, 8, 2, 2, 587, 635, 5, 68, 35, 18, 588, 589, 12, 16, 2, 2, 589, 590, 7, 25, 2, 2, 590, 635, 5, 68, 35, 17, 591, 592, 12, 15, 2, 2, 592, 593, 7, 27, 2, 2, 593, 635, 5, 68, 35, 16, 594, 595, 12, 14, 2, 2, 595, 596, 7, 28, 2, 2, 596, 635, 5, 68, 35, 15, 597, 598, 12, 13, 2, 2, 598, 599, 7, 37, 2, 2, 599, 635, 5, 68, 35, 14, 600, 601, 12, 12, 2, 2, 601, 602, 7, 38, 2, 2, 602, 635, 5, 68, 35, 13, 603, 604, 12, 11, 2, 2, 604, 605, 7, 15, 2, 2, 605, 606, 5, 68, 35, 2, 606, 607, 7, 11, 2, 2, 607, 608, 5, 68, 35, 12, 608, 635, 3, 2, 2, 2, 609, 610, 12, 10, 2, 2, 610, 611, 7, 39, 2, 2, 611, 635, 5, 68, 35, 10, 612, 613, 12, 9, 2, 2, 613, 614, 7, 40, 2, 2, 614, 635, 5, 68, 35, 9, 615, 616, 12, 33, 2, 2, 616, 617, 7, 16, 2, 2, 617, 635, 7, 109, 2, 2, 618, 619, 12, 32, 2, 2, 619, 620, 7, 17, 2, 2, 620, 635, 7, 109, 2, 2, 621, 622, 12, 31, 2, 2, 622, 624, 7, 8, 2, 2, 623, 625, 5, 70, 36, 2, 624, 623, 3, 2, 2, 2, 624, 625, 3, 2, 2, 2, 625, 626, 3, 2, 2, 2, 626, 635, 7, 9, 2, 2, 627, 628, 12, 27, 2, 2, 628, 629, 7, 6, 2, 2, 629, 630, 5, 66, 34, 2, 630, 631, 7, 7, 2, 2, 631, 635, 3, 2, 2, 2, 632, 633, 12, 24, 2, 2, 633, 635, 9, 2, 2, 2, 634, 576, 3, 2, 2, 2, 634, 579, 3, 2, 2, 2, 634, 582, 3, 2, 2, 2, 634, 585, 3, 2, 2, 2, 634, 588, 3, 2, 2, 2, 634, 591, 3, 2, 2, 2, 634, 594, 3, 2, 2, 2, 634, 597, 3, 2, 2, 2, 634, 600, 3, 2, 2, 2, 634, 603, 3, 2, 2, 2, 634, 609, 3, 2, 2, 2, 634, 612, 3, 2, 2, 2, 634, 615, 3, 2, 2, 2, 634, 618, 3, 2, 2, 2, 634, 621, 3, 2, 2, 2, 634, 627, 3, 2, 2, 2, 634, 632, 3, 2, 2, 2, 635, 638, 3, 2, 2, 2, 636, 634, 3, 2, 2, 2, 636, 637, 3, 2, 2, 2, 637, 69, 3, 2, 2, 2, 638, 636, 3, 2, 2, 2, 639, 644, 5, 68, 35, 2, 640, 641, 7, 12, 2, 2, 641, 643, 5, 68, 35, 2, 642, 640, 3, 2, 2, 2, 643, 646, 3, 2, 2, 2, 644, 642, 3, 2, 2, 2, 644, 645, 3, 2, 2, 2, 645, 71, 3, 2, 2, 2, 646, 644, 3, 2, 2, 2, 647, 649, 7, 76, 2, 2, 648, 650, 5, 74, 38, 2, 649, 648, 3, 2, 2, 2, 649, 650, 3, 2, 2, 2, 650, 651, 3, 2, 2, 2, 651, 652, 7, 86, 2, 2, 652, 73, 3, 2, 2, 2, 653, 654, 7, 8, 2, 2, 654, 659, 5, 76, 39, 2, 655, 656, 7, 12, 2, 2, 656, 658, 5, 76, 39, 2, 657, 655, 3, 2, 2, 2, 658, 661, 3, 2, 2, 2, 659, 657, 3, 2, 2, 2, 659, 660, 3, 2, 2, 2, 660, 662, 3, 2, 2, 2, 661, 659, 3, 2, 2, 2, 662, 663, 7, 9, 2, 2, 663, 75, 3, 2, 2, 2, 664, 665, 7, 77, 2, 2, 665, 675, 7, 110, 2, 2, 666, 667, 7, 78, 2, 2, 667, 675, 7, 109, 2, 2, 668, 669, 7, 79, 2, 2, 669, 675, 7, 110, 2, 2, 670, 671, 7, 80, 2, 2, 671, 675, 5, 68, 35, 2, 672, 673, 7, 81, 2, 2, 673, 675, 5, 68, 35, 2, 674, 664, 3, 2, 2, 2, 674, 666, 3, 2, 2, 2, 674, 668, 3, 2, 2, 2, 674, 670, 3, 2, 2, 2, 674, 672, 3, 2, 2, 2, 675, 77, 3, 2, 2, 2, 676, 678, 5, 80, 41, 2, 677, 676, 3, 2, 2, 2, 678, 681, 3, 2, 2, 2, 679, 677, 3, 2, 2, 2, 679, 680, 3, 2, 2, 2, 680, 79, 3, 2, 2, 2, 681, 679, 3, 2, 2, 2, 682, 686, 5, 82, 42, 2, 683, 686, 5, 84, 43, 2, 684, 686, 5, 86, 44, 2, 685, 682, 3, 2, 2, 2, 685, 683, 3, 2, 2, 2, 685, 684, 3, 2, 2, 2, 686, 81, 3, 2, 2, 2, 687, 688, 7, 147, 2, 2, 688, 692, 7, 118, 2, 2, 689, 691, 7, 148, 2, 2, 690, 689, 3, 2, 2, 2, 691, 694, 3, 2, 2, 2, 692, 690, 3, 2, 2, 2, 692, 693, 3, 2, 2, 2, 693, 704, 3, 2, 2, 2, 694, 692, 3, 2, 2, 2, 695, 696, 7, 146, 2, 2, 696, 700, 7, 118, 2, 2, 697, 699, 7, 148, 2, 2, 698, 697, 3, 2, 2, 2, 699, 702, 3, 2, 2, 2, 700, 698, 3, 2, 2, 2, 700, 701, 3, 2, 2, 2, 701, 704, 3, 2, 2, 2, 702, 700, 3, 2, 2, 2, 703, 687, 3, 2, 2, 2, 703, 695, 3, 2, 2, 2, 704, 83, 3, 2, 2, 2, 705, 707, 7, 116, 2, 2, 706, 708, 5, 88, 45, 2, 707, 706, 3, 2, 2, 2, 707, 708, 3, 2, 2, 2, 708, 712, 3, 2, 2, 2, 709, 711, 7, 148, 2, 2, 710, 709, 3, 2, 2, 2, 711, 714, 3, 2, 2, 2, 712, 710, 3, 2, 2, 2, 712, 713, 3, 2, 2, 2, 713, 85, 3, 2, 2, 2, 714, 712, 3, 2, 2, 2, 715, 716, 7, 115, 2, 2, 716, 721, 5, 90, 46, 2, 717, 718, 7, 119, 2, 2, 718, 720, 5, 90, 46, 2, 719, 717, 3, 2, 2, 2, 720, 723, 3, 2, 2, 2, 721, 719, 3, 2, 2, 2, 721, 722, 3, 2, 2, 2, 722, 727, 3, 2, 2, 2, 723, 721, 3, 2, 2, 2, 724, 726, 7, 148, 2, 2, 725, 724, 3, 2, 2, 2, 726, 729, 3, 2, 2, 2, 727, 725, 3, 2, 2, 2, 727, 728, 3, 2, 2, 2, 728, 87, 3, 2, 2, 2, 729, 727, 3, 2, 2, 2, 730, 776, 5, 90, 46, 2, 731, 732, 7, 117, 2, 2, 732, 776, 5, 90, 46, 2, 733, 734, 5, 90, 46, 2, 734, 735, 7, 119, 2, 2, 735, 736, 5, 90, 46, 2, 736, 776, 3, 2, 2, 2, 737, 738, 7, 120, 2, 2, 738, 739, 5, 90, 46, 2, 739, 740, 7, 121, 2, 2, 740, 741, 7, 119, 2, 2, 741, 742, 7, 147, 2, 2, 742, 776, 3, 2, 2, 2, 743, 744, 7, 120, 2, 2, 744, 745, 7, 120, 2, 2, 745, 746, 5, 90, 46, 2, 746, 747, 7, 121, 2, 2, 747, 748, 7, 121, 2, 2, 748, 749, 7, 119, 2, 2, 749, 750, 7, 147, 2, 2, 750, 776, 3, 2, 2, 2, 751, 752, 7, 120, 2, 2, 752, 753, 5, 90, 46, 2, 753, 754, 7, 119, 2, 2, 754, 755, 7, 147, 2, 2, 755, 756, 7, 121, 2, 2, 756, 757, 7, 119, 2, 2, 757, 758, 7, 147, 2, 2, 758, 776, 3, 2, 2, 2, 759, 760, 7, 120, 2, 2, 760, 761, 5, 90, 46, 2, 761, 762, 7, 119, 2, 2, 762, 763, 7, 147, 2, 2, 763, 764, 7, 121, 2, 2, 764, 776, 3, 2, 2, 2, 765, 766, 7, 120, 2, 2, 766, 767, 5, 90, 46, 2, 767, 768, 7, 121, 2, 2, 768, 776, 3, 2, 2, 2, 769, 770, 7, 120, 2, 2, 770, 771, 7, 120, 2, 2, 771, 772, 5, 90, 46, 2, 772, 773, 7, 121, 2, 2, 773, 774, 7, 121, 2, 2, 774, 776, 3, 2, 2, 2, 775, 730, 3, 2, 2, 2, 775, 731, 3, 2, 2, 2, 775, 733, 3, 2, 2, 2, 775, 737, 3, 2, 2, 2, 775, 743, 3, 2, 2, 2, 775, 751, 3, 2, 2, 2, 775, 759, 3, 2, 2, 2, 775, 765, 3, 2, 2, 2, 775, 769, 3, 2, 2, 2, 776, 89, 3, 2, 2, 2, 777, 778, 8, 46, 1, 2, 778, 779, 7, 122, 2, 2, 779, 780, 5, 90, 46, 2, 780, 781, 7, 123, 2, 2, 781, 792, 3, 2, 2, 2, 782, 783, 9, 9, 2, 2, 783, 792, 5, 90, 46, 10, 784, 792, 7, 147, 2, 2, 785, 792, 7, 145, 2, 2, 786, 787, 7, 133, 2, 2, 787, 788, 7, 147, 2, 2, 788, 792, 7, 134, 2, 2, 789, 792, 7, 135, 2, 2, 790, 792, 7, 144, 2, 2, 791, 777, 3, 2, 2, 2, 791, 782, 3, 2, 2, 2, 791, 784, 3, 2, 2, 2, 791, 785, 3, 2, 2, 2, 791, 786, 3, 2, 2, 2, 791, 789, 3, 2, 2, 2, 791, 790, 3, 2, 2, 2, 792, 807, 3, 2, 2, 2, 793, 794, 12, 12, 2, 2, 794, 795, 7, 124, 2, 2, 795, 806, 5, 90, 46, 13, 796, 797, 12, 11, 2, 2, 797, 798, 9, 10, 2, 2, 798, 806, 5, 90, 46, 12, 799, 800, 12, 9, 2, 2, 800, 801, 9, 11, 2, 2, 801, 806, 5, 90, 46, 10, 802, 803, 12, 8, 2, 2, 803, 804, 9, 12, 2, 2, 804, 806, 5, 90, 46, 9, 805, 793, 3, 2, 2, 2, 805, 796, 3, 2, 2, 2, 805, 799, 3, 2, 2, 2, 805, 802, 3, 2, 2, 2, 806, 809, 3, 2, 2, 2, 807, 805, 3, 2, 2, 2, 807, 808, 3, 2, 2, 2, 808, 91, 3, 2, 2, 2, 809, 807, 3, 2, 2, 2, 81, 101, 118, 131, 137, 143, 153, 160, 171, 174, 176, 186, 194, 199, 205, 208, 210, 216, 223, 230, 236, 248, 262, 268, 274, 283, 291, 301, 313, 324, 345, 354, 360, 365, 372, 385, 390, 402, 416, 435, 444, 452, 457, 462, 464, 470, 475, 479, 488, 491, 494, 506, 518, 526, 532, 536, 557, 561, 570, 574, 624, 634, 636, 644, 649, 659, 674, 679, 685, 692, 700, 703, 707, 712, 721, 727, 775, 791, 805, 807]
\ No newline at end of file
diff --git a/src/main/java/dk/camelot64/kickc/parser/KickCParser.java b/src/main/java/dk/camelot64/kickc/parser/KickCParser.java
index b5edbaba6..670a13640 100644
--- a/src/main/java/dk/camelot64/kickc/parser/KickCParser.java
+++ b/src/main/java/dk/camelot64/kickc/parser/KickCParser.java
@@ -54,20 +54,19 @@ public class KickCParser extends Parser {
RULE_declType = 8, RULE_typeSpecifier = 9, RULE_declarator = 10, RULE_type = 11,
RULE_structRef = 12, RULE_structDef = 13, RULE_structMembers = 14, RULE_enumRef = 15,
RULE_enumDef = 16, RULE_enumMemberList = 17, RULE_enumMember = 18, RULE_declFunction = 19,
- RULE_declFunctionBody = 20, RULE_parameterListDecl = 21, RULE_parameterDecl = 22,
- RULE_pragma = 23, RULE_pragmaParam = 24, RULE_directive = 25, RULE_stmtSeq = 26,
- RULE_stmt = 27, RULE_switchCases = 28, RULE_switchCase = 29, RULE_forLoop = 30,
- RULE_forClassicInit = 31, RULE_forClassicCondition = 32, RULE_commaExpr = 33,
- RULE_expr = 34, RULE_parameterList = 35, RULE_kasmContent = 36, RULE_asmDirectives = 37,
- RULE_asmDirective = 38, RULE_asmLines = 39, RULE_asmLine = 40, RULE_asmLabel = 41,
- RULE_asmInstruction = 42, RULE_asmBytes = 43, RULE_asmParamMode = 44,
- RULE_asmExpr = 45;
+ RULE_parameterListDecl = 20, RULE_parameterDecl = 21, RULE_pragma = 22,
+ RULE_pragmaParam = 23, RULE_directive = 24, RULE_stmtSeq = 25, RULE_stmt = 26,
+ RULE_switchCases = 27, RULE_switchCase = 28, RULE_forLoop = 29, RULE_forClassicInit = 30,
+ RULE_forClassicCondition = 31, RULE_commaExpr = 32, RULE_expr = 33, RULE_parameterList = 34,
+ RULE_kasmContent = 35, RULE_asmDirectives = 36, RULE_asmDirective = 37,
+ RULE_asmLines = 38, RULE_asmLine = 39, RULE_asmLabel = 40, RULE_asmInstruction = 41,
+ RULE_asmBytes = 42, RULE_asmParamMode = 43, RULE_asmExpr = 44;
private static String[] makeRuleNames() {
return new String[] {
"file", "asmFile", "declSeq", "decl", "declVariables", "declaratorInitList",
"declaratorInit", "typeDef", "declType", "typeSpecifier", "declarator",
"type", "structRef", "structDef", "structMembers", "enumRef", "enumDef",
- "enumMemberList", "enumMember", "declFunction", "declFunctionBody", "parameterListDecl",
+ "enumMemberList", "enumMember", "declFunction", "parameterListDecl",
"parameterDecl", "pragma", "pragmaParam", "directive", "stmtSeq", "stmt",
"switchCases", "switchCase", "forLoop", "forClassicInit", "forClassicCondition",
"commaExpr", "expr", "parameterList", "kasmContent", "asmDirectives",
@@ -221,9 +220,9 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(92);
+ setState(90);
declSeq();
- setState(93);
+ setState(91);
match(EOF);
}
}
@@ -268,9 +267,9 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(95);
+ setState(93);
asmLines();
- setState(96);
+ setState(94);
match(EOF);
}
}
@@ -318,17 +317,17 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(101);
+ setState(99);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << TYPEDEF) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0) || ((((_la - 69)) & ~0x3f) == 0 && ((1L << (_la - 69)) & ((1L << (STRUCT - 69)) | (1L << (ENUM - 69)) | (1L << (SIGNEDNESS - 69)) | (1L << (SIMPLETYPE - 69)) | (1L << (PRAGMA - 69)))) != 0)) {
{
{
- setState(98);
+ setState(96);
decl();
}
}
- setState(103);
+ setState(101);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -388,56 +387,56 @@ public class KickCParser extends Parser {
DeclContext _localctx = new DeclContext(_ctx, getState());
enterRule(_localctx, 6, RULE_decl);
try {
- setState(118);
+ setState(116);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,1,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
- setState(104);
+ setState(102);
declVariables();
- setState(105);
+ setState(103);
match(SEMICOLON);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
- setState(107);
+ setState(105);
declFunction();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
- setState(108);
+ setState(106);
structDef();
- setState(109);
+ setState(107);
match(SEMICOLON);
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
- setState(111);
+ setState(109);
enumDef();
- setState(112);
+ setState(110);
match(SEMICOLON);
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
- setState(114);
+ setState(112);
pragma();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
- setState(115);
+ setState(113);
typeDef();
- setState(116);
+ setState(114);
match(SEMICOLON);
}
break;
@@ -486,9 +485,9 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(120);
+ setState(118);
declType();
- setState(121);
+ setState(119);
declaratorInitList(0);
}
}
@@ -546,11 +545,11 @@ public class KickCParser extends Parser {
enterOuterAlt(_localctx, 1);
{
{
- setState(124);
+ setState(122);
declaratorInit();
}
_ctx.stop = _input.LT(-1);
- setState(131);
+ setState(129);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,2,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
@@ -561,16 +560,16 @@ public class KickCParser extends Parser {
{
_localctx = new DeclaratorInitListContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_declaratorInitList);
- setState(126);
+ setState(124);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
- setState(127);
+ setState(125);
match(COMMA);
- setState(128);
+ setState(126);
declaratorInit();
}
}
}
- setState(133);
+ setState(131);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,2,_ctx);
}
@@ -649,23 +648,23 @@ public class KickCParser extends Parser {
DeclaratorInitContext _localctx = new DeclaratorInitContext(_ctx, getState());
enterRule(_localctx, 12, RULE_declaratorInit);
try {
- setState(143);
+ setState(141);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,4,_ctx) ) {
case 1:
_localctx = new DeclVariableInitExprContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(134);
+ setState(132);
declarator(0);
- setState(137);
+ setState(135);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) {
case 1:
{
- setState(135);
+ setState(133);
match(ASSIGN);
- setState(136);
+ setState(134);
expr(0);
}
break;
@@ -676,11 +675,11 @@ public class KickCParser extends Parser {
_localctx = new DeclVariableInitKasmContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(139);
+ setState(137);
declarator(0);
- setState(140);
+ setState(138);
match(ASSIGN);
- setState(141);
+ setState(139);
kasmContent();
}
break;
@@ -730,12 +729,12 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(145);
+ setState(143);
match(TYPEDEF);
- setState(146);
+ setState(144);
declType();
isTypedef=true;
- setState(148);
+ setState(146);
declarator(0);
}
}
@@ -786,33 +785,33 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(153);
+ setState(151);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0)) {
{
{
- setState(150);
+ setState(148);
directive();
}
}
- setState(155);
+ setState(153);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(156);
- type(0);
- setState(160);
+ setState(154);
+ type();
+ setState(158);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0)) {
{
{
- setState(157);
+ setState(155);
directive();
}
}
- setState(162);
+ setState(160);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -925,11 +924,11 @@ public class KickCParser extends Parser {
_ctx = _localctx;
_prevctx = _localctx;
- setState(164);
- type(0);
+ setState(162);
+ type();
}
_ctx.stop = _input.LT(-1);
- setState(176);
+ setState(174);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,9,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
@@ -937,16 +936,16 @@ public class KickCParser extends Parser {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
- setState(174);
+ setState(172);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,8,_ctx) ) {
case 1:
{
_localctx = new TypeSpecifierPointerContext(new TypeSpecifierContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_typeSpecifier);
- setState(166);
+ setState(164);
if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)");
- setState(167);
+ setState(165);
match(ASTERISK);
}
break;
@@ -954,28 +953,28 @@ public class KickCParser extends Parser {
{
_localctx = new TypeSpecifierArrayContext(new TypeSpecifierContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_typeSpecifier);
- setState(168);
+ setState(166);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
- setState(169);
+ setState(167);
match(BRACKET_BEGIN);
- setState(171);
+ setState(169);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN))) != 0) || ((((_la - 71)) & ~0x3f) == 0 && ((1L << (_la - 71)) & ((1L << (SIZEOF - 71)) | (1L << (TYPEID - 71)) | (1L << (DEFINED - 71)) | (1L << (LOGIC_NOT - 71)) | (1L << (BOOLEAN - 71)) | (1L << (NUMBER - 71)) | (1L << (NAME - 71)) | (1L << (STRING - 71)) | (1L << (CHAR - 71)))) != 0)) {
{
- setState(170);
+ setState(168);
expr(0);
}
}
- setState(173);
+ setState(171);
match(BRACKET_END);
}
break;
}
}
}
- setState(178);
+ setState(176);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,9,_ctx);
}
@@ -1092,6 +1091,30 @@ public class KickCParser extends Parser {
else return visitor.visitChildren(this);
}
}
+ public static class DeclaratorProcedureContext extends DeclaratorContext {
+ public DeclaratorContext declarator() {
+ return getRuleContext(DeclaratorContext.class,0);
+ }
+ public TerminalNode PAR_BEGIN() { return getToken(KickCParser.PAR_BEGIN, 0); }
+ public TerminalNode PAR_END() { return getToken(KickCParser.PAR_END, 0); }
+ public ParameterListDeclContext parameterListDecl() {
+ return getRuleContext(ParameterListDeclContext.class,0);
+ }
+ public DeclaratorProcedureContext(DeclaratorContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof KickCParserListener ) ((KickCParserListener)listener).enterDeclaratorProcedure(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof KickCParserListener ) ((KickCParserListener)listener).exitDeclaratorProcedure(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof KickCParserVisitor ) return ((KickCParserVisitor extends T>)visitor).visitDeclaratorProcedure(this);
+ else return visitor.visitChildren(this);
+ }
+ }
public final DeclaratorContext declarator() throws RecognitionException {
return declarator(0);
@@ -1109,7 +1132,7 @@ public class KickCParser extends Parser {
int _alt;
enterOuterAlt(_localctx, 1);
{
- setState(194);
+ setState(192);
_errHandler.sync(this);
switch (_input.LA(1)) {
case NAME:
@@ -1118,7 +1141,7 @@ public class KickCParser extends Parser {
_ctx = _localctx;
_prevctx = _localctx;
- setState(180);
+ setState(178);
((DeclaratorNameContext)_localctx).NAME = match(NAME);
if(isTypedef) { cParser.addTypedef((((DeclaratorNameContext)_localctx).NAME!=null?((DeclaratorNameContext)_localctx).NAME.getText():null)); isTypedef=false; }
}
@@ -1128,23 +1151,23 @@ public class KickCParser extends Parser {
_localctx = new DeclaratorPointerContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(182);
+ setState(180);
match(ASTERISK);
- setState(186);
+ setState(184);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0)) {
{
{
- setState(183);
+ setState(181);
directive();
}
}
- setState(188);
+ setState(186);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(189);
+ setState(187);
declarator(2);
}
break;
@@ -1153,11 +1176,11 @@ public class KickCParser extends Parser {
_localctx = new DeclaratorParContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(190);
+ setState(188);
match(PAR_BEGIN);
- setState(191);
+ setState(189);
declarator(0);
- setState(192);
+ setState(190);
match(PAR_END);
}
break;
@@ -1165,39 +1188,67 @@ public class KickCParser extends Parser {
throw new NoViableAltException(this);
}
_ctx.stop = _input.LT(-1);
- setState(204);
+ setState(208);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,13,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,15,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
- {
- _localctx = new DeclaratorArrayContext(new DeclaratorContext(_parentctx, _parentState));
- pushNewRecursionContext(_localctx, _startState, RULE_declarator);
- setState(196);
- if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)");
- setState(197);
- match(BRACKET_BEGIN);
- setState(199);
+ setState(206);
_errHandler.sync(this);
- _la = _input.LA(1);
- if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN))) != 0) || ((((_la - 71)) & ~0x3f) == 0 && ((1L << (_la - 71)) & ((1L << (SIZEOF - 71)) | (1L << (TYPEID - 71)) | (1L << (DEFINED - 71)) | (1L << (LOGIC_NOT - 71)) | (1L << (BOOLEAN - 71)) | (1L << (NUMBER - 71)) | (1L << (NAME - 71)) | (1L << (STRING - 71)) | (1L << (CHAR - 71)))) != 0)) {
+ switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) {
+ case 1:
{
- setState(198);
- expr(0);
+ _localctx = new DeclaratorProcedureContext(new DeclaratorContext(_parentctx, _parentState));
+ pushNewRecursionContext(_localctx, _startState, RULE_declarator);
+ setState(194);
+ if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)");
+ setState(195);
+ match(PAR_BEGIN);
+ setState(197);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << PARAM_LIST) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0) || ((((_la - 69)) & ~0x3f) == 0 && ((1L << (_la - 69)) & ((1L << (STRUCT - 69)) | (1L << (ENUM - 69)) | (1L << (SIGNEDNESS - 69)) | (1L << (SIMPLETYPE - 69)))) != 0)) {
+ {
+ setState(196);
+ parameterListDecl();
+ }
}
- }
- setState(201);
- match(BRACKET_END);
+ setState(199);
+ match(PAR_END);
+ }
+ break;
+ case 2:
+ {
+ _localctx = new DeclaratorArrayContext(new DeclaratorContext(_parentctx, _parentState));
+ pushNewRecursionContext(_localctx, _startState, RULE_declarator);
+ setState(200);
+ if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)");
+ setState(201);
+ match(BRACKET_BEGIN);
+ setState(203);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN))) != 0) || ((((_la - 71)) & ~0x3f) == 0 && ((1L << (_la - 71)) & ((1L << (SIZEOF - 71)) | (1L << (TYPEID - 71)) | (1L << (DEFINED - 71)) | (1L << (LOGIC_NOT - 71)) | (1L << (BOOLEAN - 71)) | (1L << (NUMBER - 71)) | (1L << (NAME - 71)) | (1L << (STRING - 71)) | (1L << (CHAR - 71)))) != 0)) {
+ {
+ setState(202);
+ expr(0);
+ }
+ }
+
+ setState(205);
+ match(BRACKET_END);
+ }
+ break;
}
}
}
- setState(206);
+ setState(210);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,13,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,15,_ctx);
}
}
}
@@ -1223,27 +1274,6 @@ public class KickCParser extends Parser {
super.copyFrom(ctx);
}
}
- public static class TypeProcedureContext extends TypeContext {
- public TypeContext type() {
- return getRuleContext(TypeContext.class,0);
- }
- public TerminalNode PAR_BEGIN() { return getToken(KickCParser.PAR_BEGIN, 0); }
- public TerminalNode PAR_END() { return getToken(KickCParser.PAR_END, 0); }
- public TypeProcedureContext(TypeContext ctx) { copyFrom(ctx); }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof KickCParserListener ) ((KickCParserListener)listener).enterTypeProcedure(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof KickCParserListener ) ((KickCParserListener)listener).exitTypeProcedure(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof KickCParserVisitor ) return ((KickCParserVisitor extends T>)visitor).visitTypeProcedure(this);
- else return visitor.visitChildren(this);
- }
- }
public static class TypeStructRefContext extends TypeContext {
public StructRefContext structRef() {
return getRuleContext(StructRefContext.class,0);
@@ -1374,46 +1404,32 @@ public class KickCParser extends Parser {
}
public final TypeContext type() throws RecognitionException {
- return type(0);
- }
-
- private TypeContext type(int _p) throws RecognitionException {
- ParserRuleContext _parentctx = _ctx;
- int _parentState = getState();
- TypeContext _localctx = new TypeContext(_ctx, _parentState);
- TypeContext _prevctx = _localctx;
- int _startState = 22;
- enterRecursionRule(_localctx, 22, RULE_type, _p);
+ TypeContext _localctx = new TypeContext(_ctx, getState());
+ enterRule(_localctx, 22, RULE_type);
try {
- int _alt;
- enterOuterAlt(_localctx, 1);
- {
- setState(218);
+ setState(221);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,17,_ctx) ) {
case 1:
- {
_localctx = new TypeSimpleContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
-
- setState(208);
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(211);
match(SIMPLETYPE);
}
break;
case 2:
- {
_localctx = new TypeSignedSimpleContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(209);
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(212);
match(SIGNEDNESS);
- setState(211);
+ setState(214);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,16,_ctx) ) {
case 1:
{
- setState(210);
+ setState(213);
match(SIMPLETYPE);
}
break;
@@ -1421,77 +1437,46 @@ public class KickCParser extends Parser {
}
break;
case 3:
- {
_localctx = new TypeStructDefContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(213);
+ enterOuterAlt(_localctx, 3);
+ {
+ setState(216);
structDef();
}
break;
case 4:
- {
_localctx = new TypeStructRefContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(214);
+ enterOuterAlt(_localctx, 4);
+ {
+ setState(217);
structRef();
}
break;
case 5:
- {
_localctx = new TypeEnumDefContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(215);
+ enterOuterAlt(_localctx, 5);
+ {
+ setState(218);
enumDef();
}
break;
case 6:
- {
_localctx = new TypeEnumRefContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(216);
+ enterOuterAlt(_localctx, 6);
+ {
+ setState(219);
enumRef();
}
break;
case 7:
- {
_localctx = new TypeNamedRefContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(217);
+ enterOuterAlt(_localctx, 7);
+ {
+ setState(220);
match(TYPEDEFNAME);
}
break;
}
- _ctx.stop = _input.LT(-1);
- setState(225);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,16,_ctx);
- while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
- if ( _alt==1 ) {
- if ( _parseListeners!=null ) triggerExitRuleEvent();
- _prevctx = _localctx;
- {
- {
- _localctx = new TypeProcedureContext(new TypeContext(_parentctx, _parentState));
- pushNewRecursionContext(_localctx, _startState, RULE_type);
- setState(220);
- if (!(precpred(_ctx, 6))) throw new FailedPredicateException(this, "precpred(_ctx, 6)");
- setState(221);
- match(PAR_BEGIN);
- setState(222);
- match(PAR_END);
- }
- }
- }
- setState(227);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,16,_ctx);
- }
- }
}
catch (RecognitionException re) {
_localctx.exception = re;
@@ -1499,7 +1484,7 @@ public class KickCParser extends Parser {
_errHandler.recover(this, re);
}
finally {
- unrollRecursionContexts(_parentctx);
+ exitRule();
}
return _localctx;
}
@@ -1532,9 +1517,9 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(228);
+ setState(223);
match(STRUCT);
- setState(229);
+ setState(224);
match(NAME);
}
}
@@ -1586,35 +1571,35 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(231);
+ setState(226);
match(STRUCT);
- setState(233);
+ setState(228);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==NAME) {
{
- setState(232);
+ setState(227);
match(NAME);
}
}
- setState(235);
+ setState(230);
match(CURLY_BEGIN);
- setState(237);
+ setState(232);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
- setState(236);
+ setState(231);
structMembers();
}
}
- setState(239);
+ setState(234);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0) || ((((_la - 69)) & ~0x3f) == 0 && ((1L << (_la - 69)) & ((1L << (STRUCT - 69)) | (1L << (ENUM - 69)) | (1L << (SIGNEDNESS - 69)) | (1L << (SIMPLETYPE - 69)))) != 0) );
- setState(241);
+ setState(236);
match(CURLY_END);
}
}
@@ -1659,9 +1644,9 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(243);
+ setState(238);
declVariables();
- setState(244);
+ setState(239);
match(SEMICOLON);
}
}
@@ -1704,9 +1689,9 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(246);
+ setState(241);
match(ENUM);
- setState(247);
+ setState(242);
match(NAME);
}
}
@@ -1755,23 +1740,23 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(249);
+ setState(244);
match(ENUM);
- setState(251);
+ setState(246);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==NAME) {
{
- setState(250);
+ setState(245);
match(NAME);
}
}
- setState(253);
+ setState(248);
match(CURLY_BEGIN);
- setState(254);
+ setState(249);
enumMemberList(0);
- setState(255);
+ setState(250);
match(CURLY_END);
}
}
@@ -1829,13 +1814,13 @@ public class KickCParser extends Parser {
enterOuterAlt(_localctx, 1);
{
{
- setState(258);
+ setState(253);
enumMember();
}
_ctx.stop = _input.LT(-1);
- setState(265);
+ setState(260);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,20,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,21,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
@@ -1844,18 +1829,18 @@ public class KickCParser extends Parser {
{
_localctx = new EnumMemberListContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_enumMemberList);
- setState(260);
+ setState(255);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
- setState(261);
+ setState(256);
match(COMMA);
- setState(262);
+ setState(257);
enumMember();
}
}
}
- setState(267);
+ setState(262);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,20,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,21,_ctx);
}
}
}
@@ -1901,16 +1886,16 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(268);
+ setState(263);
match(NAME);
- setState(271);
+ setState(266);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,21,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,22,_ctx) ) {
case 1:
{
- setState(269);
+ setState(264);
match(ASSIGN);
- setState(270);
+ setState(265);
expr(0);
}
break;
@@ -1935,14 +1920,10 @@ public class KickCParser extends Parser {
public DeclaratorContext declarator() {
return getRuleContext(DeclaratorContext.class,0);
}
- public TerminalNode PAR_BEGIN() { return getToken(KickCParser.PAR_BEGIN, 0); }
- public TerminalNode PAR_END() { return getToken(KickCParser.PAR_END, 0); }
- public DeclFunctionBodyContext declFunctionBody() {
- return getRuleContext(DeclFunctionBodyContext.class,0);
- }
- public TerminalNode SEMICOLON() { return getToken(KickCParser.SEMICOLON, 0); }
- public ParameterListDeclContext parameterListDecl() {
- return getRuleContext(ParameterListDeclContext.class,0);
+ public TerminalNode CURLY_BEGIN() { return getToken(KickCParser.CURLY_BEGIN, 0); }
+ public TerminalNode CURLY_END() { return getToken(KickCParser.CURLY_END, 0); }
+ public StmtSeqContext stmtSeq() {
+ return getRuleContext(StmtSeqContext.class,0);
}
public DeclFunctionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
@@ -1970,100 +1951,23 @@ public class KickCParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(273);
+ setState(268);
declType();
- setState(274);
+ setState(269);
declarator(0);
- setState(275);
- match(PAR_BEGIN);
- setState(277);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << PARAM_LIST) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0) || ((((_la - 69)) & ~0x3f) == 0 && ((1L << (_la - 69)) & ((1L << (STRUCT - 69)) | (1L << (ENUM - 69)) | (1L << (SIGNEDNESS - 69)) | (1L << (SIMPLETYPE - 69)))) != 0)) {
- {
- setState(276);
- parameterListDecl();
- }
- }
-
- setState(279);
- match(PAR_END);
- setState(282);
- _errHandler.sync(this);
- switch (_input.LA(1)) {
- case CURLY_BEGIN:
- {
- setState(280);
- declFunctionBody();
- }
- break;
- case SEMICOLON:
- {
- setState(281);
- match(SEMICOLON);
- }
- break;
- default:
- throw new NoViableAltException(this);
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class DeclFunctionBodyContext extends ParserRuleContext {
- public TerminalNode CURLY_BEGIN() { return getToken(KickCParser.CURLY_BEGIN, 0); }
- public TerminalNode CURLY_END() { return getToken(KickCParser.CURLY_END, 0); }
- public StmtSeqContext stmtSeq() {
- return getRuleContext(StmtSeqContext.class,0);
- }
- public DeclFunctionBodyContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_declFunctionBody; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof KickCParserListener ) ((KickCParserListener)listener).enterDeclFunctionBody(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof KickCParserListener ) ((KickCParserListener)listener).exitDeclFunctionBody(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof KickCParserVisitor ) return ((KickCParserVisitor extends T>)visitor).visitDeclFunctionBody(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final DeclFunctionBodyContext declFunctionBody() throws RecognitionException {
- DeclFunctionBodyContext _localctx = new DeclFunctionBodyContext(_ctx, getState());
- enterRule(_localctx, 40, RULE_declFunctionBody);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(284);
+ setState(270);
match(CURLY_BEGIN);
- setState(286);
+ setState(272);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << SEMICOLON) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION) | (1L << IF) | (1L << WHILE) | (1L << DO) | (1L << FOR) | (1L << SWITCH) | (1L << RETURN))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (BREAK - 64)) | (1L << (CONTINUE - 64)) | (1L << (ASM - 64)) | (1L << (STRUCT - 64)) | (1L << (ENUM - 64)) | (1L << (SIZEOF - 64)) | (1L << (TYPEID - 64)) | (1L << (DEFINED - 64)) | (1L << (KICKASM - 64)) | (1L << (LOGIC_NOT - 64)) | (1L << (SIGNEDNESS - 64)) | (1L << (SIMPLETYPE - 64)) | (1L << (BOOLEAN - 64)) | (1L << (NUMBER - 64)) | (1L << (NAME - 64)) | (1L << (STRING - 64)) | (1L << (CHAR - 64)))) != 0)) {
{
- setState(285);
+ setState(271);
stmtSeq();
}
}
- setState(288);
+ setState(274);
match(CURLY_END);
}
}
@@ -2110,26 +2014,26 @@ public class KickCParser extends Parser {
public final ParameterListDeclContext parameterListDecl() throws RecognitionException {
ParameterListDeclContext _localctx = new ParameterListDeclContext(_ctx, getState());
- enterRule(_localctx, 42, RULE_parameterListDecl);
+ enterRule(_localctx, 40, RULE_parameterListDecl);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(290);
+ setState(276);
parameterDecl();
- setState(295);
+ setState(281);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
- setState(291);
+ setState(277);
match(COMMA);
- setState(292);
+ setState(278);
parameterDecl();
}
}
- setState(297);
+ setState(283);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -2216,18 +2120,18 @@ public class KickCParser extends Parser {
public final ParameterDeclContext parameterDecl() throws RecognitionException {
ParameterDeclContext _localctx = new ParameterDeclContext(_ctx, getState());
- enterRule(_localctx, 44, RULE_parameterDecl);
+ enterRule(_localctx, 42, RULE_parameterDecl);
try {
- setState(303);
+ setState(289);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,26,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,25,_ctx) ) {
case 1:
_localctx = new ParameterDeclTypeContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(298);
+ setState(284);
declType();
- setState(299);
+ setState(285);
declarator(0);
}
break;
@@ -2235,7 +2139,7 @@ public class KickCParser extends Parser {
_localctx = new ParameterDeclVoidContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(301);
+ setState(287);
match(SIMPLETYPE);
}
break;
@@ -2243,7 +2147,7 @@ public class KickCParser extends Parser {
_localctx = new ParameterDeclListContext(_localctx);
enterOuterAlt(_localctx, 3);
{
- setState(302);
+ setState(288);
match(PARAM_LIST);
}
break;
@@ -2296,36 +2200,36 @@ public class KickCParser extends Parser {
public final PragmaContext pragma() throws RecognitionException {
PragmaContext _localctx = new PragmaContext(_ctx, getState());
- enterRule(_localctx, 46, RULE_pragma);
+ enterRule(_localctx, 44, RULE_pragma);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(305);
+ setState(291);
match(PRAGMA);
- setState(306);
+ setState(292);
match(NAME);
- setState(307);
+ setState(293);
match(PAR_BEGIN);
- setState(308);
+ setState(294);
pragmaParam();
- setState(313);
+ setState(299);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
- setState(309);
+ setState(295);
match(COMMA);
- setState(310);
+ setState(296);
pragmaParam();
}
}
- setState(315);
+ setState(301);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(316);
+ setState(302);
match(PAR_END);
}
}
@@ -2443,16 +2347,16 @@ public class KickCParser extends Parser {
public final PragmaParamContext pragmaParam() throws RecognitionException {
PragmaParamContext _localctx = new PragmaParamContext(_ctx, getState());
- enterRule(_localctx, 48, RULE_pragmaParam);
+ enterRule(_localctx, 46, RULE_pragmaParam);
try {
- setState(325);
+ setState(311);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,28,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,27,_ctx) ) {
case 1:
_localctx = new PragmaParamNumberContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(318);
+ setState(304);
match(NUMBER);
}
break;
@@ -2460,11 +2364,11 @@ public class KickCParser extends Parser {
_localctx = new PragmaParamRangeContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(319);
+ setState(305);
match(NUMBER);
- setState(320);
+ setState(306);
match(RANGE);
- setState(321);
+ setState(307);
match(NUMBER);
}
break;
@@ -2472,7 +2376,7 @@ public class KickCParser extends Parser {
_localctx = new PragmaParamNameContext(_localctx);
enterOuterAlt(_localctx, 3);
{
- setState(322);
+ setState(308);
match(NAME);
}
break;
@@ -2480,7 +2384,7 @@ public class KickCParser extends Parser {
_localctx = new PragmaParamStringContext(_localctx);
enterOuterAlt(_localctx, 4);
{
- setState(323);
+ setState(309);
match(STRING);
}
break;
@@ -2488,7 +2392,7 @@ public class KickCParser extends Parser {
_localctx = new PragmaParamCallingConventionContext(_localctx);
enterOuterAlt(_localctx, 5);
{
- setState(324);
+ setState(310);
match(CALLINGCONVENTION);
}
break;
@@ -2834,17 +2738,17 @@ public class KickCParser extends Parser {
public final DirectiveContext directive() throws RecognitionException {
DirectiveContext _localctx = new DirectiveContext(_ctx, getState());
- enterRule(_localctx, 50, RULE_directive);
+ enterRule(_localctx, 48, RULE_directive);
int _la;
try {
- setState(372);
+ setState(358);
_errHandler.sync(this);
switch (_input.LA(1)) {
case CONST:
_localctx = new DirectiveConstContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(327);
+ setState(313);
match(CONST);
}
break;
@@ -2852,13 +2756,13 @@ public class KickCParser extends Parser {
_localctx = new DirectiveAlignContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(328);
+ setState(314);
match(ALIGN);
- setState(329);
+ setState(315);
match(PAR_BEGIN);
- setState(330);
+ setState(316);
match(NUMBER);
- setState(331);
+ setState(317);
match(PAR_END);
}
break;
@@ -2866,20 +2770,20 @@ public class KickCParser extends Parser {
_localctx = new DirectiveRegisterContext(_localctx);
enterOuterAlt(_localctx, 3);
{
- setState(332);
+ setState(318);
match(REGISTER);
- setState(336);
+ setState(322);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,29,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,28,_ctx) ) {
case 1:
{
- setState(333);
+ setState(319);
match(PAR_BEGIN);
{
- setState(334);
+ setState(320);
match(NAME);
}
- setState(335);
+ setState(321);
match(PAR_END);
}
break;
@@ -2890,7 +2794,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveMemoryAreaZpContext(_localctx);
enterOuterAlt(_localctx, 4);
{
- setState(338);
+ setState(324);
match(ADDRESS_ZEROPAGE);
}
break;
@@ -2898,7 +2802,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveMemoryAreaMainContext(_localctx);
enterOuterAlt(_localctx, 5);
{
- setState(339);
+ setState(325);
match(ADDRESS_MAINMEM);
}
break;
@@ -2906,15 +2810,15 @@ public class KickCParser extends Parser {
_localctx = new DirectiveMemoryAreaAddressContext(_localctx);
enterOuterAlt(_localctx, 6);
{
- setState(340);
+ setState(326);
match(ADDRESS);
- setState(341);
+ setState(327);
match(PAR_BEGIN);
{
- setState(342);
+ setState(328);
expr(0);
}
- setState(343);
+ setState(329);
match(PAR_END);
}
break;
@@ -2922,7 +2826,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveVolatileContext(_localctx);
enterOuterAlt(_localctx, 7);
{
- setState(345);
+ setState(331);
match(VOLATILE);
}
break;
@@ -2930,7 +2834,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveStaticContext(_localctx);
enterOuterAlt(_localctx, 8);
{
- setState(346);
+ setState(332);
match(STATIC);
}
break;
@@ -2938,7 +2842,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveFormSsaContext(_localctx);
enterOuterAlt(_localctx, 9);
{
- setState(347);
+ setState(333);
match(FORM_SSA);
}
break;
@@ -2946,7 +2850,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveFormMaContext(_localctx);
enterOuterAlt(_localctx, 10);
{
- setState(348);
+ setState(334);
match(FORM_MA);
}
break;
@@ -2954,7 +2858,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveExternContext(_localctx);
enterOuterAlt(_localctx, 11);
{
- setState(349);
+ setState(335);
match(EXTERN);
}
break;
@@ -2962,7 +2866,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveExportContext(_localctx);
enterOuterAlt(_localctx, 12);
{
- setState(350);
+ setState(336);
match(EXPORT);
}
break;
@@ -2970,7 +2874,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveInlineContext(_localctx);
enterOuterAlt(_localctx, 13);
{
- setState(351);
+ setState(337);
match(INLINE);
}
break;
@@ -2978,7 +2882,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveIntrinsicContext(_localctx);
enterOuterAlt(_localctx, 14);
{
- setState(352);
+ setState(338);
match(INTRINSIC);
}
break;
@@ -2986,18 +2890,18 @@ public class KickCParser extends Parser {
_localctx = new DirectiveInterruptContext(_localctx);
enterOuterAlt(_localctx, 15);
{
- setState(353);
+ setState(339);
match(INTERRUPT);
- setState(357);
+ setState(343);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,30,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,29,_ctx) ) {
case 1:
{
- setState(354);
+ setState(340);
match(PAR_BEGIN);
- setState(355);
+ setState(341);
match(NAME);
- setState(356);
+ setState(342);
match(PAR_END);
}
break;
@@ -3008,29 +2912,29 @@ public class KickCParser extends Parser {
_localctx = new DirectiveReserveZpContext(_localctx);
enterOuterAlt(_localctx, 16);
{
- setState(359);
+ setState(345);
match(LOCAL_RESERVE);
- setState(360);
+ setState(346);
match(PAR_BEGIN);
- setState(361);
+ setState(347);
pragmaParam();
- setState(366);
+ setState(352);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
- setState(362);
+ setState(348);
match(COMMA);
- setState(363);
+ setState(349);
pragmaParam();
}
}
- setState(368);
+ setState(354);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(369);
+ setState(355);
match(PAR_END);
}
break;
@@ -3038,7 +2942,7 @@ public class KickCParser extends Parser {
_localctx = new DirectiveCallingConventionContext(_localctx);
enterOuterAlt(_localctx, 17);
{
- setState(371);
+ setState(357);
match(CALLINGCONVENTION);
}
break;
@@ -3085,22 +2989,22 @@ public class KickCParser extends Parser {
public final StmtSeqContext stmtSeq() throws RecognitionException {
StmtSeqContext _localctx = new StmtSeqContext(_ctx, getState());
- enterRule(_localctx, 52, RULE_stmtSeq);
+ enterRule(_localctx, 50, RULE_stmtSeq);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(375);
+ setState(361);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
- setState(374);
+ setState(360);
stmt();
}
}
- setState(377);
+ setState(363);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << SEMICOLON) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION) | (1L << IF) | (1L << WHILE) | (1L << DO) | (1L << FOR) | (1L << SWITCH) | (1L << RETURN))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (BREAK - 64)) | (1L << (CONTINUE - 64)) | (1L << (ASM - 64)) | (1L << (STRUCT - 64)) | (1L << (ENUM - 64)) | (1L << (SIZEOF - 64)) | (1L << (TYPEID - 64)) | (1L << (DEFINED - 64)) | (1L << (KICKASM - 64)) | (1L << (LOGIC_NOT - 64)) | (1L << (SIGNEDNESS - 64)) | (1L << (SIMPLETYPE - 64)) | (1L << (BOOLEAN - 64)) | (1L << (NUMBER - 64)) | (1L << (NAME - 64)) | (1L << (STRING - 64)) | (1L << (CHAR - 64)))) != 0) );
@@ -3461,19 +3365,19 @@ public class KickCParser extends Parser {
public final StmtContext stmt() throws RecognitionException {
StmtContext _localctx = new StmtContext(_ctx, getState());
- enterRule(_localctx, 54, RULE_stmt);
+ enterRule(_localctx, 52, RULE_stmt);
int _la;
try {
- setState(464);
+ setState(450);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,41,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,40,_ctx) ) {
case 1:
_localctx = new StmtDeclVarContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(379);
+ setState(365);
declVariables();
- setState(380);
+ setState(366);
match(SEMICOLON);
}
break;
@@ -3481,19 +3385,19 @@ public class KickCParser extends Parser {
_localctx = new StmtBlockContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(382);
+ setState(368);
match(CURLY_BEGIN);
- setState(384);
+ setState(370);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << SEMICOLON) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION) | (1L << IF) | (1L << WHILE) | (1L << DO) | (1L << FOR) | (1L << SWITCH) | (1L << RETURN))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (BREAK - 64)) | (1L << (CONTINUE - 64)) | (1L << (ASM - 64)) | (1L << (STRUCT - 64)) | (1L << (ENUM - 64)) | (1L << (SIZEOF - 64)) | (1L << (TYPEID - 64)) | (1L << (DEFINED - 64)) | (1L << (KICKASM - 64)) | (1L << (LOGIC_NOT - 64)) | (1L << (SIGNEDNESS - 64)) | (1L << (SIMPLETYPE - 64)) | (1L << (BOOLEAN - 64)) | (1L << (NUMBER - 64)) | (1L << (NAME - 64)) | (1L << (STRING - 64)) | (1L << (CHAR - 64)))) != 0)) {
{
- setState(383);
+ setState(369);
stmtSeq();
}
}
- setState(386);
+ setState(372);
match(CURLY_END);
}
break;
@@ -3501,9 +3405,9 @@ public class KickCParser extends Parser {
_localctx = new StmtExprContext(_localctx);
enterOuterAlt(_localctx, 3);
{
- setState(387);
+ setState(373);
commaExpr(0);
- setState(388);
+ setState(374);
match(SEMICOLON);
}
break;
@@ -3511,24 +3415,24 @@ public class KickCParser extends Parser {
_localctx = new StmtIfElseContext(_localctx);
enterOuterAlt(_localctx, 4);
{
- setState(390);
+ setState(376);
match(IF);
- setState(391);
+ setState(377);
match(PAR_BEGIN);
- setState(392);
+ setState(378);
commaExpr(0);
- setState(393);
+ setState(379);
match(PAR_END);
- setState(394);
+ setState(380);
stmt();
- setState(397);
+ setState(383);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,35,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,34,_ctx) ) {
case 1:
{
- setState(395);
+ setState(381);
match(ELSE);
- setState(396);
+ setState(382);
stmt();
}
break;
@@ -3539,20 +3443,54 @@ public class KickCParser extends Parser {
_localctx = new StmtWhileContext(_localctx);
enterOuterAlt(_localctx, 5);
{
- setState(402);
+ setState(388);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0)) {
{
{
- setState(399);
+ setState(385);
directive();
}
}
- setState(404);
+ setState(390);
_errHandler.sync(this);
_la = _input.LA(1);
}
+ setState(391);
+ match(WHILE);
+ setState(392);
+ match(PAR_BEGIN);
+ setState(393);
+ commaExpr(0);
+ setState(394);
+ match(PAR_END);
+ setState(395);
+ stmt();
+ }
+ break;
+ case 6:
+ _localctx = new StmtDoWhileContext(_localctx);
+ enterOuterAlt(_localctx, 6);
+ {
+ setState(400);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0)) {
+ {
+ {
+ setState(397);
+ directive();
+ }
+ }
+ setState(402);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ }
+ setState(403);
+ match(DO);
+ setState(404);
+ stmt();
setState(405);
match(WHILE);
setState(406);
@@ -3562,12 +3500,12 @@ public class KickCParser extends Parser {
setState(408);
match(PAR_END);
setState(409);
- stmt();
+ match(SEMICOLON);
}
break;
- case 6:
- _localctx = new StmtDoWhileContext(_localctx);
- enterOuterAlt(_localctx, 6);
+ case 7:
+ _localctx = new StmtForContext(_localctx);
+ enterOuterAlt(_localctx, 7);
{
setState(414);
_errHandler.sync(this);
@@ -3584,48 +3522,14 @@ public class KickCParser extends Parser {
_la = _input.LA(1);
}
setState(417);
- match(DO);
- setState(418);
- stmt();
- setState(419);
- match(WHILE);
- setState(420);
- match(PAR_BEGIN);
- setState(421);
- commaExpr(0);
- setState(422);
- match(PAR_END);
- setState(423);
- match(SEMICOLON);
- }
- break;
- case 7:
- _localctx = new StmtForContext(_localctx);
- enterOuterAlt(_localctx, 7);
- {
- setState(428);
- _errHandler.sync(this);
- _la = _input.LA(1);
- while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0)) {
- {
- {
- setState(425);
- directive();
- }
- }
- setState(430);
- _errHandler.sync(this);
- _la = _input.LA(1);
- }
- setState(431);
match(FOR);
- setState(432);
+ setState(418);
match(PAR_BEGIN);
- setState(433);
+ setState(419);
forLoop();
- setState(434);
+ setState(420);
match(PAR_END);
- setState(435);
+ setState(421);
stmt();
}
break;
@@ -3633,19 +3537,19 @@ public class KickCParser extends Parser {
_localctx = new StmtSwitchContext(_localctx);
enterOuterAlt(_localctx, 8);
{
- setState(437);
+ setState(423);
match(SWITCH);
- setState(438);
+ setState(424);
match(PAR_BEGIN);
- setState(439);
+ setState(425);
commaExpr(0);
- setState(440);
+ setState(426);
match(PAR_END);
- setState(441);
+ setState(427);
match(CURLY_BEGIN);
- setState(442);
+ setState(428);
switchCases();
- setState(443);
+ setState(429);
match(CURLY_END);
}
break;
@@ -3653,19 +3557,19 @@ public class KickCParser extends Parser {
_localctx = new StmtReturnContext(_localctx);
enterOuterAlt(_localctx, 9);
{
- setState(445);
+ setState(431);
match(RETURN);
- setState(447);
+ setState(433);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN))) != 0) || ((((_la - 71)) & ~0x3f) == 0 && ((1L << (_la - 71)) & ((1L << (SIZEOF - 71)) | (1L << (TYPEID - 71)) | (1L << (DEFINED - 71)) | (1L << (LOGIC_NOT - 71)) | (1L << (BOOLEAN - 71)) | (1L << (NUMBER - 71)) | (1L << (NAME - 71)) | (1L << (STRING - 71)) | (1L << (CHAR - 71)))) != 0)) {
{
- setState(446);
+ setState(432);
commaExpr(0);
}
}
- setState(449);
+ setState(435);
match(SEMICOLON);
}
break;
@@ -3673,9 +3577,9 @@ public class KickCParser extends Parser {
_localctx = new StmtBreakContext(_localctx);
enterOuterAlt(_localctx, 10);
{
- setState(450);
+ setState(436);
match(BREAK);
- setState(451);
+ setState(437);
match(SEMICOLON);
}
break;
@@ -3683,9 +3587,9 @@ public class KickCParser extends Parser {
_localctx = new StmtContinueContext(_localctx);
enterOuterAlt(_localctx, 11);
{
- setState(452);
+ setState(438);
match(CONTINUE);
- setState(453);
+ setState(439);
match(SEMICOLON);
}
break;
@@ -3693,23 +3597,23 @@ public class KickCParser extends Parser {
_localctx = new StmtAsmContext(_localctx);
enterOuterAlt(_localctx, 12);
{
- setState(454);
+ setState(440);
match(ASM);
- setState(456);
+ setState(442);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==PAR_BEGIN) {
{
- setState(455);
+ setState(441);
asmDirectives();
}
}
- setState(458);
+ setState(444);
match(CURLY_BEGIN);
- setState(459);
+ setState(445);
asmLines();
- setState(460);
+ setState(446);
match(ASM_CURLY_END);
}
break;
@@ -3717,7 +3621,7 @@ public class KickCParser extends Parser {
_localctx = new StmtDeclKasmContext(_localctx);
enterOuterAlt(_localctx, 13);
{
- setState(462);
+ setState(448);
kasmContent();
}
break;
@@ -3725,7 +3629,7 @@ public class KickCParser extends Parser {
_localctx = new StmtEmptyContext(_localctx);
enterOuterAlt(_localctx, 14);
{
- setState(463);
+ setState(449);
match(SEMICOLON);
}
break;
@@ -3775,40 +3679,40 @@ public class KickCParser extends Parser {
public final SwitchCasesContext switchCases() throws RecognitionException {
SwitchCasesContext _localctx = new SwitchCasesContext(_ctx, getState());
- enterRule(_localctx, 56, RULE_switchCases);
+ enterRule(_localctx, 54, RULE_switchCases);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(467);
+ setState(453);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
- setState(466);
+ setState(452);
switchCase();
}
}
- setState(469);
+ setState(455);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==CASE );
- setState(476);
+ setState(462);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==DEFAULT) {
{
- setState(471);
+ setState(457);
match(DEFAULT);
- setState(472);
+ setState(458);
match(COLON);
- setState(474);
+ setState(460);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << SEMICOLON) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION) | (1L << IF) | (1L << WHILE) | (1L << DO) | (1L << FOR) | (1L << SWITCH) | (1L << RETURN))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (BREAK - 64)) | (1L << (CONTINUE - 64)) | (1L << (ASM - 64)) | (1L << (STRUCT - 64)) | (1L << (ENUM - 64)) | (1L << (SIZEOF - 64)) | (1L << (TYPEID - 64)) | (1L << (DEFINED - 64)) | (1L << (KICKASM - 64)) | (1L << (LOGIC_NOT - 64)) | (1L << (SIGNEDNESS - 64)) | (1L << (SIMPLETYPE - 64)) | (1L << (BOOLEAN - 64)) | (1L << (NUMBER - 64)) | (1L << (NAME - 64)) | (1L << (STRING - 64)) | (1L << (CHAR - 64)))) != 0)) {
{
- setState(473);
+ setState(459);
stmtSeq();
}
}
@@ -3859,23 +3763,23 @@ public class KickCParser extends Parser {
public final SwitchCaseContext switchCase() throws RecognitionException {
SwitchCaseContext _localctx = new SwitchCaseContext(_ctx, getState());
- enterRule(_localctx, 58, RULE_switchCase);
+ enterRule(_localctx, 56, RULE_switchCase);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(478);
+ setState(464);
match(CASE);
- setState(479);
+ setState(465);
expr(0);
- setState(480);
+ setState(466);
match(COLON);
- setState(482);
+ setState(468);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << SEMICOLON) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION) | (1L << IF) | (1L << WHILE) | (1L << DO) | (1L << FOR) | (1L << SWITCH) | (1L << RETURN))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (BREAK - 64)) | (1L << (CONTINUE - 64)) | (1L << (ASM - 64)) | (1L << (STRUCT - 64)) | (1L << (ENUM - 64)) | (1L << (SIZEOF - 64)) | (1L << (TYPEID - 64)) | (1L << (DEFINED - 64)) | (1L << (KICKASM - 64)) | (1L << (LOGIC_NOT - 64)) | (1L << (SIGNEDNESS - 64)) | (1L << (SIMPLETYPE - 64)) | (1L << (BOOLEAN - 64)) | (1L << (NUMBER - 64)) | (1L << (NAME - 64)) | (1L << (STRING - 64)) | (1L << (CHAR - 64)))) != 0)) {
{
- setState(481);
+ setState(467);
stmtSeq();
}
}
@@ -3966,38 +3870,38 @@ public class KickCParser extends Parser {
public final ForLoopContext forLoop() throws RecognitionException {
ForLoopContext _localctx = new ForLoopContext(_ctx, getState());
- enterRule(_localctx, 60, RULE_forLoop);
+ enterRule(_localctx, 58, RULE_forLoop);
int _la;
try {
- setState(500);
+ setState(486);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,48,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,47,_ctx) ) {
case 1:
_localctx = new ForClassicContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(484);
+ setState(470);
forClassicInit();
- setState(485);
+ setState(471);
match(SEMICOLON);
- setState(487);
+ setState(473);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN))) != 0) || ((((_la - 71)) & ~0x3f) == 0 && ((1L << (_la - 71)) & ((1L << (SIZEOF - 71)) | (1L << (TYPEID - 71)) | (1L << (DEFINED - 71)) | (1L << (LOGIC_NOT - 71)) | (1L << (BOOLEAN - 71)) | (1L << (NUMBER - 71)) | (1L << (NAME - 71)) | (1L << (STRING - 71)) | (1L << (CHAR - 71)))) != 0)) {
{
- setState(486);
+ setState(472);
forClassicCondition();
}
}
- setState(489);
+ setState(475);
match(SEMICOLON);
- setState(491);
+ setState(477);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN))) != 0) || ((((_la - 71)) & ~0x3f) == 0 && ((1L << (_la - 71)) & ((1L << (SIZEOF - 71)) | (1L << (TYPEID - 71)) | (1L << (DEFINED - 71)) | (1L << (LOGIC_NOT - 71)) | (1L << (BOOLEAN - 71)) | (1L << (NUMBER - 71)) | (1L << (NAME - 71)) | (1L << (STRING - 71)) | (1L << (CHAR - 71)))) != 0)) {
{
- setState(490);
+ setState(476);
commaExpr(0);
}
}
@@ -4008,17 +3912,17 @@ public class KickCParser extends Parser {
_localctx = new ForRangeContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(493);
+ setState(479);
declType();
- setState(494);
+ setState(480);
declarator(0);
- setState(495);
+ setState(481);
match(COLON);
- setState(496);
+ setState(482);
expr(0);
- setState(497);
+ setState(483);
match(RANGE);
- setState(498);
+ setState(484);
expr(0);
}
break;
@@ -4087,10 +3991,10 @@ public class KickCParser extends Parser {
public final ForClassicInitContext forClassicInit() throws RecognitionException {
ForClassicInitContext _localctx = new ForClassicInitContext(_ctx, getState());
- enterRule(_localctx, 62, RULE_forClassicInit);
+ enterRule(_localctx, 60, RULE_forClassicInit);
int _la;
try {
- setState(506);
+ setState(492);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TYPEDEFNAME:
@@ -4119,12 +4023,12 @@ public class KickCParser extends Parser {
_localctx = new ForClassicInitDeclContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(503);
+ setState(489);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TYPEDEFNAME) | (1L << CONST) | (1L << EXTERN) | (1L << EXPORT) | (1L << ALIGN) | (1L << INLINE) | (1L << VOLATILE) | (1L << STATIC) | (1L << INTERRUPT) | (1L << REGISTER) | (1L << LOCAL_RESERVE) | (1L << ADDRESS) | (1L << ADDRESS_ZEROPAGE) | (1L << ADDRESS_MAINMEM) | (1L << FORM_SSA) | (1L << FORM_MA) | (1L << INTRINSIC) | (1L << CALLINGCONVENTION))) != 0) || ((((_la - 69)) & ~0x3f) == 0 && ((1L << (_la - 69)) & ((1L << (STRUCT - 69)) | (1L << (ENUM - 69)) | (1L << (SIGNEDNESS - 69)) | (1L << (SIMPLETYPE - 69)))) != 0)) {
{
- setState(502);
+ setState(488);
declVariables();
}
}
@@ -4154,7 +4058,7 @@ public class KickCParser extends Parser {
_localctx = new ForClassicInitExprContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(505);
+ setState(491);
commaExpr(0);
}
break;
@@ -4198,11 +4102,11 @@ public class KickCParser extends Parser {
public final ForClassicConditionContext forClassicCondition() throws RecognitionException {
ForClassicConditionContext _localctx = new ForClassicConditionContext(_ctx, getState());
- enterRule(_localctx, 64, RULE_forClassicCondition);
+ enterRule(_localctx, 62, RULE_forClassicCondition);
try {
enterOuterAlt(_localctx, 1);
{
- setState(508);
+ setState(494);
commaExpr(0);
}
}
@@ -4280,8 +4184,8 @@ public class KickCParser extends Parser {
int _parentState = getState();
CommaExprContext _localctx = new CommaExprContext(_ctx, _parentState);
CommaExprContext _prevctx = _localctx;
- int _startState = 66;
- enterRecursionRule(_localctx, 66, RULE_commaExpr, _p);
+ int _startState = 64;
+ enterRecursionRule(_localctx, 64, RULE_commaExpr, _p);
try {
int _alt;
enterOuterAlt(_localctx, 1);
@@ -4291,13 +4195,13 @@ public class KickCParser extends Parser {
_ctx = _localctx;
_prevctx = _localctx;
- setState(511);
+ setState(497);
expr(0);
}
_ctx.stop = _input.LT(-1);
- setState(518);
+ setState(504);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,51,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,50,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
@@ -4306,18 +4210,18 @@ public class KickCParser extends Parser {
{
_localctx = new CommaSimpleContext(new CommaExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_commaExpr);
- setState(513);
+ setState(499);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
- setState(514);
+ setState(500);
match(COMMA);
- setState(515);
+ setState(501);
expr(0);
}
}
}
- setState(520);
+ setState(506);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,51,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,50,_ctx);
}
}
}
@@ -4872,27 +4776,27 @@ public class KickCParser extends Parser {
int _parentState = getState();
ExprContext _localctx = new ExprContext(_ctx, _parentState);
ExprContext _prevctx = _localctx;
- int _startState = 68;
- enterRecursionRule(_localctx, 68, RULE_expr, _p);
+ int _startState = 66;
+ enterRecursionRule(_localctx, 66, RULE_expr, _p);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
- setState(586);
+ setState(572);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,59,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,58,_ctx) ) {
case 1:
{
_localctx = new ExprParContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(522);
+ setState(508);
match(PAR_BEGIN);
- setState(523);
+ setState(509);
commaExpr(0);
- setState(524);
+ setState(510);
match(PAR_END);
}
break;
@@ -4901,11 +4805,11 @@ public class KickCParser extends Parser {
_localctx = new ExprSizeOfContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(526);
+ setState(512);
match(SIZEOF);
- setState(527);
+ setState(513);
match(PAR_BEGIN);
- setState(530);
+ setState(516);
_errHandler.sync(this);
switch (_input.LA(1)) {
case CURLY_BEGIN:
@@ -4929,7 +4833,7 @@ public class KickCParser extends Parser {
case STRING:
case CHAR:
{
- setState(528);
+ setState(514);
expr(0);
}
break;
@@ -4939,14 +4843,14 @@ public class KickCParser extends Parser {
case SIGNEDNESS:
case SIMPLETYPE:
{
- setState(529);
+ setState(515);
typeSpecifier(0);
}
break;
default:
throw new NoViableAltException(this);
}
- setState(532);
+ setState(518);
match(PAR_END);
}
break;
@@ -4955,11 +4859,11 @@ public class KickCParser extends Parser {
_localctx = new ExprTypeIdContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(534);
+ setState(520);
match(TYPEID);
- setState(535);
+ setState(521);
match(PAR_BEGIN);
- setState(538);
+ setState(524);
_errHandler.sync(this);
switch (_input.LA(1)) {
case CURLY_BEGIN:
@@ -4983,7 +4887,7 @@ public class KickCParser extends Parser {
case STRING:
case CHAR:
{
- setState(536);
+ setState(522);
expr(0);
}
break;
@@ -4993,14 +4897,14 @@ public class KickCParser extends Parser {
case SIGNEDNESS:
case SIMPLETYPE:
{
- setState(537);
+ setState(523);
typeSpecifier(0);
}
break;
default:
throw new NoViableAltException(this);
}
- setState(540);
+ setState(526);
match(PAR_END);
}
break;
@@ -5009,26 +4913,26 @@ public class KickCParser extends Parser {
_localctx = new ExprDefinedContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(542);
+ setState(528);
match(DEFINED);
- setState(544);
+ setState(530);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==PAR_BEGIN) {
{
- setState(543);
+ setState(529);
match(PAR_BEGIN);
}
}
- setState(546);
+ setState(532);
match(NAME);
- setState(548);
+ setState(534);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,55,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,54,_ctx) ) {
case 1:
{
- setState(547);
+ setState(533);
match(PAR_END);
}
break;
@@ -5040,13 +4944,13 @@ public class KickCParser extends Parser {
_localctx = new ExprCastContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(550);
+ setState(536);
match(PAR_BEGIN);
- setState(551);
+ setState(537);
typeSpecifier(0);
- setState(552);
+ setState(538);
match(PAR_END);
- setState(553);
+ setState(539);
expr(24);
}
break;
@@ -5055,7 +4959,7 @@ public class KickCParser extends Parser {
_localctx = new ExprPreModContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(555);
+ setState(541);
_la = _input.LA(1);
if ( !(_la==INC || _la==DEC) ) {
_errHandler.recoverInline(this);
@@ -5065,7 +4969,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(556);
+ setState(542);
expr(23);
}
break;
@@ -5074,9 +4978,9 @@ public class KickCParser extends Parser {
_localctx = new ExprPtrContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(557);
+ setState(543);
match(ASTERISK);
- setState(558);
+ setState(544);
expr(21);
}
break;
@@ -5085,7 +4989,7 @@ public class KickCParser extends Parser {
_localctx = new ExprUnaryContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(559);
+ setState(545);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << PLUS) | (1L << MINUS) | (1L << AND) | (1L << BIT_NOT))) != 0) || _la==LOGIC_NOT) ) {
_errHandler.recoverInline(this);
@@ -5095,7 +4999,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(560);
+ setState(546);
expr(20);
}
break;
@@ -5104,7 +5008,7 @@ public class KickCParser extends Parser {
_localctx = new ExprUnaryContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(561);
+ setState(547);
_la = _input.LA(1);
if ( !(_la==LESS_THAN || _la==GREATER_THAN) ) {
_errHandler.recoverInline(this);
@@ -5114,7 +5018,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(562);
+ setState(548);
expr(16);
}
break;
@@ -5123,39 +5027,39 @@ public class KickCParser extends Parser {
_localctx = new InitListContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(563);
+ setState(549);
match(CURLY_BEGIN);
- setState(564);
+ setState(550);
expr(0);
- setState(569);
+ setState(555);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,56,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,55,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
- setState(565);
+ setState(551);
match(COMMA);
- setState(566);
+ setState(552);
expr(0);
}
}
}
- setState(571);
+ setState(557);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,56,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,55,_ctx);
}
- setState(573);
+ setState(559);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==COMMA) {
{
- setState(572);
+ setState(558);
match(COMMA);
}
}
- setState(575);
+ setState(561);
match(CURLY_END);
}
break;
@@ -5164,7 +5068,7 @@ public class KickCParser extends Parser {
_localctx = new ExprIdContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(577);
+ setState(563);
match(NAME);
}
break;
@@ -5173,7 +5077,7 @@ public class KickCParser extends Parser {
_localctx = new ExprNumberContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(578);
+ setState(564);
match(NUMBER);
}
break;
@@ -5182,7 +5086,7 @@ public class KickCParser extends Parser {
_localctx = new ExprStringContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(580);
+ setState(566);
_errHandler.sync(this);
_alt = 1;
do {
@@ -5190,7 +5094,7 @@ public class KickCParser extends Parser {
case 1:
{
{
- setState(579);
+ setState(565);
match(STRING);
}
}
@@ -5198,9 +5102,9 @@ public class KickCParser extends Parser {
default:
throw new NoViableAltException(this);
}
- setState(582);
+ setState(568);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,58,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,57,_ctx);
} while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
}
break;
@@ -5209,7 +5113,7 @@ public class KickCParser extends Parser {
_localctx = new ExprCharContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(584);
+ setState(570);
match(CHAR);
}
break;
@@ -5218,30 +5122,30 @@ public class KickCParser extends Parser {
_localctx = new ExprBoolContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(585);
+ setState(571);
match(BOOLEAN);
}
break;
}
_ctx.stop = _input.LT(-1);
- setState(648);
+ setState(634);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,62,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,61,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
- setState(646);
+ setState(632);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,61,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,60,_ctx) ) {
case 1:
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(588);
+ setState(574);
if (!(precpred(_ctx, 19))) throw new FailedPredicateException(this, "precpred(_ctx, 19)");
- setState(589);
+ setState(575);
_la = _input.LA(1);
if ( !(_la==SHIFT_LEFT || _la==SHIFT_RIGHT) ) {
_errHandler.recoverInline(this);
@@ -5251,7 +5155,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(590);
+ setState(576);
expr(20);
}
break;
@@ -5259,9 +5163,9 @@ public class KickCParser extends Parser {
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(591);
+ setState(577);
if (!(precpred(_ctx, 18))) throw new FailedPredicateException(this, "precpred(_ctx, 18)");
- setState(592);
+ setState(578);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << ASTERISK) | (1L << DIVIDE) | (1L << MODULO))) != 0)) ) {
_errHandler.recoverInline(this);
@@ -5271,7 +5175,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(593);
+ setState(579);
expr(19);
}
break;
@@ -5279,9 +5183,9 @@ public class KickCParser extends Parser {
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(594);
+ setState(580);
if (!(precpred(_ctx, 17))) throw new FailedPredicateException(this, "precpred(_ctx, 17)");
- setState(595);
+ setState(581);
_la = _input.LA(1);
if ( !(_la==PLUS || _la==MINUS) ) {
_errHandler.recoverInline(this);
@@ -5291,7 +5195,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(596);
+ setState(582);
expr(18);
}
break;
@@ -5299,9 +5203,9 @@ public class KickCParser extends Parser {
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(597);
+ setState(583);
if (!(precpred(_ctx, 15))) throw new FailedPredicateException(this, "precpred(_ctx, 15)");
- setState(598);
+ setState(584);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << EQUAL) | (1L << NOT_EQUAL) | (1L << LESS_THAN) | (1L << LESS_THAN_EQUAL) | (1L << GREATER_THAN_EQUAL) | (1L << GREATER_THAN))) != 0)) ) {
_errHandler.recoverInline(this);
@@ -5311,7 +5215,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(599);
+ setState(585);
expr(16);
}
break;
@@ -5319,13 +5223,13 @@ public class KickCParser extends Parser {
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(600);
+ setState(586);
if (!(precpred(_ctx, 14))) throw new FailedPredicateException(this, "precpred(_ctx, 14)");
{
- setState(601);
+ setState(587);
match(AND);
}
- setState(602);
+ setState(588);
expr(15);
}
break;
@@ -5333,13 +5237,13 @@ public class KickCParser extends Parser {
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(603);
+ setState(589);
if (!(precpred(_ctx, 13))) throw new FailedPredicateException(this, "precpred(_ctx, 13)");
{
- setState(604);
+ setState(590);
match(BIT_XOR);
}
- setState(605);
+ setState(591);
expr(14);
}
break;
@@ -5347,13 +5251,13 @@ public class KickCParser extends Parser {
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(606);
+ setState(592);
if (!(precpred(_ctx, 12))) throw new FailedPredicateException(this, "precpred(_ctx, 12)");
{
- setState(607);
+ setState(593);
match(BIT_OR);
}
- setState(608);
+ setState(594);
expr(13);
}
break;
@@ -5361,13 +5265,13 @@ public class KickCParser extends Parser {
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(609);
+ setState(595);
if (!(precpred(_ctx, 11))) throw new FailedPredicateException(this, "precpred(_ctx, 11)");
{
- setState(610);
+ setState(596);
match(LOGIC_AND);
}
- setState(611);
+ setState(597);
expr(12);
}
break;
@@ -5375,13 +5279,13 @@ public class KickCParser extends Parser {
{
_localctx = new ExprBinaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(612);
+ setState(598);
if (!(precpred(_ctx, 10))) throw new FailedPredicateException(this, "precpred(_ctx, 10)");
{
- setState(613);
+ setState(599);
match(LOGIC_OR);
}
- setState(614);
+ setState(600);
expr(11);
}
break;
@@ -5389,15 +5293,15 @@ public class KickCParser extends Parser {
{
_localctx = new ExprTernaryContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(615);
+ setState(601);
if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)");
- setState(616);
+ setState(602);
match(CONDITION);
- setState(617);
+ setState(603);
expr(0);
- setState(618);
+ setState(604);
match(COLON);
- setState(619);
+ setState(605);
expr(10);
}
break;
@@ -5405,11 +5309,11 @@ public class KickCParser extends Parser {
{
_localctx = new ExprAssignmentContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(621);
+ setState(607);
if (!(precpred(_ctx, 8))) throw new FailedPredicateException(this, "precpred(_ctx, 8)");
- setState(622);
+ setState(608);
match(ASSIGN);
- setState(623);
+ setState(609);
expr(8);
}
break;
@@ -5417,11 +5321,11 @@ public class KickCParser extends Parser {
{
_localctx = new ExprAssignmentCompoundContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(624);
+ setState(610);
if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)");
- setState(625);
+ setState(611);
match(ASSIGN_COMPOUND);
- setState(626);
+ setState(612);
expr(7);
}
break;
@@ -5429,11 +5333,11 @@ public class KickCParser extends Parser {
{
_localctx = new ExprDotContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(627);
+ setState(613);
if (!(precpred(_ctx, 31))) throw new FailedPredicateException(this, "precpred(_ctx, 31)");
- setState(628);
+ setState(614);
match(DOT);
- setState(629);
+ setState(615);
match(NAME);
}
break;
@@ -5441,11 +5345,11 @@ public class KickCParser extends Parser {
{
_localctx = new ExprArrowContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(630);
+ setState(616);
if (!(precpred(_ctx, 30))) throw new FailedPredicateException(this, "precpred(_ctx, 30)");
- setState(631);
+ setState(617);
match(ARROW);
- setState(632);
+ setState(618);
match(NAME);
}
break;
@@ -5453,21 +5357,21 @@ public class KickCParser extends Parser {
{
_localctx = new ExprCallContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(633);
+ setState(619);
if (!(precpred(_ctx, 29))) throw new FailedPredicateException(this, "precpred(_ctx, 29)");
- setState(634);
+ setState(620);
match(PAR_BEGIN);
- setState(636);
+ setState(622);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CURLY_BEGIN) | (1L << PAR_BEGIN) | (1L << PLUS) | (1L << MINUS) | (1L << ASTERISK) | (1L << INC) | (1L << DEC) | (1L << AND) | (1L << BIT_NOT) | (1L << LESS_THAN) | (1L << GREATER_THAN))) != 0) || ((((_la - 71)) & ~0x3f) == 0 && ((1L << (_la - 71)) & ((1L << (SIZEOF - 71)) | (1L << (TYPEID - 71)) | (1L << (DEFINED - 71)) | (1L << (LOGIC_NOT - 71)) | (1L << (BOOLEAN - 71)) | (1L << (NUMBER - 71)) | (1L << (NAME - 71)) | (1L << (STRING - 71)) | (1L << (CHAR - 71)))) != 0)) {
{
- setState(635);
+ setState(621);
parameterList();
}
}
- setState(638);
+ setState(624);
match(PAR_END);
}
break;
@@ -5475,13 +5379,13 @@ public class KickCParser extends Parser {
{
_localctx = new ExprArrayContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(639);
+ setState(625);
if (!(precpred(_ctx, 25))) throw new FailedPredicateException(this, "precpred(_ctx, 25)");
- setState(640);
+ setState(626);
match(BRACKET_BEGIN);
- setState(641);
+ setState(627);
commaExpr(0);
- setState(642);
+ setState(628);
match(BRACKET_END);
}
break;
@@ -5489,9 +5393,9 @@ public class KickCParser extends Parser {
{
_localctx = new ExprPostModContext(new ExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_expr);
- setState(644);
+ setState(630);
if (!(precpred(_ctx, 22))) throw new FailedPredicateException(this, "precpred(_ctx, 22)");
- setState(645);
+ setState(631);
_la = _input.LA(1);
if ( !(_la==INC || _la==DEC) ) {
_errHandler.recoverInline(this);
@@ -5506,9 +5410,9 @@ public class KickCParser extends Parser {
}
}
}
- setState(650);
+ setState(636);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,62,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,61,_ctx);
}
}
}
@@ -5555,26 +5459,26 @@ public class KickCParser extends Parser {
public final ParameterListContext parameterList() throws RecognitionException {
ParameterListContext _localctx = new ParameterListContext(_ctx, getState());
- enterRule(_localctx, 70, RULE_parameterList);
+ enterRule(_localctx, 68, RULE_parameterList);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(651);
+ setState(637);
expr(0);
- setState(656);
+ setState(642);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
- setState(652);
+ setState(638);
match(COMMA);
- setState(653);
+ setState(639);
expr(0);
}
}
- setState(658);
+ setState(644);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -5618,24 +5522,24 @@ public class KickCParser extends Parser {
public final KasmContentContext kasmContent() throws RecognitionException {
KasmContentContext _localctx = new KasmContentContext(_ctx, getState());
- enterRule(_localctx, 72, RULE_kasmContent);
+ enterRule(_localctx, 70, RULE_kasmContent);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(659);
+ setState(645);
match(KICKASM);
- setState(661);
+ setState(647);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==PAR_BEGIN) {
{
- setState(660);
+ setState(646);
asmDirectives();
}
}
- setState(663);
+ setState(649);
match(KICKASM_BODY);
}
}
@@ -5684,32 +5588,32 @@ public class KickCParser extends Parser {
public final AsmDirectivesContext asmDirectives() throws RecognitionException {
AsmDirectivesContext _localctx = new AsmDirectivesContext(_ctx, getState());
- enterRule(_localctx, 74, RULE_asmDirectives);
+ enterRule(_localctx, 72, RULE_asmDirectives);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(665);
+ setState(651);
match(PAR_BEGIN);
- setState(666);
+ setState(652);
asmDirective();
- setState(671);
+ setState(657);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
- setState(667);
+ setState(653);
match(COMMA);
- setState(668);
+ setState(654);
asmDirective();
}
}
- setState(673);
+ setState(659);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(674);
+ setState(660);
match(PAR_END);
}
}
@@ -5832,18 +5736,18 @@ public class KickCParser extends Parser {
public final AsmDirectiveContext asmDirective() throws RecognitionException {
AsmDirectiveContext _localctx = new AsmDirectiveContext(_ctx, getState());
- enterRule(_localctx, 76, RULE_asmDirective);
+ enterRule(_localctx, 74, RULE_asmDirective);
try {
- setState(686);
+ setState(672);
_errHandler.sync(this);
switch (_input.LA(1)) {
case RESOURCE:
_localctx = new AsmDirectiveResourceContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(676);
+ setState(662);
match(RESOURCE);
- setState(677);
+ setState(663);
match(STRING);
}
break;
@@ -5851,9 +5755,9 @@ public class KickCParser extends Parser {
_localctx = new AsmDirectiveUsesContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(678);
+ setState(664);
match(USES);
- setState(679);
+ setState(665);
match(NAME);
}
break;
@@ -5861,9 +5765,9 @@ public class KickCParser extends Parser {
_localctx = new AsmDirectiveClobberContext(_localctx);
enterOuterAlt(_localctx, 3);
{
- setState(680);
+ setState(666);
match(CLOBBERS);
- setState(681);
+ setState(667);
match(STRING);
}
break;
@@ -5871,9 +5775,9 @@ public class KickCParser extends Parser {
_localctx = new AsmDirectiveBytesContext(_localctx);
enterOuterAlt(_localctx, 4);
{
- setState(682);
+ setState(668);
match(BYTES);
- setState(683);
+ setState(669);
expr(0);
}
break;
@@ -5881,9 +5785,9 @@ public class KickCParser extends Parser {
_localctx = new AsmDirectiveCyclesContext(_localctx);
enterOuterAlt(_localctx, 5);
{
- setState(684);
+ setState(670);
match(CYCLES);
- setState(685);
+ setState(671);
expr(0);
}
break;
@@ -5930,22 +5834,22 @@ public class KickCParser extends Parser {
public final AsmLinesContext asmLines() throws RecognitionException {
AsmLinesContext _localctx = new AsmLinesContext(_ctx, getState());
- enterRule(_localctx, 78, RULE_asmLines);
+ enterRule(_localctx, 76, RULE_asmLines);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(691);
+ setState(677);
_errHandler.sync(this);
_la = _input.LA(1);
while (((((_la - 113)) & ~0x3f) == 0 && ((1L << (_la - 113)) & ((1L << (ASM_BYTE - 113)) | (1L << (ASM_MNEMONIC - 113)) | (1L << (ASM_MULTI_NAME - 113)) | (1L << (ASM_NAME - 113)))) != 0)) {
{
{
- setState(688);
+ setState(674);
asmLine();
}
}
- setState(693);
+ setState(679);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -5993,30 +5897,30 @@ public class KickCParser extends Parser {
public final AsmLineContext asmLine() throws RecognitionException {
AsmLineContext _localctx = new AsmLineContext(_ctx, getState());
- enterRule(_localctx, 80, RULE_asmLine);
+ enterRule(_localctx, 78, RULE_asmLine);
try {
- setState(697);
+ setState(683);
_errHandler.sync(this);
switch (_input.LA(1)) {
case ASM_MULTI_NAME:
case ASM_NAME:
enterOuterAlt(_localctx, 1);
{
- setState(694);
+ setState(680);
asmLabel();
}
break;
case ASM_MNEMONIC:
enterOuterAlt(_localctx, 2);
{
- setState(695);
+ setState(681);
asmInstruction();
}
break;
case ASM_BYTE:
enterOuterAlt(_localctx, 3);
{
- setState(696);
+ setState(682);
asmBytes();
}
break;
@@ -6093,31 +5997,31 @@ public class KickCParser extends Parser {
public final AsmLabelContext asmLabel() throws RecognitionException {
AsmLabelContext _localctx = new AsmLabelContext(_ctx, getState());
- enterRule(_localctx, 82, RULE_asmLabel);
+ enterRule(_localctx, 80, RULE_asmLabel);
int _la;
try {
- setState(715);
+ setState(701);
_errHandler.sync(this);
switch (_input.LA(1)) {
case ASM_NAME:
_localctx = new AsmLabelNameContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(699);
+ setState(685);
match(ASM_NAME);
- setState(700);
+ setState(686);
match(ASM_COLON);
- setState(704);
+ setState(690);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==ASM_TAG) {
{
{
- setState(701);
+ setState(687);
match(ASM_TAG);
}
}
- setState(706);
+ setState(692);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -6127,21 +6031,21 @@ public class KickCParser extends Parser {
_localctx = new AsmLabelMultiContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(707);
+ setState(693);
match(ASM_MULTI_NAME);
- setState(708);
+ setState(694);
match(ASM_COLON);
- setState(712);
+ setState(698);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==ASM_TAG) {
{
{
- setState(709);
+ setState(695);
match(ASM_TAG);
}
}
- setState(714);
+ setState(700);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -6192,34 +6096,34 @@ public class KickCParser extends Parser {
public final AsmInstructionContext asmInstruction() throws RecognitionException {
AsmInstructionContext _localctx = new AsmInstructionContext(_ctx, getState());
- enterRule(_localctx, 84, RULE_asmInstruction);
+ enterRule(_localctx, 82, RULE_asmInstruction);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(717);
+ setState(703);
match(ASM_MNEMONIC);
- setState(719);
+ setState(705);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,72,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,71,_ctx) ) {
case 1:
{
- setState(718);
+ setState(704);
asmParamMode();
}
break;
}
- setState(724);
+ setState(710);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==ASM_TAG) {
{
{
- setState(721);
+ setState(707);
match(ASM_TAG);
}
}
- setState(726);
+ setState(712);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -6273,42 +6177,42 @@ public class KickCParser extends Parser {
public final AsmBytesContext asmBytes() throws RecognitionException {
AsmBytesContext _localctx = new AsmBytesContext(_ctx, getState());
- enterRule(_localctx, 86, RULE_asmBytes);
+ enterRule(_localctx, 84, RULE_asmBytes);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(727);
+ setState(713);
match(ASM_BYTE);
- setState(728);
+ setState(714);
asmExpr(0);
- setState(733);
+ setState(719);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==ASM_COMMA) {
{
{
- setState(729);
+ setState(715);
match(ASM_COMMA);
- setState(730);
+ setState(716);
asmExpr(0);
}
}
- setState(735);
+ setState(721);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(739);
+ setState(725);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==ASM_TAG) {
{
{
- setState(736);
+ setState(722);
match(ASM_TAG);
}
}
- setState(741);
+ setState(727);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -6553,16 +6457,16 @@ public class KickCParser extends Parser {
public final AsmParamModeContext asmParamMode() throws RecognitionException {
AsmParamModeContext _localctx = new AsmParamModeContext(_ctx, getState());
- enterRule(_localctx, 88, RULE_asmParamMode);
+ enterRule(_localctx, 86, RULE_asmParamMode);
try {
- setState(787);
+ setState(773);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,76,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,75,_ctx) ) {
case 1:
_localctx = new AsmModeAbsContext(_localctx);
enterOuterAlt(_localctx, 1);
{
- setState(742);
+ setState(728);
asmExpr(0);
}
break;
@@ -6570,9 +6474,9 @@ public class KickCParser extends Parser {
_localctx = new AsmModeImmContext(_localctx);
enterOuterAlt(_localctx, 2);
{
- setState(743);
+ setState(729);
match(ASM_IMM);
- setState(744);
+ setState(730);
asmExpr(0);
}
break;
@@ -6580,11 +6484,11 @@ public class KickCParser extends Parser {
_localctx = new AsmModeAbsXYContext(_localctx);
enterOuterAlt(_localctx, 3);
{
- setState(745);
+ setState(731);
asmExpr(0);
- setState(746);
+ setState(732);
match(ASM_COMMA);
- setState(747);
+ setState(733);
asmExpr(0);
}
break;
@@ -6592,15 +6496,15 @@ public class KickCParser extends Parser {
_localctx = new AsmModeIndIdxXYContext(_localctx);
enterOuterAlt(_localctx, 4);
{
- setState(749);
+ setState(735);
match(ASM_PAR_BEGIN);
- setState(750);
+ setState(736);
asmExpr(0);
- setState(751);
+ setState(737);
match(ASM_PAR_END);
- setState(752);
+ setState(738);
match(ASM_COMMA);
- setState(753);
+ setState(739);
match(ASM_NAME);
}
break;
@@ -6608,19 +6512,19 @@ public class KickCParser extends Parser {
_localctx = new AsmModeIndLongIdxXYContext(_localctx);
enterOuterAlt(_localctx, 5);
{
- setState(755);
+ setState(741);
match(ASM_PAR_BEGIN);
- setState(756);
+ setState(742);
match(ASM_PAR_BEGIN);
- setState(757);
+ setState(743);
asmExpr(0);
- setState(758);
+ setState(744);
match(ASM_PAR_END);
- setState(759);
+ setState(745);
match(ASM_PAR_END);
- setState(760);
+ setState(746);
match(ASM_COMMA);
- setState(761);
+ setState(747);
match(ASM_NAME);
}
break;
@@ -6628,19 +6532,19 @@ public class KickCParser extends Parser {
_localctx = new AsmModeSPIndIdxContext(_localctx);
enterOuterAlt(_localctx, 6);
{
- setState(763);
+ setState(749);
match(ASM_PAR_BEGIN);
- setState(764);
+ setState(750);
asmExpr(0);
- setState(765);
+ setState(751);
match(ASM_COMMA);
- setState(766);
+ setState(752);
match(ASM_NAME);
- setState(767);
+ setState(753);
match(ASM_PAR_END);
- setState(768);
+ setState(754);
match(ASM_COMMA);
- setState(769);
+ setState(755);
match(ASM_NAME);
}
break;
@@ -6648,15 +6552,15 @@ public class KickCParser extends Parser {
_localctx = new AsmModeIdxIndXYContext(_localctx);
enterOuterAlt(_localctx, 7);
{
- setState(771);
+ setState(757);
match(ASM_PAR_BEGIN);
- setState(772);
+ setState(758);
asmExpr(0);
- setState(773);
+ setState(759);
match(ASM_COMMA);
- setState(774);
+ setState(760);
match(ASM_NAME);
- setState(775);
+ setState(761);
match(ASM_PAR_END);
}
break;
@@ -6664,11 +6568,11 @@ public class KickCParser extends Parser {
_localctx = new AsmModeIndContext(_localctx);
enterOuterAlt(_localctx, 8);
{
- setState(777);
+ setState(763);
match(ASM_PAR_BEGIN);
- setState(778);
+ setState(764);
asmExpr(0);
- setState(779);
+ setState(765);
match(ASM_PAR_END);
}
break;
@@ -6676,15 +6580,15 @@ public class KickCParser extends Parser {
_localctx = new AsmModeIndLongContext(_localctx);
enterOuterAlt(_localctx, 9);
{
- setState(781);
+ setState(767);
match(ASM_PAR_BEGIN);
- setState(782);
+ setState(768);
match(ASM_PAR_BEGIN);
- setState(783);
+ setState(769);
asmExpr(0);
- setState(784);
+ setState(770);
match(ASM_PAR_END);
- setState(785);
+ setState(771);
match(ASM_PAR_END);
}
break;
@@ -6882,14 +6786,14 @@ public class KickCParser extends Parser {
int _parentState = getState();
AsmExprContext _localctx = new AsmExprContext(_ctx, _parentState);
AsmExprContext _prevctx = _localctx;
- int _startState = 90;
- enterRecursionRule(_localctx, 90, RULE_asmExpr, _p);
+ int _startState = 88;
+ enterRecursionRule(_localctx, 88, RULE_asmExpr, _p);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
- setState(803);
+ setState(789);
_errHandler.sync(this);
switch (_input.LA(1)) {
case ASM_BRACKET_BEGIN:
@@ -6898,11 +6802,11 @@ public class KickCParser extends Parser {
_ctx = _localctx;
_prevctx = _localctx;
- setState(790);
+ setState(776);
match(ASM_BRACKET_BEGIN);
- setState(791);
+ setState(777);
asmExpr(0);
- setState(792);
+ setState(778);
match(ASM_BRACKET_END);
}
break;
@@ -6914,7 +6818,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprUnaryContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(794);
+ setState(780);
_la = _input.LA(1);
if ( !(((((_la - 125)) & ~0x3f) == 0 && ((1L << (_la - 125)) & ((1L << (ASM_PLUS - 125)) | (1L << (ASM_MINUS - 125)) | (1L << (ASM_LESS_THAN - 125)) | (1L << (ASM_GREATER_THAN - 125)))) != 0)) ) {
_errHandler.recoverInline(this);
@@ -6924,7 +6828,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(795);
+ setState(781);
asmExpr(8);
}
break;
@@ -6933,7 +6837,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprLabelContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(796);
+ setState(782);
match(ASM_NAME);
}
break;
@@ -6942,7 +6846,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprLabelRelContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(797);
+ setState(783);
match(ASM_MULTI_REL);
}
break;
@@ -6951,11 +6855,11 @@ public class KickCParser extends Parser {
_localctx = new AsmExprReplaceContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(798);
+ setState(784);
match(ASM_CURLY_BEGIN);
- setState(799);
+ setState(785);
match(ASM_NAME);
- setState(800);
+ setState(786);
match(ASM_CURLY_END);
}
break;
@@ -6964,7 +6868,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprIntContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(801);
+ setState(787);
match(ASM_NUMBER);
}
break;
@@ -6973,7 +6877,7 @@ public class KickCParser extends Parser {
_localctx = new AsmExprCharContext(_localctx);
_ctx = _localctx;
_prevctx = _localctx;
- setState(802);
+ setState(788);
match(ASM_CHAR);
}
break;
@@ -6981,28 +6885,28 @@ public class KickCParser extends Parser {
throw new NoViableAltException(this);
}
_ctx.stop = _input.LT(-1);
- setState(819);
+ setState(805);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,79,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,78,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
- setState(817);
+ setState(803);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,78,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,77,_ctx) ) {
case 1:
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
- setState(805);
+ setState(791);
if (!(precpred(_ctx, 10))) throw new FailedPredicateException(this, "precpred(_ctx, 10)");
{
- setState(806);
+ setState(792);
match(ASM_DOT);
}
- setState(807);
+ setState(793);
asmExpr(11);
}
break;
@@ -7010,9 +6914,9 @@ public class KickCParser extends Parser {
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
- setState(808);
+ setState(794);
if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)");
- setState(809);
+ setState(795);
_la = _input.LA(1);
if ( !(_la==ASM_SHIFT_LEFT || _la==ASM_SHIFT_RIGHT) ) {
_errHandler.recoverInline(this);
@@ -7022,7 +6926,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(810);
+ setState(796);
asmExpr(10);
}
break;
@@ -7030,9 +6934,9 @@ public class KickCParser extends Parser {
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
- setState(811);
+ setState(797);
if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)");
- setState(812);
+ setState(798);
_la = _input.LA(1);
if ( !(_la==ASM_MULTIPLY || _la==ASM_DIVIDE) ) {
_errHandler.recoverInline(this);
@@ -7042,7 +6946,7 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(813);
+ setState(799);
asmExpr(8);
}
break;
@@ -7050,9 +6954,9 @@ public class KickCParser extends Parser {
{
_localctx = new AsmExprBinaryContext(new AsmExprContext(_parentctx, _parentState));
pushNewRecursionContext(_localctx, _startState, RULE_asmExpr);
- setState(814);
+ setState(800);
if (!(precpred(_ctx, 6))) throw new FailedPredicateException(this, "precpred(_ctx, 6)");
- setState(815);
+ setState(801);
_la = _input.LA(1);
if ( !(_la==ASM_PLUS || _la==ASM_MINUS) ) {
_errHandler.recoverInline(this);
@@ -7062,16 +6966,16 @@ public class KickCParser extends Parser {
_errHandler.reportMatch(this);
consume();
}
- setState(816);
+ setState(802);
asmExpr(7);
}
break;
}
}
}
- setState(821);
+ setState(807);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,79,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,78,_ctx);
}
}
}
@@ -7094,15 +6998,13 @@ public class KickCParser extends Parser {
return typeSpecifier_sempred((TypeSpecifierContext)_localctx, predIndex);
case 10:
return declarator_sempred((DeclaratorContext)_localctx, predIndex);
- case 11:
- return type_sempred((TypeContext)_localctx, predIndex);
case 17:
return enumMemberList_sempred((EnumMemberListContext)_localctx, predIndex);
- case 33:
+ case 32:
return commaExpr_sempred((CommaExprContext)_localctx, predIndex);
- case 34:
+ case 33:
return expr_sempred((ExprContext)_localctx, predIndex);
- case 45:
+ case 44:
return asmExpr_sempred((AsmExprContext)_localctx, predIndex);
}
return true;
@@ -7126,14 +7028,9 @@ public class KickCParser extends Parser {
private boolean declarator_sempred(DeclaratorContext _localctx, int predIndex) {
switch (predIndex) {
case 3:
- return precpred(_ctx, 3);
- }
- return true;
- }
- private boolean type_sempred(TypeContext _localctx, int predIndex) {
- switch (predIndex) {
+ return precpred(_ctx, 4);
case 4:
- return precpred(_ctx, 6);
+ return precpred(_ctx, 3);
}
return true;
}
@@ -7205,328 +7102,323 @@ public class KickCParser extends Parser {
}
public static final String _serializedATN =
- "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\u009c\u0339\4\2\t"+
+ "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\u009c\u032b\4\2\t"+
"\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+
"\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
"\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+
"\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+
"\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+
- ",\t,\4-\t-\4.\t.\4/\t/\3\2\3\2\3\2\3\3\3\3\3\3\3\4\7\4f\n\4\f\4\16\4i"+
- "\13\4\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\5\5y\n\5"+
- "\3\6\3\6\3\6\3\7\3\7\3\7\3\7\3\7\3\7\7\7\u0084\n\7\f\7\16\7\u0087\13\7"+
- "\3\b\3\b\3\b\5\b\u008c\n\b\3\b\3\b\3\b\3\b\5\b\u0092\n\b\3\t\3\t\3\t\3"+
- "\t\3\t\3\n\7\n\u009a\n\n\f\n\16\n\u009d\13\n\3\n\3\n\7\n\u00a1\n\n\f\n"+
- "\16\n\u00a4\13\n\3\13\3\13\3\13\3\13\3\13\3\13\3\13\3\13\5\13\u00ae\n"+
- "\13\3\13\7\13\u00b1\n\13\f\13\16\13\u00b4\13\13\3\f\3\f\3\f\3\f\3\f\7"+
- "\f\u00bb\n\f\f\f\16\f\u00be\13\f\3\f\3\f\3\f\3\f\3\f\5\f\u00c5\n\f\3\f"+
- "\3\f\3\f\5\f\u00ca\n\f\3\f\7\f\u00cd\n\f\f\f\16\f\u00d0\13\f\3\r\3\r\3"+
- "\r\3\r\5\r\u00d6\n\r\3\r\3\r\3\r\3\r\3\r\5\r\u00dd\n\r\3\r\3\r\3\r\7\r"+
- "\u00e2\n\r\f\r\16\r\u00e5\13\r\3\16\3\16\3\16\3\17\3\17\5\17\u00ec\n\17"+
- "\3\17\3\17\6\17\u00f0\n\17\r\17\16\17\u00f1\3\17\3\17\3\20\3\20\3\20\3"+
- "\21\3\21\3\21\3\22\3\22\5\22\u00fe\n\22\3\22\3\22\3\22\3\22\3\23\3\23"+
- "\3\23\3\23\3\23\3\23\7\23\u010a\n\23\f\23\16\23\u010d\13\23\3\24\3\24"+
- "\3\24\5\24\u0112\n\24\3\25\3\25\3\25\3\25\5\25\u0118\n\25\3\25\3\25\3"+
- "\25\5\25\u011d\n\25\3\26\3\26\5\26\u0121\n\26\3\26\3\26\3\27\3\27\3\27"+
- "\7\27\u0128\n\27\f\27\16\27\u012b\13\27\3\30\3\30\3\30\3\30\3\30\5\30"+
- "\u0132\n\30\3\31\3\31\3\31\3\31\3\31\3\31\7\31\u013a\n\31\f\31\16\31\u013d"+
- "\13\31\3\31\3\31\3\32\3\32\3\32\3\32\3\32\3\32\3\32\5\32\u0148\n\32\3"+
- "\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\5\33\u0153\n\33\3\33\3\33"+
- "\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33"+
- "\3\33\3\33\3\33\5\33\u0168\n\33\3\33\3\33\3\33\3\33\3\33\7\33\u016f\n"+
- "\33\f\33\16\33\u0172\13\33\3\33\3\33\3\33\5\33\u0177\n\33\3\34\6\34\u017a"+
- "\n\34\r\34\16\34\u017b\3\35\3\35\3\35\3\35\3\35\5\35\u0183\n\35\3\35\3"+
- "\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\5\35\u0190\n\35\3\35"+
- "\7\35\u0193\n\35\f\35\16\35\u0196\13\35\3\35\3\35\3\35\3\35\3\35\3\35"+
- "\3\35\7\35\u019f\n\35\f\35\16\35\u01a2\13\35\3\35\3\35\3\35\3\35\3\35"+
- "\3\35\3\35\3\35\3\35\7\35\u01ad\n\35\f\35\16\35\u01b0\13\35\3\35\3\35"+
- "\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35"+
- "\5\35\u01c2\n\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\5\35\u01cb\n\35\3"+
- "\35\3\35\3\35\3\35\3\35\3\35\5\35\u01d3\n\35\3\36\6\36\u01d6\n\36\r\36"+
- "\16\36\u01d7\3\36\3\36\3\36\5\36\u01dd\n\36\5\36\u01df\n\36\3\37\3\37"+
- "\3\37\3\37\5\37\u01e5\n\37\3 \3 \3 \5 \u01ea\n \3 \3 \5 \u01ee\n \3 \3"+
- " \3 \3 \3 \3 \3 \5 \u01f7\n \3!\5!\u01fa\n!\3!\5!\u01fd\n!\3\"\3\"\3#"+
- "\3#\3#\3#\3#\3#\7#\u0207\n#\f#\16#\u020a\13#\3$\3$\3$\3$\3$\3$\3$\3$\3"+
- "$\5$\u0215\n$\3$\3$\3$\3$\3$\3$\5$\u021d\n$\3$\3$\3$\3$\5$\u0223\n$\3"+
- "$\3$\5$\u0227\n$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\7"+
- "$\u023a\n$\f$\16$\u023d\13$\3$\5$\u0240\n$\3$\3$\3$\3$\3$\6$\u0247\n$"+
- "\r$\16$\u0248\3$\3$\5$\u024d\n$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3"+
- "$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3"+
- "$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\5$\u027f\n$\3$\3$\3$\3$\3$\3$\3"+
- "$\3$\7$\u0289\n$\f$\16$\u028c\13$\3%\3%\3%\7%\u0291\n%\f%\16%\u0294\13"+
- "%\3&\3&\5&\u0298\n&\3&\3&\3\'\3\'\3\'\3\'\7\'\u02a0\n\'\f\'\16\'\u02a3"+
- "\13\'\3\'\3\'\3(\3(\3(\3(\3(\3(\3(\3(\3(\3(\5(\u02b1\n(\3)\7)\u02b4\n"+
- ")\f)\16)\u02b7\13)\3*\3*\3*\5*\u02bc\n*\3+\3+\3+\7+\u02c1\n+\f+\16+\u02c4"+
- "\13+\3+\3+\3+\7+\u02c9\n+\f+\16+\u02cc\13+\5+\u02ce\n+\3,\3,\5,\u02d2"+
- "\n,\3,\7,\u02d5\n,\f,\16,\u02d8\13,\3-\3-\3-\3-\7-\u02de\n-\f-\16-\u02e1"+
- "\13-\3-\7-\u02e4\n-\f-\16-\u02e7\13-\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3."+
- "\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3."+
- "\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\5.\u0316\n.\3/\3/\3/\3/\3/\3/\3/\3/"+
- "\3/\3/\3/\3/\3/\3/\5/\u0326\n/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\3/\7/"+
- "\u0334\n/\f/\16/\u0337\13/\3/\2\n\f\24\26\30$DF\\\60\2\4\6\b\n\f\16\20"+
- "\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>@BDFHJLNPRTVXZ\\\2\r\3\2"+
- "\27\30\5\2\22\23\31\32RR\4\2!!$$\3\2\35\36\3\2\24\26\3\2\22\23\3\2\37"+
- "$\3\2\177\u0082\3\2}~\3\2\u0083\u0084\3\2\177\u0080\2\u03b1\2^\3\2\2\2"+
- "\4a\3\2\2\2\6g\3\2\2\2\bx\3\2\2\2\nz\3\2\2\2\f}\3\2\2\2\16\u0091\3\2\2"+
- "\2\20\u0093\3\2\2\2\22\u009b\3\2\2\2\24\u00a5\3\2\2\2\26\u00c4\3\2\2\2"+
- "\30\u00dc\3\2\2\2\32\u00e6\3\2\2\2\34\u00e9\3\2\2\2\36\u00f5\3\2\2\2 "+
- "\u00f8\3\2\2\2\"\u00fb\3\2\2\2$\u0103\3\2\2\2&\u010e\3\2\2\2(\u0113\3"+
- "\2\2\2*\u011e\3\2\2\2,\u0124\3\2\2\2.\u0131\3\2\2\2\60\u0133\3\2\2\2\62"+
- "\u0147\3\2\2\2\64\u0176\3\2\2\2\66\u0179\3\2\2\28\u01d2\3\2\2\2:\u01d5"+
- "\3\2\2\2<\u01e0\3\2\2\2>\u01f6\3\2\2\2@\u01fc\3\2\2\2B\u01fe\3\2\2\2D"+
- "\u0200\3\2\2\2F\u024c\3\2\2\2H\u028d\3\2\2\2J\u0295\3\2\2\2L\u029b\3\2"+
- "\2\2N\u02b0\3\2\2\2P\u02b5\3\2\2\2R\u02bb\3\2\2\2T\u02cd\3\2\2\2V\u02cf"+
- "\3\2\2\2X\u02d9\3\2\2\2Z\u0315\3\2\2\2\\\u0325\3\2\2\2^_\5\6\4\2_`\7\2"+
- "\2\3`\3\3\2\2\2ab\5P)\2bc\7\2\2\3c\5\3\2\2\2df\5\b\5\2ed\3\2\2\2fi\3\2"+
- "\2\2ge\3\2\2\2gh\3\2\2\2h\7\3\2\2\2ig\3\2\2\2jk\5\n\6\2kl\7\n\2\2ly\3"+
- "\2\2\2my\5(\25\2no\5\34\17\2op\7\n\2\2py\3\2\2\2qr\5\"\22\2rs\7\n\2\2"+
- "sy\3\2\2\2ty\5\60\31\2uv\5\20\t\2vw\7\n\2\2wy\3\2\2\2xj\3\2\2\2xm\3\2"+
- "\2\2xn\3\2\2\2xq\3\2\2\2xt\3\2\2\2xu\3\2\2\2y\t\3\2\2\2z{\5\22\n\2{|\5"+
- "\f\7\2|\13\3\2\2\2}~\b\7\1\2~\177\5\16\b\2\177\u0085\3\2\2\2\u0080\u0081"+
- "\f\3\2\2\u0081\u0082\7\f\2\2\u0082\u0084\5\16\b\2\u0083\u0080\3\2\2\2"+
- "\u0084\u0087\3\2\2\2\u0085\u0083\3\2\2\2\u0085\u0086\3\2\2\2\u0086\r\3"+
- "\2\2\2\u0087\u0085\3\2\2\2\u0088\u008b\5\26\f\2\u0089\u008a\7\'\2\2\u008a"+
- "\u008c\5F$\2\u008b\u0089\3\2\2\2\u008b\u008c\3\2\2\2\u008c\u0092\3\2\2"+
- "\2\u008d\u008e\5\26\f\2\u008e\u008f\7\'\2\2\u008f\u0090\5J&\2\u0090\u0092"+
- "\3\2\2\2\u0091\u0088\3\2\2\2\u0091\u008d\3\2\2\2\u0092\17\3\2\2\2\u0093"+
- "\u0094\7)\2\2\u0094\u0095\5\22\n\2\u0095\u0096\b\t\1\2\u0096\u0097\5\26"+
- "\f\2\u0097\21\3\2\2\2\u0098\u009a\5\64\33\2\u0099\u0098\3\2\2\2\u009a"+
- "\u009d\3\2\2\2\u009b\u0099\3\2\2\2\u009b\u009c\3\2\2\2\u009c\u009e\3\2"+
- "\2\2\u009d\u009b\3\2\2\2\u009e\u00a2\5\30\r\2\u009f\u00a1\5\64\33\2\u00a0"+
- "\u009f\3\2\2\2\u00a1\u00a4\3\2\2\2\u00a2\u00a0\3\2\2\2\u00a2\u00a3\3\2"+
- "\2\2\u00a3\23\3\2\2\2\u00a4\u00a2\3\2\2\2\u00a5\u00a6\b\13\1\2\u00a6\u00a7"+
- "\5\30\r\2\u00a7\u00b2\3\2\2\2\u00a8\u00a9\f\4\2\2\u00a9\u00b1\7\24\2\2"+
- "\u00aa\u00ab\f\3\2\2\u00ab\u00ad\7\6\2\2\u00ac\u00ae\5F$\2\u00ad\u00ac"+
- "\3\2\2\2\u00ad\u00ae\3\2\2\2\u00ae\u00af\3\2\2\2\u00af\u00b1\7\7\2\2\u00b0"+
- "\u00a8\3\2\2\2\u00b0\u00aa\3\2\2\2\u00b1\u00b4\3\2\2\2\u00b2\u00b0\3\2"+
- "\2\2\u00b2\u00b3\3\2\2\2\u00b3\25\3\2\2\2\u00b4\u00b2\3\2\2\2\u00b5\u00b6"+
- "\b\f\1\2\u00b6\u00b7\7m\2\2\u00b7\u00c5\b\f\1\2\u00b8\u00bc\7\24\2\2\u00b9"+
- "\u00bb\5\64\33\2\u00ba\u00b9\3\2\2\2\u00bb\u00be\3\2\2\2\u00bc\u00ba\3"+
- "\2\2\2\u00bc\u00bd\3\2\2\2\u00bd\u00bf\3\2\2\2\u00be\u00bc\3\2\2\2\u00bf"+
- "\u00c5\5\26\f\4\u00c0\u00c1\7\b\2\2\u00c1\u00c2\5\26\f\2\u00c2\u00c3\7"+
- "\t\2\2\u00c3\u00c5\3\2\2\2\u00c4\u00b5\3\2\2\2\u00c4\u00b8\3\2\2\2\u00c4"+
- "\u00c0\3\2\2\2\u00c5\u00ce\3\2\2\2\u00c6\u00c7\f\5\2\2\u00c7\u00c9\7\6"+
- "\2\2\u00c8\u00ca\5F$\2\u00c9\u00c8\3\2\2\2\u00c9\u00ca\3\2\2\2\u00ca\u00cb"+
- "\3\2\2\2\u00cb\u00cd\7\7\2\2\u00cc\u00c6\3\2\2\2\u00cd\u00d0\3\2\2\2\u00ce"+
- "\u00cc\3\2\2\2\u00ce\u00cf\3\2\2\2\u00cf\27\3\2\2\2\u00d0\u00ce\3\2\2"+
- "\2\u00d1\u00d2\b\r\1\2\u00d2\u00dd\7T\2\2\u00d3\u00d5\7S\2\2\u00d4\u00d6"+
- "\7T\2\2\u00d5\u00d4\3\2\2\2\u00d5\u00d6\3\2\2\2\u00d6\u00dd\3\2\2\2\u00d7"+
- "\u00dd\5\34\17\2\u00d8\u00dd\5\32\16\2\u00d9\u00dd\5\"\22\2\u00da\u00dd"+
- "\5 \21\2\u00db\u00dd\7\3\2\2\u00dc\u00d1\3\2\2\2\u00dc\u00d3\3\2\2\2\u00dc"+
- "\u00d7\3\2\2\2\u00dc\u00d8\3\2\2\2\u00dc\u00d9\3\2\2\2\u00dc\u00da\3\2"+
- "\2\2\u00dc\u00db\3\2\2\2\u00dd\u00e3\3\2\2\2\u00de\u00df\f\b\2\2\u00df"+
- "\u00e0\7\b\2\2\u00e0\u00e2\7\t\2\2\u00e1\u00de\3\2\2\2\u00e2\u00e5\3\2"+
- "\2\2\u00e3\u00e1\3\2\2\2\u00e3\u00e4\3\2\2\2\u00e4\31\3\2\2\2\u00e5\u00e3"+
- "\3\2\2\2\u00e6\u00e7\7G\2\2\u00e7\u00e8\7m\2\2\u00e8\33\3\2\2\2\u00e9"+
- "\u00eb\7G\2\2\u00ea\u00ec\7m\2\2\u00eb\u00ea\3\2\2\2\u00eb\u00ec\3\2\2"+
- "\2\u00ec\u00ed\3\2\2\2\u00ed\u00ef\7\4\2\2\u00ee\u00f0\5\36\20\2\u00ef"+
- "\u00ee\3\2\2\2\u00f0\u00f1\3\2\2\2\u00f1\u00ef\3\2\2\2\u00f1\u00f2\3\2"+
- "\2\2\u00f2\u00f3\3\2\2\2\u00f3\u00f4\7\5\2\2\u00f4\35\3\2\2\2\u00f5\u00f6"+
- "\5\n\6\2\u00f6\u00f7\7\n\2\2\u00f7\37\3\2\2\2\u00f8\u00f9\7H\2\2\u00f9"+
- "\u00fa\7m\2\2\u00fa!\3\2\2\2\u00fb\u00fd\7H\2\2\u00fc\u00fe\7m\2\2\u00fd"+
- "\u00fc\3\2\2\2\u00fd\u00fe\3\2\2\2\u00fe\u00ff\3\2\2\2\u00ff\u0100\7\4"+
- "\2\2\u0100\u0101\5$\23\2\u0101\u0102\7\5\2\2\u0102#\3\2\2\2\u0103\u0104"+
- "\b\23\1\2\u0104\u0105\5&\24\2\u0105\u010b\3\2\2\2\u0106\u0107\f\3\2\2"+
- "\u0107\u0108\7\f\2\2\u0108\u010a\5&\24\2\u0109\u0106\3\2\2\2\u010a\u010d"+
- "\3\2\2\2\u010b\u0109\3\2\2\2\u010b\u010c\3\2\2\2\u010c%\3\2\2\2\u010d"+
- "\u010b\3\2\2\2\u010e\u0111\7m\2\2\u010f\u0110\7\'\2\2\u0110\u0112\5F$"+
- "\2\u0111\u010f\3\2\2\2\u0111\u0112\3\2\2\2\u0112\'\3\2\2\2\u0113\u0114"+
- "\5\22\n\2\u0114\u0115\5\26\f\2\u0115\u0117\7\b\2\2\u0116\u0118\5,\27\2"+
- "\u0117\u0116\3\2\2\2\u0117\u0118\3\2\2\2\u0118\u0119\3\2\2\2\u0119\u011c"+
- "\7\t\2\2\u011a\u011d\5*\26\2\u011b\u011d\7\n\2\2\u011c\u011a\3\2\2\2\u011c"+
- "\u011b\3\2\2\2\u011d)\3\2\2\2\u011e\u0120\7\4\2\2\u011f\u0121\5\66\34"+
- "\2\u0120\u011f\3\2\2\2\u0120\u0121\3\2\2\2\u0121\u0122\3\2\2\2\u0122\u0123"+
- "\7\5\2\2\u0123+\3\2\2\2\u0124\u0129\5.\30\2\u0125\u0126\7\f\2\2\u0126"+
- "\u0128\5.\30\2\u0127\u0125\3\2\2\2\u0128\u012b\3\2\2\2\u0129\u0127\3\2"+
- "\2\2\u0129\u012a\3\2\2\2\u012a-\3\2\2\2\u012b\u0129\3\2\2\2\u012c\u012d"+
- "\5\22\n\2\u012d\u012e\5\26\f\2\u012e\u0132\3\2\2\2\u012f\u0132\7T\2\2"+
- "\u0130\u0132\7\16\2\2\u0131\u012c\3\2\2\2\u0131\u012f\3\2\2\2\u0131\u0130"+
- "\3\2\2\2\u0132/\3\2\2\2\u0133\u0134\7Y\2\2\u0134\u0135\7m\2\2\u0135\u0136"+
- "\7\b\2\2\u0136\u013b\5\62\32\2\u0137\u0138\7\f\2\2\u0138\u013a\5\62\32"+
- "\2\u0139\u0137\3\2\2\2\u013a\u013d\3\2\2\2\u013b\u0139\3\2\2\2\u013b\u013c"+
- "\3\2\2\2\u013c\u013e\3\2\2\2\u013d\u013b\3\2\2\2\u013e\u013f\7\t\2\2\u013f"+
- "\61\3\2\2\2\u0140\u0148\7d\2\2\u0141\u0142\7d\2\2\u0142\u0143\7\r\2\2"+
- "\u0143\u0148\7d\2\2\u0144\u0148\7m\2\2\u0145\u0148\7n\2\2\u0146\u0148"+
- "\7:\2\2\u0147\u0140\3\2\2\2\u0147\u0141\3\2\2\2\u0147\u0144\3\2\2\2\u0147"+
- "\u0145\3\2\2\2\u0147\u0146\3\2\2\2\u0148\63\3\2\2\2\u0149\u0177\7*\2\2"+
- "\u014a\u014b\7-\2\2\u014b\u014c\7\b\2\2\u014c\u014d\7d\2\2\u014d\u0177"+
- "\7\t\2\2\u014e\u0152\7\62\2\2\u014f\u0150\7\b\2\2\u0150\u0151\7m\2\2\u0151"+
- "\u0153\7\t\2\2\u0152\u014f\3\2\2\2\u0152\u0153\3\2\2\2\u0153\u0177\3\2"+
- "\2\2\u0154\u0177\7\65\2\2\u0155\u0177\7\66\2\2\u0156\u0157\7\64\2\2\u0157"+
- "\u0158\7\b\2\2\u0158\u0159\5F$\2\u0159\u015a\7\t\2\2\u015a\u0177\3\2\2"+
- "\2\u015b\u0177\7/\2\2\u015c\u0177\7\60\2\2\u015d\u0177\7\67\2\2\u015e"+
- "\u0177\78\2\2\u015f\u0177\7+\2\2\u0160\u0177\7,\2\2\u0161\u0177\7.\2\2"+
- "\u0162\u0177\79\2\2\u0163\u0167\7\61\2\2\u0164\u0165\7\b\2\2\u0165\u0166"+
- "\7m\2\2\u0166\u0168\7\t\2\2\u0167\u0164\3\2\2\2\u0167\u0168\3\2\2\2\u0168"+
- "\u0177\3\2\2\2\u0169\u016a\7\63\2\2\u016a\u016b\7\b\2\2\u016b\u0170\5"+
- "\62\32\2\u016c\u016d\7\f\2\2\u016d\u016f\5\62\32\2\u016e\u016c\3\2\2\2"+
- "\u016f\u0172\3\2\2\2\u0170\u016e\3\2\2\2\u0170\u0171\3\2\2\2\u0171\u0173"+
- "\3\2\2\2\u0172\u0170\3\2\2\2\u0173\u0174\7\t\2\2\u0174\u0177\3\2\2\2\u0175"+
- "\u0177\7:\2\2\u0176\u0149\3\2\2\2\u0176\u014a\3\2\2\2\u0176\u014e\3\2"+
- "\2\2\u0176\u0154\3\2\2\2\u0176\u0155\3\2\2\2\u0176\u0156\3\2\2\2\u0176"+
- "\u015b\3\2\2\2\u0176\u015c\3\2\2\2\u0176\u015d\3\2\2\2\u0176\u015e\3\2"+
- "\2\2\u0176\u015f\3\2\2\2\u0176\u0160\3\2\2\2\u0176\u0161\3\2\2\2\u0176"+
- "\u0162\3\2\2\2\u0176\u0163\3\2\2\2\u0176\u0169\3\2\2\2\u0176\u0175\3\2"+
- "\2\2\u0177\65\3\2\2\2\u0178\u017a\58\35\2\u0179\u0178\3\2\2\2\u017a\u017b"+
- "\3\2\2\2\u017b\u0179\3\2\2\2\u017b\u017c\3\2\2\2\u017c\67\3\2\2\2\u017d"+
- "\u017e\5\n\6\2\u017e\u017f\7\n\2\2\u017f\u01d3\3\2\2\2\u0180\u0182\7\4"+
- "\2\2\u0181\u0183\5\66\34\2\u0182\u0181\3\2\2\2\u0182\u0183\3\2\2\2\u0183"+
- "\u0184\3\2\2\2\u0184\u01d3\7\5\2\2\u0185\u0186\5D#\2\u0186\u0187\7\n\2"+
- "\2\u0187\u01d3\3\2\2\2\u0188\u0189\7;\2\2\u0189\u018a\7\b\2\2\u018a\u018b"+
- "\5D#\2\u018b\u018c\7\t\2\2\u018c\u018f\58\35\2\u018d\u018e\7<\2\2\u018e"+
- "\u0190\58\35\2\u018f\u018d\3\2\2\2\u018f\u0190\3\2\2\2\u0190\u01d3\3\2"+
- "\2\2\u0191\u0193\5\64\33\2\u0192\u0191\3\2\2\2\u0193\u0196\3\2\2\2\u0194"+
- "\u0192\3\2\2\2\u0194\u0195\3\2\2\2\u0195\u0197\3\2\2\2\u0196\u0194\3\2"+
- "\2\2\u0197\u0198\7=\2\2\u0198\u0199\7\b\2\2\u0199\u019a\5D#\2\u019a\u019b"+
- "\7\t\2\2\u019b\u019c\58\35\2\u019c\u01d3\3\2\2\2\u019d\u019f\5\64\33\2"+
- "\u019e\u019d\3\2\2\2\u019f\u01a2\3\2\2\2\u01a0\u019e\3\2\2\2\u01a0\u01a1"+
- "\3\2\2\2\u01a1\u01a3\3\2\2\2\u01a2\u01a0\3\2\2\2\u01a3\u01a4\7>\2\2\u01a4"+
- "\u01a5\58\35\2\u01a5\u01a6\7=\2\2\u01a6\u01a7\7\b\2\2\u01a7\u01a8\5D#"+
- "\2\u01a8\u01a9\7\t\2\2\u01a9\u01aa\7\n\2\2\u01aa\u01d3\3\2\2\2\u01ab\u01ad"+
- "\5\64\33\2\u01ac\u01ab\3\2\2\2\u01ad\u01b0\3\2\2\2\u01ae\u01ac\3\2\2\2"+
- "\u01ae\u01af\3\2\2\2\u01af\u01b1\3\2\2\2\u01b0\u01ae\3\2\2\2\u01b1\u01b2"+
- "\7?\2\2\u01b2\u01b3\7\b\2\2\u01b3\u01b4\5> \2\u01b4\u01b5\7\t\2\2\u01b5"+
- "\u01b6\58\35\2\u01b6\u01d3\3\2\2\2\u01b7\u01b8\7@\2\2\u01b8\u01b9\7\b"+
- "\2\2\u01b9\u01ba\5D#\2\u01ba\u01bb\7\t\2\2\u01bb\u01bc\7\4\2\2\u01bc\u01bd"+
- "\5:\36\2\u01bd\u01be\7\5\2\2\u01be\u01d3\3\2\2\2\u01bf\u01c1\7A\2\2\u01c0"+
- "\u01c2\5D#\2\u01c1\u01c0\3\2\2\2\u01c1\u01c2\3\2\2\2\u01c2\u01c3\3\2\2"+
- "\2\u01c3\u01d3\7\n\2\2\u01c4\u01c5\7B\2\2\u01c5\u01d3\7\n\2\2\u01c6\u01c7"+
- "\7C\2\2\u01c7\u01d3\7\n\2\2\u01c8\u01ca\7D\2\2\u01c9\u01cb\5L\'\2\u01ca"+
- "\u01c9\3\2\2\2\u01ca\u01cb\3\2\2\2\u01cb\u01cc\3\2\2\2\u01cc\u01cd\7\4"+
- "\2\2\u01cd\u01ce\5P)\2\u01ce\u01cf\7\u0086\2\2\u01cf\u01d3\3\2\2\2\u01d0"+
- "\u01d3\5J&\2\u01d1\u01d3\7\n\2\2\u01d2\u017d\3\2\2\2\u01d2\u0180\3\2\2"+
- "\2\u01d2\u0185\3\2\2\2\u01d2\u0188\3\2\2\2\u01d2\u0194\3\2\2\2\u01d2\u01a0"+
- "\3\2\2\2\u01d2\u01ae\3\2\2\2\u01d2\u01b7\3\2\2\2\u01d2\u01bf\3\2\2\2\u01d2"+
- "\u01c4\3\2\2\2\u01d2\u01c6\3\2\2\2\u01d2\u01c8\3\2\2\2\u01d2\u01d0\3\2"+
- "\2\2\u01d2\u01d1\3\2\2\2\u01d39\3\2\2\2\u01d4\u01d6\5<\37\2\u01d5\u01d4"+
- "\3\2\2\2\u01d6\u01d7\3\2\2\2\u01d7\u01d5\3\2\2\2\u01d7\u01d8\3\2\2\2\u01d8"+
- "\u01de\3\2\2\2\u01d9\u01da\7E\2\2\u01da\u01dc\7\13\2\2\u01db\u01dd\5\66"+
- "\34\2\u01dc\u01db\3\2\2\2\u01dc\u01dd\3\2\2\2\u01dd\u01df\3\2\2\2\u01de"+
- "\u01d9\3\2\2\2\u01de\u01df\3\2\2\2\u01df;\3\2\2\2\u01e0\u01e1\7F\2\2\u01e1"+
- "\u01e2\5F$\2\u01e2\u01e4\7\13\2\2\u01e3\u01e5\5\66\34\2\u01e4\u01e3\3"+
- "\2\2\2\u01e4\u01e5\3\2\2\2\u01e5=\3\2\2\2\u01e6\u01e7\5@!\2\u01e7\u01e9"+
- "\7\n\2\2\u01e8\u01ea\5B\"\2\u01e9\u01e8\3\2\2\2\u01e9\u01ea\3\2\2\2\u01ea"+
- "\u01eb\3\2\2\2\u01eb\u01ed\7\n\2\2\u01ec\u01ee\5D#\2\u01ed\u01ec\3\2\2"+
- "\2\u01ed\u01ee\3\2\2\2\u01ee\u01f7\3\2\2\2\u01ef\u01f0\5\22\n\2\u01f0"+
- "\u01f1\5\26\f\2\u01f1\u01f2\7\13\2\2\u01f2\u01f3\5F$\2\u01f3\u01f4\7\r"+
- "\2\2\u01f4\u01f5\5F$\2\u01f5\u01f7\3\2\2\2\u01f6\u01e6\3\2\2\2\u01f6\u01ef"+
- "\3\2\2\2\u01f7?\3\2\2\2\u01f8\u01fa\5\n\6\2\u01f9\u01f8\3\2\2\2\u01f9"+
- "\u01fa\3\2\2\2\u01fa\u01fd\3\2\2\2\u01fb\u01fd\5D#\2\u01fc\u01f9\3\2\2"+
- "\2\u01fc\u01fb\3\2\2\2\u01fdA\3\2\2\2\u01fe\u01ff\5D#\2\u01ffC\3\2\2\2"+
- "\u0200\u0201\b#\1\2\u0201\u0202\5F$\2\u0202\u0208\3\2\2\2\u0203\u0204"+
- "\f\3\2\2\u0204\u0205\7\f\2\2\u0205\u0207\5F$\2\u0206\u0203\3\2\2\2\u0207"+
- "\u020a\3\2\2\2\u0208\u0206\3\2\2\2\u0208\u0209\3\2\2\2\u0209E\3\2\2\2"+
- "\u020a\u0208\3\2\2\2\u020b\u020c\b$\1\2\u020c\u020d\7\b\2\2\u020d\u020e"+
- "\5D#\2\u020e\u020f\7\t\2\2\u020f\u024d\3\2\2\2\u0210\u0211\7I\2\2\u0211"+
- "\u0214\7\b\2\2\u0212\u0215\5F$\2\u0213\u0215\5\24\13\2\u0214\u0212\3\2"+
- "\2\2\u0214\u0213\3\2\2\2\u0215\u0216\3\2\2\2\u0216\u0217\7\t\2\2\u0217"+
- "\u024d\3\2\2\2\u0218\u0219\7J\2\2\u0219\u021c\7\b\2\2\u021a\u021d\5F$"+
- "\2\u021b\u021d\5\24\13\2\u021c\u021a\3\2\2\2\u021c\u021b\3\2\2\2\u021d"+
- "\u021e\3\2\2\2\u021e\u021f\7\t\2\2\u021f\u024d\3\2\2\2\u0220\u0222\7K"+
- "\2\2\u0221\u0223\7\b\2\2\u0222\u0221\3\2\2\2\u0222\u0223\3\2\2\2\u0223"+
- "\u0224\3\2\2\2\u0224\u0226\7m\2\2\u0225\u0227\7\t\2\2\u0226\u0225\3\2"+
- "\2\2\u0226\u0227\3\2\2\2\u0227\u024d\3\2\2\2\u0228\u0229\7\b\2\2\u0229"+
- "\u022a\5\24\13\2\u022a\u022b\7\t\2\2\u022b\u022c\5F$\32\u022c\u024d\3"+
- "\2\2\2\u022d\u022e\t\2\2\2\u022e\u024d\5F$\31\u022f\u0230\7\24\2\2\u0230"+
- "\u024d\5F$\27\u0231\u0232\t\3\2\2\u0232\u024d\5F$\26\u0233\u0234\t\4\2"+
- "\2\u0234\u024d\5F$\22\u0235\u0236\7\4\2\2\u0236\u023b\5F$\2\u0237\u0238"+
- "\7\f\2\2\u0238\u023a\5F$\2\u0239\u0237\3\2\2\2\u023a\u023d\3\2\2\2\u023b"+
- "\u0239\3\2\2\2\u023b\u023c\3\2\2\2\u023c\u023f\3\2\2\2\u023d\u023b\3\2"+
- "\2\2\u023e\u0240\7\f\2\2\u023f\u023e\3\2\2\2\u023f\u0240\3\2\2\2\u0240"+
- "\u0241\3\2\2\2\u0241\u0242\7\5\2\2\u0242\u024d\3\2\2\2\u0243\u024d\7m"+
- "\2\2\u0244\u024d\7d\2\2\u0245\u0247\7n\2\2\u0246\u0245\3\2\2\2\u0247\u0248"+
- "\3\2\2\2\u0248\u0246\3\2\2\2\u0248\u0249\3\2\2\2\u0249\u024d\3\2\2\2\u024a"+
- "\u024d\7o\2\2\u024b\u024d\7U\2\2\u024c\u020b\3\2\2\2\u024c\u0210\3\2\2"+
- "\2\u024c\u0218\3\2\2\2\u024c\u0220\3\2\2\2\u024c\u0228\3\2\2\2\u024c\u022d"+
- "\3\2\2\2\u024c\u022f\3\2\2\2\u024c\u0231\3\2\2\2\u024c\u0233\3\2\2\2\u024c"+
- "\u0235\3\2\2\2\u024c\u0243\3\2\2\2\u024c\u0244\3\2\2\2\u024c\u0246\3\2"+
- "\2\2\u024c\u024a\3\2\2\2\u024c\u024b\3\2\2\2\u024d\u028a\3\2\2\2\u024e"+
- "\u024f\f\25\2\2\u024f\u0250\t\5\2\2\u0250\u0289\5F$\26\u0251\u0252\f\24"+
- "\2\2\u0252\u0253\t\6\2\2\u0253\u0289\5F$\25\u0254\u0255\f\23\2\2\u0255"+
- "\u0256\t\7\2\2\u0256\u0289\5F$\24\u0257\u0258\f\21\2\2\u0258\u0259\t\b"+
- "\2\2\u0259\u0289\5F$\22\u025a\u025b\f\20\2\2\u025b\u025c\7\31\2\2\u025c"+
- "\u0289\5F$\21\u025d\u025e\f\17\2\2\u025e\u025f\7\33\2\2\u025f\u0289\5"+
- "F$\20\u0260\u0261\f\16\2\2\u0261\u0262\7\34\2\2\u0262\u0289\5F$\17\u0263"+
- "\u0264\f\r\2\2\u0264\u0265\7%\2\2\u0265\u0289\5F$\16\u0266\u0267\f\f\2"+
- "\2\u0267\u0268\7&\2\2\u0268\u0289\5F$\r\u0269\u026a\f\13\2\2\u026a\u026b"+
- "\7\17\2\2\u026b\u026c\5F$\2\u026c\u026d\7\13\2\2\u026d\u026e\5F$\f\u026e"+
- "\u0289\3\2\2\2\u026f\u0270\f\n\2\2\u0270\u0271\7\'\2\2\u0271\u0289\5F"+
- "$\n\u0272\u0273\f\t\2\2\u0273\u0274\7(\2\2\u0274\u0289\5F$\t\u0275\u0276"+
- "\f!\2\2\u0276\u0277\7\20\2\2\u0277\u0289\7m\2\2\u0278\u0279\f \2\2\u0279"+
- "\u027a\7\21\2\2\u027a\u0289\7m\2\2\u027b\u027c\f\37\2\2\u027c\u027e\7"+
- "\b\2\2\u027d\u027f\5H%\2\u027e\u027d\3\2\2\2\u027e\u027f\3\2\2\2\u027f"+
- "\u0280\3\2\2\2\u0280\u0289\7\t\2\2\u0281\u0282\f\33\2\2\u0282\u0283\7"+
- "\6\2\2\u0283\u0284\5D#\2\u0284\u0285\7\7\2\2\u0285\u0289\3\2\2\2\u0286"+
- "\u0287\f\30\2\2\u0287\u0289\t\2\2\2\u0288\u024e\3\2\2\2\u0288\u0251\3"+
- "\2\2\2\u0288\u0254\3\2\2\2\u0288\u0257\3\2\2\2\u0288\u025a\3\2\2\2\u0288"+
- "\u025d\3\2\2\2\u0288\u0260\3\2\2\2\u0288\u0263\3\2\2\2\u0288\u0266\3\2"+
- "\2\2\u0288\u0269\3\2\2\2\u0288\u026f\3\2\2\2\u0288\u0272\3\2\2\2\u0288"+
- "\u0275\3\2\2\2\u0288\u0278\3\2\2\2\u0288\u027b\3\2\2\2\u0288\u0281\3\2"+
- "\2\2\u0288\u0286\3\2\2\2\u0289\u028c\3\2\2\2\u028a\u0288\3\2\2\2\u028a"+
- "\u028b\3\2\2\2\u028bG\3\2\2\2\u028c\u028a\3\2\2\2\u028d\u0292\5F$\2\u028e"+
- "\u028f\7\f\2\2\u028f\u0291\5F$\2\u0290\u028e\3\2\2\2\u0291\u0294\3\2\2"+
- "\2\u0292\u0290\3\2\2\2\u0292\u0293\3\2\2\2\u0293I\3\2\2\2\u0294\u0292"+
- "\3\2\2\2\u0295\u0297\7L\2\2\u0296\u0298\5L\'\2\u0297\u0296\3\2\2\2\u0297"+
- "\u0298\3\2\2\2\u0298\u0299\3\2\2\2\u0299\u029a\7V\2\2\u029aK\3\2\2\2\u029b"+
- "\u029c\7\b\2\2\u029c\u02a1\5N(\2\u029d\u029e\7\f\2\2\u029e\u02a0\5N(\2"+
- "\u029f\u029d\3\2\2\2\u02a0\u02a3\3\2\2\2\u02a1\u029f\3\2\2\2\u02a1\u02a2"+
- "\3\2\2\2\u02a2\u02a4\3\2\2\2\u02a3\u02a1\3\2\2\2\u02a4\u02a5\7\t\2\2\u02a5"+
- "M\3\2\2\2\u02a6\u02a7\7M\2\2\u02a7\u02b1\7n\2\2\u02a8\u02a9\7N\2\2\u02a9"+
- "\u02b1\7m\2\2\u02aa\u02ab\7O\2\2\u02ab\u02b1\7n\2\2\u02ac\u02ad\7P\2\2"+
- "\u02ad\u02b1\5F$\2\u02ae\u02af\7Q\2\2\u02af\u02b1\5F$\2\u02b0\u02a6\3"+
- "\2\2\2\u02b0\u02a8\3\2\2\2\u02b0\u02aa\3\2\2\2\u02b0\u02ac\3\2\2\2\u02b0"+
- "\u02ae\3\2\2\2\u02b1O\3\2\2\2\u02b2\u02b4\5R*\2\u02b3\u02b2\3\2\2\2\u02b4"+
- "\u02b7\3\2\2\2\u02b5\u02b3\3\2\2\2\u02b5\u02b6\3\2\2\2\u02b6Q\3\2\2\2"+
- "\u02b7\u02b5\3\2\2\2\u02b8\u02bc\5T+\2\u02b9\u02bc\5V,\2\u02ba\u02bc\5"+
- "X-\2\u02bb\u02b8\3\2\2\2\u02bb\u02b9\3\2\2\2\u02bb\u02ba\3\2\2\2\u02bc"+
- "S\3\2\2\2\u02bd\u02be\7\u0093\2\2\u02be\u02c2\7v\2\2\u02bf\u02c1\7\u0094"+
- "\2\2\u02c0\u02bf\3\2\2\2\u02c1\u02c4\3\2\2\2\u02c2\u02c0\3\2\2\2\u02c2"+
- "\u02c3\3\2\2\2\u02c3\u02ce\3\2\2\2\u02c4\u02c2\3\2\2\2\u02c5\u02c6\7\u0092"+
- "\2\2\u02c6\u02ca\7v\2\2\u02c7\u02c9\7\u0094\2\2\u02c8\u02c7\3\2\2\2\u02c9"+
- "\u02cc\3\2\2\2\u02ca\u02c8\3\2\2\2\u02ca\u02cb\3\2\2\2\u02cb\u02ce\3\2"+
- "\2\2\u02cc\u02ca\3\2\2\2\u02cd\u02bd\3\2\2\2\u02cd\u02c5\3\2\2\2\u02ce"+
- "U\3\2\2\2\u02cf\u02d1\7t\2\2\u02d0\u02d2\5Z.\2\u02d1\u02d0\3\2\2\2\u02d1"+
- "\u02d2\3\2\2\2\u02d2\u02d6\3\2\2\2\u02d3\u02d5\7\u0094\2\2\u02d4\u02d3"+
- "\3\2\2\2\u02d5\u02d8\3\2\2\2\u02d6\u02d4\3\2\2\2\u02d6\u02d7\3\2\2\2\u02d7"+
- "W\3\2\2\2\u02d8\u02d6\3\2\2\2\u02d9\u02da\7s\2\2\u02da\u02df\5\\/\2\u02db"+
- "\u02dc\7w\2\2\u02dc\u02de\5\\/\2\u02dd\u02db\3\2\2\2\u02de\u02e1\3\2\2"+
- "\2\u02df\u02dd\3\2\2\2\u02df\u02e0\3\2\2\2\u02e0\u02e5\3\2\2\2\u02e1\u02df"+
- "\3\2\2\2\u02e2\u02e4\7\u0094\2\2\u02e3\u02e2\3\2\2\2\u02e4\u02e7\3\2\2"+
- "\2\u02e5\u02e3\3\2\2\2\u02e5\u02e6\3\2\2\2\u02e6Y\3\2\2\2\u02e7\u02e5"+
- "\3\2\2\2\u02e8\u0316\5\\/\2\u02e9\u02ea\7u\2\2\u02ea\u0316\5\\/\2\u02eb"+
- "\u02ec\5\\/\2\u02ec\u02ed\7w\2\2\u02ed\u02ee\5\\/\2\u02ee\u0316\3\2\2"+
- "\2\u02ef\u02f0\7x\2\2\u02f0\u02f1\5\\/\2\u02f1\u02f2\7y\2\2\u02f2\u02f3"+
- "\7w\2\2\u02f3\u02f4\7\u0093\2\2\u02f4\u0316\3\2\2\2\u02f5\u02f6\7x\2\2"+
- "\u02f6\u02f7\7x\2\2\u02f7\u02f8\5\\/\2\u02f8\u02f9\7y\2\2\u02f9\u02fa"+
- "\7y\2\2\u02fa\u02fb\7w\2\2\u02fb\u02fc\7\u0093\2\2\u02fc\u0316\3\2\2\2"+
- "\u02fd\u02fe\7x\2\2\u02fe\u02ff\5\\/\2\u02ff\u0300\7w\2\2\u0300\u0301"+
- "\7\u0093\2\2\u0301\u0302\7y\2\2\u0302\u0303\7w\2\2\u0303\u0304\7\u0093"+
- "\2\2\u0304\u0316\3\2\2\2\u0305\u0306\7x\2\2\u0306\u0307\5\\/\2\u0307\u0308"+
- "\7w\2\2\u0308\u0309\7\u0093\2\2\u0309\u030a\7y\2\2\u030a\u0316\3\2\2\2"+
- "\u030b\u030c\7x\2\2\u030c\u030d\5\\/\2\u030d\u030e\7y\2\2\u030e\u0316"+
- "\3\2\2\2\u030f\u0310\7x\2\2\u0310\u0311\7x\2\2\u0311\u0312\5\\/\2\u0312"+
- "\u0313\7y\2\2\u0313\u0314\7y\2\2\u0314\u0316\3\2\2\2\u0315\u02e8\3\2\2"+
- "\2\u0315\u02e9\3\2\2\2\u0315\u02eb\3\2\2\2\u0315\u02ef\3\2\2\2\u0315\u02f5"+
- "\3\2\2\2\u0315\u02fd\3\2\2\2\u0315\u0305\3\2\2\2\u0315\u030b\3\2\2\2\u0315"+
- "\u030f\3\2\2\2\u0316[\3\2\2\2\u0317\u0318\b/\1\2\u0318\u0319\7z\2\2\u0319"+
- "\u031a\5\\/\2\u031a\u031b\7{\2\2\u031b\u0326\3\2\2\2\u031c\u031d\t\t\2"+
- "\2\u031d\u0326\5\\/\n\u031e\u0326\7\u0093\2\2\u031f\u0326\7\u0091\2\2"+
- "\u0320\u0321\7\u0085\2\2\u0321\u0322\7\u0093\2\2\u0322\u0326\7\u0086\2"+
- "\2\u0323\u0326\7\u0087\2\2\u0324\u0326\7\u0090\2\2\u0325\u0317\3\2\2\2"+
- "\u0325\u031c\3\2\2\2\u0325\u031e\3\2\2\2\u0325\u031f\3\2\2\2\u0325\u0320"+
- "\3\2\2\2\u0325\u0323\3\2\2\2\u0325\u0324\3\2\2\2\u0326\u0335\3\2\2\2\u0327"+
- "\u0328\f\f\2\2\u0328\u0329\7|\2\2\u0329\u0334\5\\/\r\u032a\u032b\f\13"+
- "\2\2\u032b\u032c\t\n\2\2\u032c\u0334\5\\/\f\u032d\u032e\f\t\2\2\u032e"+
- "\u032f\t\13\2\2\u032f\u0334\5\\/\n\u0330\u0331\f\b\2\2\u0331\u0332\t\f"+
- "\2\2\u0332\u0334\5\\/\t\u0333\u0327\3\2\2\2\u0333\u032a\3\2\2\2\u0333"+
- "\u032d\3\2\2\2\u0333\u0330\3\2\2\2\u0334\u0337\3\2\2\2\u0335\u0333\3\2"+
- "\2\2\u0335\u0336\3\2\2\2\u0336]\3\2\2\2\u0337\u0335\3\2\2\2Rgx\u0085\u008b"+
- "\u0091\u009b\u00a2\u00ad\u00b0\u00b2\u00bc\u00c4\u00c9\u00ce\u00d5\u00dc"+
- "\u00e3\u00eb\u00f1\u00fd\u010b\u0111\u0117\u011c\u0120\u0129\u0131\u013b"+
- "\u0147\u0152\u0167\u0170\u0176\u017b\u0182\u018f\u0194\u01a0\u01ae\u01c1"+
- "\u01ca\u01d2\u01d7\u01dc\u01de\u01e4\u01e9\u01ed\u01f6\u01f9\u01fc\u0208"+
- "\u0214\u021c\u0222\u0226\u023b\u023f\u0248\u024c\u027e\u0288\u028a\u0292"+
- "\u0297\u02a1\u02b0\u02b5\u02bb\u02c2\u02ca\u02cd\u02d1\u02d6\u02df\u02e5"+
- "\u0315\u0325\u0333\u0335";
+ ",\t,\4-\t-\4.\t.\3\2\3\2\3\2\3\3\3\3\3\3\3\4\7\4d\n\4\f\4\16\4g\13\4\3"+
+ "\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\5\5w\n\5\3\6\3"+
+ "\6\3\6\3\7\3\7\3\7\3\7\3\7\3\7\7\7\u0082\n\7\f\7\16\7\u0085\13\7\3\b\3"+
+ "\b\3\b\5\b\u008a\n\b\3\b\3\b\3\b\3\b\5\b\u0090\n\b\3\t\3\t\3\t\3\t\3\t"+
+ "\3\n\7\n\u0098\n\n\f\n\16\n\u009b\13\n\3\n\3\n\7\n\u009f\n\n\f\n\16\n"+
+ "\u00a2\13\n\3\13\3\13\3\13\3\13\3\13\3\13\3\13\3\13\5\13\u00ac\n\13\3"+
+ "\13\7\13\u00af\n\13\f\13\16\13\u00b2\13\13\3\f\3\f\3\f\3\f\3\f\7\f\u00b9"+
+ "\n\f\f\f\16\f\u00bc\13\f\3\f\3\f\3\f\3\f\3\f\5\f\u00c3\n\f\3\f\3\f\3\f"+
+ "\5\f\u00c8\n\f\3\f\3\f\3\f\3\f\5\f\u00ce\n\f\3\f\7\f\u00d1\n\f\f\f\16"+
+ "\f\u00d4\13\f\3\r\3\r\3\r\5\r\u00d9\n\r\3\r\3\r\3\r\3\r\3\r\5\r\u00e0"+
+ "\n\r\3\16\3\16\3\16\3\17\3\17\5\17\u00e7\n\17\3\17\3\17\6\17\u00eb\n\17"+
+ "\r\17\16\17\u00ec\3\17\3\17\3\20\3\20\3\20\3\21\3\21\3\21\3\22\3\22\5"+
+ "\22\u00f9\n\22\3\22\3\22\3\22\3\22\3\23\3\23\3\23\3\23\3\23\3\23\7\23"+
+ "\u0105\n\23\f\23\16\23\u0108\13\23\3\24\3\24\3\24\5\24\u010d\n\24\3\25"+
+ "\3\25\3\25\3\25\5\25\u0113\n\25\3\25\3\25\3\26\3\26\3\26\7\26\u011a\n"+
+ "\26\f\26\16\26\u011d\13\26\3\27\3\27\3\27\3\27\3\27\5\27\u0124\n\27\3"+
+ "\30\3\30\3\30\3\30\3\30\3\30\7\30\u012c\n\30\f\30\16\30\u012f\13\30\3"+
+ "\30\3\30\3\31\3\31\3\31\3\31\3\31\3\31\3\31\5\31\u013a\n\31\3\32\3\32"+
+ "\3\32\3\32\3\32\3\32\3\32\3\32\3\32\5\32\u0145\n\32\3\32\3\32\3\32\3\32"+
+ "\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32"+
+ "\3\32\5\32\u015a\n\32\3\32\3\32\3\32\3\32\3\32\7\32\u0161\n\32\f\32\16"+
+ "\32\u0164\13\32\3\32\3\32\3\32\5\32\u0169\n\32\3\33\6\33\u016c\n\33\r"+
+ "\33\16\33\u016d\3\34\3\34\3\34\3\34\3\34\5\34\u0175\n\34\3\34\3\34\3\34"+
+ "\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\5\34\u0182\n\34\3\34\7\34\u0185"+
+ "\n\34\f\34\16\34\u0188\13\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\7\34\u0191"+
+ "\n\34\f\34\16\34\u0194\13\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3"+
+ "\34\7\34\u019f\n\34\f\34\16\34\u01a2\13\34\3\34\3\34\3\34\3\34\3\34\3"+
+ "\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\3\34\5\34\u01b4\n\34"+
+ "\3\34\3\34\3\34\3\34\3\34\3\34\3\34\5\34\u01bd\n\34\3\34\3\34\3\34\3\34"+
+ "\3\34\3\34\5\34\u01c5\n\34\3\35\6\35\u01c8\n\35\r\35\16\35\u01c9\3\35"+
+ "\3\35\3\35\5\35\u01cf\n\35\5\35\u01d1\n\35\3\36\3\36\3\36\3\36\5\36\u01d7"+
+ "\n\36\3\37\3\37\3\37\5\37\u01dc\n\37\3\37\3\37\5\37\u01e0\n\37\3\37\3"+
+ "\37\3\37\3\37\3\37\3\37\3\37\5\37\u01e9\n\37\3 \5 \u01ec\n \3 \5 \u01ef"+
+ "\n \3!\3!\3\"\3\"\3\"\3\"\3\"\3\"\7\"\u01f9\n\"\f\"\16\"\u01fc\13\"\3"+
+ "#\3#\3#\3#\3#\3#\3#\3#\3#\5#\u0207\n#\3#\3#\3#\3#\3#\3#\5#\u020f\n#\3"+
+ "#\3#\3#\3#\5#\u0215\n#\3#\3#\5#\u0219\n#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3"+
+ "#\3#\3#\3#\3#\3#\3#\3#\7#\u022c\n#\f#\16#\u022f\13#\3#\5#\u0232\n#\3#"+
+ "\3#\3#\3#\3#\6#\u0239\n#\r#\16#\u023a\3#\3#\5#\u023f\n#\3#\3#\3#\3#\3"+
+ "#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3"+
+ "#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\3#\5#\u0271"+
+ "\n#\3#\3#\3#\3#\3#\3#\3#\3#\7#\u027b\n#\f#\16#\u027e\13#\3$\3$\3$\7$\u0283"+
+ "\n$\f$\16$\u0286\13$\3%\3%\5%\u028a\n%\3%\3%\3&\3&\3&\3&\7&\u0292\n&\f"+
+ "&\16&\u0295\13&\3&\3&\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u02a3"+
+ "\n\'\3(\7(\u02a6\n(\f(\16(\u02a9\13(\3)\3)\3)\5)\u02ae\n)\3*\3*\3*\7*"+
+ "\u02b3\n*\f*\16*\u02b6\13*\3*\3*\3*\7*\u02bb\n*\f*\16*\u02be\13*\5*\u02c0"+
+ "\n*\3+\3+\5+\u02c4\n+\3+\7+\u02c7\n+\f+\16+\u02ca\13+\3,\3,\3,\3,\7,\u02d0"+
+ "\n,\f,\16,\u02d3\13,\3,\7,\u02d6\n,\f,\16,\u02d9\13,\3-\3-\3-\3-\3-\3"+
+ "-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3"+
+ "-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\3-\5-\u0308\n-\3.\3.\3"+
+ ".\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\5.\u0318\n.\3.\3.\3.\3.\3.\3.\3.\3"+
+ ".\3.\3.\3.\3.\7.\u0326\n.\f.\16.\u0329\13.\3.\2\t\f\24\26$BDZ/\2\4\6\b"+
+ "\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>@BDFHJLNPRTVX"+
+ "Z\2\r\3\2\27\30\5\2\22\23\31\32RR\4\2!!$$\3\2\35\36\3\2\24\26\3\2\22\23"+
+ "\3\2\37$\3\2\177\u0082\3\2}~\3\2\u0083\u0084\3\2\177\u0080\2\u03a3\2\\"+
+ "\3\2\2\2\4_\3\2\2\2\6e\3\2\2\2\bv\3\2\2\2\nx\3\2\2\2\f{\3\2\2\2\16\u008f"+
+ "\3\2\2\2\20\u0091\3\2\2\2\22\u0099\3\2\2\2\24\u00a3\3\2\2\2\26\u00c2\3"+
+ "\2\2\2\30\u00df\3\2\2\2\32\u00e1\3\2\2\2\34\u00e4\3\2\2\2\36\u00f0\3\2"+
+ "\2\2 \u00f3\3\2\2\2\"\u00f6\3\2\2\2$\u00fe\3\2\2\2&\u0109\3\2\2\2(\u010e"+
+ "\3\2\2\2*\u0116\3\2\2\2,\u0123\3\2\2\2.\u0125\3\2\2\2\60\u0139\3\2\2\2"+
+ "\62\u0168\3\2\2\2\64\u016b\3\2\2\2\66\u01c4\3\2\2\28\u01c7\3\2\2\2:\u01d2"+
+ "\3\2\2\2<\u01e8\3\2\2\2>\u01ee\3\2\2\2@\u01f0\3\2\2\2B\u01f2\3\2\2\2D"+
+ "\u023e\3\2\2\2F\u027f\3\2\2\2H\u0287\3\2\2\2J\u028d\3\2\2\2L\u02a2\3\2"+
+ "\2\2N\u02a7\3\2\2\2P\u02ad\3\2\2\2R\u02bf\3\2\2\2T\u02c1\3\2\2\2V\u02cb"+
+ "\3\2\2\2X\u0307\3\2\2\2Z\u0317\3\2\2\2\\]\5\6\4\2]^\7\2\2\3^\3\3\2\2\2"+
+ "_`\5N(\2`a\7\2\2\3a\5\3\2\2\2bd\5\b\5\2cb\3\2\2\2dg\3\2\2\2ec\3\2\2\2"+
+ "ef\3\2\2\2f\7\3\2\2\2ge\3\2\2\2hi\5\n\6\2ij\7\n\2\2jw\3\2\2\2kw\5(\25"+
+ "\2lm\5\34\17\2mn\7\n\2\2nw\3\2\2\2op\5\"\22\2pq\7\n\2\2qw\3\2\2\2rw\5"+
+ ".\30\2st\5\20\t\2tu\7\n\2\2uw\3\2\2\2vh\3\2\2\2vk\3\2\2\2vl\3\2\2\2vo"+
+ "\3\2\2\2vr\3\2\2\2vs\3\2\2\2w\t\3\2\2\2xy\5\22\n\2yz\5\f\7\2z\13\3\2\2"+
+ "\2{|\b\7\1\2|}\5\16\b\2}\u0083\3\2\2\2~\177\f\3\2\2\177\u0080\7\f\2\2"+
+ "\u0080\u0082\5\16\b\2\u0081~\3\2\2\2\u0082\u0085\3\2\2\2\u0083\u0081\3"+
+ "\2\2\2\u0083\u0084\3\2\2\2\u0084\r\3\2\2\2\u0085\u0083\3\2\2\2\u0086\u0089"+
+ "\5\26\f\2\u0087\u0088\7\'\2\2\u0088\u008a\5D#\2\u0089\u0087\3\2\2\2\u0089"+
+ "\u008a\3\2\2\2\u008a\u0090\3\2\2\2\u008b\u008c\5\26\f\2\u008c\u008d\7"+
+ "\'\2\2\u008d\u008e\5H%\2\u008e\u0090\3\2\2\2\u008f\u0086\3\2\2\2\u008f"+
+ "\u008b\3\2\2\2\u0090\17\3\2\2\2\u0091\u0092\7)\2\2\u0092\u0093\5\22\n"+
+ "\2\u0093\u0094\b\t\1\2\u0094\u0095\5\26\f\2\u0095\21\3\2\2\2\u0096\u0098"+
+ "\5\62\32\2\u0097\u0096\3\2\2\2\u0098\u009b\3\2\2\2\u0099\u0097\3\2\2\2"+
+ "\u0099\u009a\3\2\2\2\u009a\u009c\3\2\2\2\u009b\u0099\3\2\2\2\u009c\u00a0"+
+ "\5\30\r\2\u009d\u009f\5\62\32\2\u009e\u009d\3\2\2\2\u009f\u00a2\3\2\2"+
+ "\2\u00a0\u009e\3\2\2\2\u00a0\u00a1\3\2\2\2\u00a1\23\3\2\2\2\u00a2\u00a0"+
+ "\3\2\2\2\u00a3\u00a4\b\13\1\2\u00a4\u00a5\5\30\r\2\u00a5\u00b0\3\2\2\2"+
+ "\u00a6\u00a7\f\4\2\2\u00a7\u00af\7\24\2\2\u00a8\u00a9\f\3\2\2\u00a9\u00ab"+
+ "\7\6\2\2\u00aa\u00ac\5D#\2\u00ab\u00aa\3\2\2\2\u00ab\u00ac\3\2\2\2\u00ac"+
+ "\u00ad\3\2\2\2\u00ad\u00af\7\7\2\2\u00ae\u00a6\3\2\2\2\u00ae\u00a8\3\2"+
+ "\2\2\u00af\u00b2\3\2\2\2\u00b0\u00ae\3\2\2\2\u00b0\u00b1\3\2\2\2\u00b1"+
+ "\25\3\2\2\2\u00b2\u00b0\3\2\2\2\u00b3\u00b4\b\f\1\2\u00b4\u00b5\7m\2\2"+
+ "\u00b5\u00c3\b\f\1\2\u00b6\u00ba\7\24\2\2\u00b7\u00b9\5\62\32\2\u00b8"+
+ "\u00b7\3\2\2\2\u00b9\u00bc\3\2\2\2\u00ba\u00b8\3\2\2\2\u00ba\u00bb\3\2"+
+ "\2\2\u00bb\u00bd\3\2\2\2\u00bc\u00ba\3\2\2\2\u00bd\u00c3\5\26\f\4\u00be"+
+ "\u00bf\7\b\2\2\u00bf\u00c0\5\26\f\2\u00c0\u00c1\7\t\2\2\u00c1\u00c3\3"+
+ "\2\2\2\u00c2\u00b3\3\2\2\2\u00c2\u00b6\3\2\2\2\u00c2\u00be\3\2\2\2\u00c3"+
+ "\u00d2\3\2\2\2\u00c4\u00c5\f\6\2\2\u00c5\u00c7\7\b\2\2\u00c6\u00c8\5*"+
+ "\26\2\u00c7\u00c6\3\2\2\2\u00c7\u00c8\3\2\2\2\u00c8\u00c9\3\2\2\2\u00c9"+
+ "\u00d1\7\t\2\2\u00ca\u00cb\f\5\2\2\u00cb\u00cd\7\6\2\2\u00cc\u00ce\5D"+
+ "#\2\u00cd\u00cc\3\2\2\2\u00cd\u00ce\3\2\2\2\u00ce\u00cf\3\2\2\2\u00cf"+
+ "\u00d1\7\7\2\2\u00d0\u00c4\3\2\2\2\u00d0\u00ca\3\2\2\2\u00d1\u00d4\3\2"+
+ "\2\2\u00d2\u00d0\3\2\2\2\u00d2\u00d3\3\2\2\2\u00d3\27\3\2\2\2\u00d4\u00d2"+
+ "\3\2\2\2\u00d5\u00e0\7T\2\2\u00d6\u00d8\7S\2\2\u00d7\u00d9\7T\2\2\u00d8"+
+ "\u00d7\3\2\2\2\u00d8\u00d9\3\2\2\2\u00d9\u00e0\3\2\2\2\u00da\u00e0\5\34"+
+ "\17\2\u00db\u00e0\5\32\16\2\u00dc\u00e0\5\"\22\2\u00dd\u00e0\5 \21\2\u00de"+
+ "\u00e0\7\3\2\2\u00df\u00d5\3\2\2\2\u00df\u00d6\3\2\2\2\u00df\u00da\3\2"+
+ "\2\2\u00df\u00db\3\2\2\2\u00df\u00dc\3\2\2\2\u00df\u00dd\3\2\2\2\u00df"+
+ "\u00de\3\2\2\2\u00e0\31\3\2\2\2\u00e1\u00e2\7G\2\2\u00e2\u00e3\7m\2\2"+
+ "\u00e3\33\3\2\2\2\u00e4\u00e6\7G\2\2\u00e5\u00e7\7m\2\2\u00e6\u00e5\3"+
+ "\2\2\2\u00e6\u00e7\3\2\2\2\u00e7\u00e8\3\2\2\2\u00e8\u00ea\7\4\2\2\u00e9"+
+ "\u00eb\5\36\20\2\u00ea\u00e9\3\2\2\2\u00eb\u00ec\3\2\2\2\u00ec\u00ea\3"+
+ "\2\2\2\u00ec\u00ed\3\2\2\2\u00ed\u00ee\3\2\2\2\u00ee\u00ef\7\5\2\2\u00ef"+
+ "\35\3\2\2\2\u00f0\u00f1\5\n\6\2\u00f1\u00f2\7\n\2\2\u00f2\37\3\2\2\2\u00f3"+
+ "\u00f4\7H\2\2\u00f4\u00f5\7m\2\2\u00f5!\3\2\2\2\u00f6\u00f8\7H\2\2\u00f7"+
+ "\u00f9\7m\2\2\u00f8\u00f7\3\2\2\2\u00f8\u00f9\3\2\2\2\u00f9\u00fa\3\2"+
+ "\2\2\u00fa\u00fb\7\4\2\2\u00fb\u00fc\5$\23\2\u00fc\u00fd\7\5\2\2\u00fd"+
+ "#\3\2\2\2\u00fe\u00ff\b\23\1\2\u00ff\u0100\5&\24\2\u0100\u0106\3\2\2\2"+
+ "\u0101\u0102\f\3\2\2\u0102\u0103\7\f\2\2\u0103\u0105\5&\24\2\u0104\u0101"+
+ "\3\2\2\2\u0105\u0108\3\2\2\2\u0106\u0104\3\2\2\2\u0106\u0107\3\2\2\2\u0107"+
+ "%\3\2\2\2\u0108\u0106\3\2\2\2\u0109\u010c\7m\2\2\u010a\u010b\7\'\2\2\u010b"+
+ "\u010d\5D#\2\u010c\u010a\3\2\2\2\u010c\u010d\3\2\2\2\u010d\'\3\2\2\2\u010e"+
+ "\u010f\5\22\n\2\u010f\u0110\5\26\f\2\u0110\u0112\7\4\2\2\u0111\u0113\5"+
+ "\64\33\2\u0112\u0111\3\2\2\2\u0112\u0113\3\2\2\2\u0113\u0114\3\2\2\2\u0114"+
+ "\u0115\7\5\2\2\u0115)\3\2\2\2\u0116\u011b\5,\27\2\u0117\u0118\7\f\2\2"+
+ "\u0118\u011a\5,\27\2\u0119\u0117\3\2\2\2\u011a\u011d\3\2\2\2\u011b\u0119"+
+ "\3\2\2\2\u011b\u011c\3\2\2\2\u011c+\3\2\2\2\u011d\u011b\3\2\2\2\u011e"+
+ "\u011f\5\22\n\2\u011f\u0120\5\26\f\2\u0120\u0124\3\2\2\2\u0121\u0124\7"+
+ "T\2\2\u0122\u0124\7\16\2\2\u0123\u011e\3\2\2\2\u0123\u0121\3\2\2\2\u0123"+
+ "\u0122\3\2\2\2\u0124-\3\2\2\2\u0125\u0126\7Y\2\2\u0126\u0127\7m\2\2\u0127"+
+ "\u0128\7\b\2\2\u0128\u012d\5\60\31\2\u0129\u012a\7\f\2\2\u012a\u012c\5"+
+ "\60\31\2\u012b\u0129\3\2\2\2\u012c\u012f\3\2\2\2\u012d\u012b\3\2\2\2\u012d"+
+ "\u012e\3\2\2\2\u012e\u0130\3\2\2\2\u012f\u012d\3\2\2\2\u0130\u0131\7\t"+
+ "\2\2\u0131/\3\2\2\2\u0132\u013a\7d\2\2\u0133\u0134\7d\2\2\u0134\u0135"+
+ "\7\r\2\2\u0135\u013a\7d\2\2\u0136\u013a\7m\2\2\u0137\u013a\7n\2\2\u0138"+
+ "\u013a\7:\2\2\u0139\u0132\3\2\2\2\u0139\u0133\3\2\2\2\u0139\u0136\3\2"+
+ "\2\2\u0139\u0137\3\2\2\2\u0139\u0138\3\2\2\2\u013a\61\3\2\2\2\u013b\u0169"+
+ "\7*\2\2\u013c\u013d\7-\2\2\u013d\u013e\7\b\2\2\u013e\u013f\7d\2\2\u013f"+
+ "\u0169\7\t\2\2\u0140\u0144\7\62\2\2\u0141\u0142\7\b\2\2\u0142\u0143\7"+
+ "m\2\2\u0143\u0145\7\t\2\2\u0144\u0141\3\2\2\2\u0144\u0145\3\2\2\2\u0145"+
+ "\u0169\3\2\2\2\u0146\u0169\7\65\2\2\u0147\u0169\7\66\2\2\u0148\u0149\7"+
+ "\64\2\2\u0149\u014a\7\b\2\2\u014a\u014b\5D#\2\u014b\u014c\7\t\2\2\u014c"+
+ "\u0169\3\2\2\2\u014d\u0169\7/\2\2\u014e\u0169\7\60\2\2\u014f\u0169\7\67"+
+ "\2\2\u0150\u0169\78\2\2\u0151\u0169\7+\2\2\u0152\u0169\7,\2\2\u0153\u0169"+
+ "\7.\2\2\u0154\u0169\79\2\2\u0155\u0159\7\61\2\2\u0156\u0157\7\b\2\2\u0157"+
+ "\u0158\7m\2\2\u0158\u015a\7\t\2\2\u0159\u0156\3\2\2\2\u0159\u015a\3\2"+
+ "\2\2\u015a\u0169\3\2\2\2\u015b\u015c\7\63\2\2\u015c\u015d\7\b\2\2\u015d"+
+ "\u0162\5\60\31\2\u015e\u015f\7\f\2\2\u015f\u0161\5\60\31\2\u0160\u015e"+
+ "\3\2\2\2\u0161\u0164\3\2\2\2\u0162\u0160\3\2\2\2\u0162\u0163\3\2\2\2\u0163"+
+ "\u0165\3\2\2\2\u0164\u0162\3\2\2\2\u0165\u0166\7\t\2\2\u0166\u0169\3\2"+
+ "\2\2\u0167\u0169\7:\2\2\u0168\u013b\3\2\2\2\u0168\u013c\3\2\2\2\u0168"+
+ "\u0140\3\2\2\2\u0168\u0146\3\2\2\2\u0168\u0147\3\2\2\2\u0168\u0148\3\2"+
+ "\2\2\u0168\u014d\3\2\2\2\u0168\u014e\3\2\2\2\u0168\u014f\3\2\2\2\u0168"+
+ "\u0150\3\2\2\2\u0168\u0151\3\2\2\2\u0168\u0152\3\2\2\2\u0168\u0153\3\2"+
+ "\2\2\u0168\u0154\3\2\2\2\u0168\u0155\3\2\2\2\u0168\u015b\3\2\2\2\u0168"+
+ "\u0167\3\2\2\2\u0169\63\3\2\2\2\u016a\u016c\5\66\34\2\u016b\u016a\3\2"+
+ "\2\2\u016c\u016d\3\2\2\2\u016d\u016b\3\2\2\2\u016d\u016e\3\2\2\2\u016e"+
+ "\65\3\2\2\2\u016f\u0170\5\n\6\2\u0170\u0171\7\n\2\2\u0171\u01c5\3\2\2"+
+ "\2\u0172\u0174\7\4\2\2\u0173\u0175\5\64\33\2\u0174\u0173\3\2\2\2\u0174"+
+ "\u0175\3\2\2\2\u0175\u0176\3\2\2\2\u0176\u01c5\7\5\2\2\u0177\u0178\5B"+
+ "\"\2\u0178\u0179\7\n\2\2\u0179\u01c5\3\2\2\2\u017a\u017b\7;\2\2\u017b"+
+ "\u017c\7\b\2\2\u017c\u017d\5B\"\2\u017d\u017e\7\t\2\2\u017e\u0181\5\66"+
+ "\34\2\u017f\u0180\7<\2\2\u0180\u0182\5\66\34\2\u0181\u017f\3\2\2\2\u0181"+
+ "\u0182\3\2\2\2\u0182\u01c5\3\2\2\2\u0183\u0185\5\62\32\2\u0184\u0183\3"+
+ "\2\2\2\u0185\u0188\3\2\2\2\u0186\u0184\3\2\2\2\u0186\u0187\3\2\2\2\u0187"+
+ "\u0189\3\2\2\2\u0188\u0186\3\2\2\2\u0189\u018a\7=\2\2\u018a\u018b\7\b"+
+ "\2\2\u018b\u018c\5B\"\2\u018c\u018d\7\t\2\2\u018d\u018e\5\66\34\2\u018e"+
+ "\u01c5\3\2\2\2\u018f\u0191\5\62\32\2\u0190\u018f\3\2\2\2\u0191\u0194\3"+
+ "\2\2\2\u0192\u0190\3\2\2\2\u0192\u0193\3\2\2\2\u0193\u0195\3\2\2\2\u0194"+
+ "\u0192\3\2\2\2\u0195\u0196\7>\2\2\u0196\u0197\5\66\34\2\u0197\u0198\7"+
+ "=\2\2\u0198\u0199\7\b\2\2\u0199\u019a\5B\"\2\u019a\u019b\7\t\2\2\u019b"+
+ "\u019c\7\n\2\2\u019c\u01c5\3\2\2\2\u019d\u019f\5\62\32\2\u019e\u019d\3"+
+ "\2\2\2\u019f\u01a2\3\2\2\2\u01a0\u019e\3\2\2\2\u01a0\u01a1\3\2\2\2\u01a1"+
+ "\u01a3\3\2\2\2\u01a2\u01a0\3\2\2\2\u01a3\u01a4\7?\2\2\u01a4\u01a5\7\b"+
+ "\2\2\u01a5\u01a6\5<\37\2\u01a6\u01a7\7\t\2\2\u01a7\u01a8\5\66\34\2\u01a8"+
+ "\u01c5\3\2\2\2\u01a9\u01aa\7@\2\2\u01aa\u01ab\7\b\2\2\u01ab\u01ac\5B\""+
+ "\2\u01ac\u01ad\7\t\2\2\u01ad\u01ae\7\4\2\2\u01ae\u01af\58\35\2\u01af\u01b0"+
+ "\7\5\2\2\u01b0\u01c5\3\2\2\2\u01b1\u01b3\7A\2\2\u01b2\u01b4\5B\"\2\u01b3"+
+ "\u01b2\3\2\2\2\u01b3\u01b4\3\2\2\2\u01b4\u01b5\3\2\2\2\u01b5\u01c5\7\n"+
+ "\2\2\u01b6\u01b7\7B\2\2\u01b7\u01c5\7\n\2\2\u01b8\u01b9\7C\2\2\u01b9\u01c5"+
+ "\7\n\2\2\u01ba\u01bc\7D\2\2\u01bb\u01bd\5J&\2\u01bc\u01bb\3\2\2\2\u01bc"+
+ "\u01bd\3\2\2\2\u01bd\u01be\3\2\2\2\u01be\u01bf\7\4\2\2\u01bf\u01c0\5N"+
+ "(\2\u01c0\u01c1\7\u0086\2\2\u01c1\u01c5\3\2\2\2\u01c2\u01c5\5H%\2\u01c3"+
+ "\u01c5\7\n\2\2\u01c4\u016f\3\2\2\2\u01c4\u0172\3\2\2\2\u01c4\u0177\3\2"+
+ "\2\2\u01c4\u017a\3\2\2\2\u01c4\u0186\3\2\2\2\u01c4\u0192\3\2\2\2\u01c4"+
+ "\u01a0\3\2\2\2\u01c4\u01a9\3\2\2\2\u01c4\u01b1\3\2\2\2\u01c4\u01b6\3\2"+
+ "\2\2\u01c4\u01b8\3\2\2\2\u01c4\u01ba\3\2\2\2\u01c4\u01c2\3\2\2\2\u01c4"+
+ "\u01c3\3\2\2\2\u01c5\67\3\2\2\2\u01c6\u01c8\5:\36\2\u01c7\u01c6\3\2\2"+
+ "\2\u01c8\u01c9\3\2\2\2\u01c9\u01c7\3\2\2\2\u01c9\u01ca\3\2\2\2\u01ca\u01d0"+
+ "\3\2\2\2\u01cb\u01cc\7E\2\2\u01cc\u01ce\7\13\2\2\u01cd\u01cf\5\64\33\2"+
+ "\u01ce\u01cd\3\2\2\2\u01ce\u01cf\3\2\2\2\u01cf\u01d1\3\2\2\2\u01d0\u01cb"+
+ "\3\2\2\2\u01d0\u01d1\3\2\2\2\u01d19\3\2\2\2\u01d2\u01d3\7F\2\2\u01d3\u01d4"+
+ "\5D#\2\u01d4\u01d6\7\13\2\2\u01d5\u01d7\5\64\33\2\u01d6\u01d5\3\2\2\2"+
+ "\u01d6\u01d7\3\2\2\2\u01d7;\3\2\2\2\u01d8\u01d9\5> \2\u01d9\u01db\7\n"+
+ "\2\2\u01da\u01dc\5@!\2\u01db\u01da\3\2\2\2\u01db\u01dc\3\2\2\2\u01dc\u01dd"+
+ "\3\2\2\2\u01dd\u01df\7\n\2\2\u01de\u01e0\5B\"\2\u01df\u01de\3\2\2\2\u01df"+
+ "\u01e0\3\2\2\2\u01e0\u01e9\3\2\2\2\u01e1\u01e2\5\22\n\2\u01e2\u01e3\5"+
+ "\26\f\2\u01e3\u01e4\7\13\2\2\u01e4\u01e5\5D#\2\u01e5\u01e6\7\r\2\2\u01e6"+
+ "\u01e7\5D#\2\u01e7\u01e9\3\2\2\2\u01e8\u01d8\3\2\2\2\u01e8\u01e1\3\2\2"+
+ "\2\u01e9=\3\2\2\2\u01ea\u01ec\5\n\6\2\u01eb\u01ea\3\2\2\2\u01eb\u01ec"+
+ "\3\2\2\2\u01ec\u01ef\3\2\2\2\u01ed\u01ef\5B\"\2\u01ee\u01eb\3\2\2\2\u01ee"+
+ "\u01ed\3\2\2\2\u01ef?\3\2\2\2\u01f0\u01f1\5B\"\2\u01f1A\3\2\2\2\u01f2"+
+ "\u01f3\b\"\1\2\u01f3\u01f4\5D#\2\u01f4\u01fa\3\2\2\2\u01f5\u01f6\f\3\2"+
+ "\2\u01f6\u01f7\7\f\2\2\u01f7\u01f9\5D#\2\u01f8\u01f5\3\2\2\2\u01f9\u01fc"+
+ "\3\2\2\2\u01fa\u01f8\3\2\2\2\u01fa\u01fb\3\2\2\2\u01fbC\3\2\2\2\u01fc"+
+ "\u01fa\3\2\2\2\u01fd\u01fe\b#\1\2\u01fe\u01ff\7\b\2\2\u01ff\u0200\5B\""+
+ "\2\u0200\u0201\7\t\2\2\u0201\u023f\3\2\2\2\u0202\u0203\7I\2\2\u0203\u0206"+
+ "\7\b\2\2\u0204\u0207\5D#\2\u0205\u0207\5\24\13\2\u0206\u0204\3\2\2\2\u0206"+
+ "\u0205\3\2\2\2\u0207\u0208\3\2\2\2\u0208\u0209\7\t\2\2\u0209\u023f\3\2"+
+ "\2\2\u020a\u020b\7J\2\2\u020b\u020e\7\b\2\2\u020c\u020f\5D#\2\u020d\u020f"+
+ "\5\24\13\2\u020e\u020c\3\2\2\2\u020e\u020d\3\2\2\2\u020f\u0210\3\2\2\2"+
+ "\u0210\u0211\7\t\2\2\u0211\u023f\3\2\2\2\u0212\u0214\7K\2\2\u0213\u0215"+
+ "\7\b\2\2\u0214\u0213\3\2\2\2\u0214\u0215\3\2\2\2\u0215\u0216\3\2\2\2\u0216"+
+ "\u0218\7m\2\2\u0217\u0219\7\t\2\2\u0218\u0217\3\2\2\2\u0218\u0219\3\2"+
+ "\2\2\u0219\u023f\3\2\2\2\u021a\u021b\7\b\2\2\u021b\u021c\5\24\13\2\u021c"+
+ "\u021d\7\t\2\2\u021d\u021e\5D#\32\u021e\u023f\3\2\2\2\u021f\u0220\t\2"+
+ "\2\2\u0220\u023f\5D#\31\u0221\u0222\7\24\2\2\u0222\u023f\5D#\27\u0223"+
+ "\u0224\t\3\2\2\u0224\u023f\5D#\26\u0225\u0226\t\4\2\2\u0226\u023f\5D#"+
+ "\22\u0227\u0228\7\4\2\2\u0228\u022d\5D#\2\u0229\u022a\7\f\2\2\u022a\u022c"+
+ "\5D#\2\u022b\u0229\3\2\2\2\u022c\u022f\3\2\2\2\u022d\u022b\3\2\2\2\u022d"+
+ "\u022e\3\2\2\2\u022e\u0231\3\2\2\2\u022f\u022d\3\2\2\2\u0230\u0232\7\f"+
+ "\2\2\u0231\u0230\3\2\2\2\u0231\u0232\3\2\2\2\u0232\u0233\3\2\2\2\u0233"+
+ "\u0234\7\5\2\2\u0234\u023f\3\2\2\2\u0235\u023f\7m\2\2\u0236\u023f\7d\2"+
+ "\2\u0237\u0239\7n\2\2\u0238\u0237\3\2\2\2\u0239\u023a\3\2\2\2\u023a\u0238"+
+ "\3\2\2\2\u023a\u023b\3\2\2\2\u023b\u023f\3\2\2\2\u023c\u023f\7o\2\2\u023d"+
+ "\u023f\7U\2\2\u023e\u01fd\3\2\2\2\u023e\u0202\3\2\2\2\u023e\u020a\3\2"+
+ "\2\2\u023e\u0212\3\2\2\2\u023e\u021a\3\2\2\2\u023e\u021f\3\2\2\2\u023e"+
+ "\u0221\3\2\2\2\u023e\u0223\3\2\2\2\u023e\u0225\3\2\2\2\u023e\u0227\3\2"+
+ "\2\2\u023e\u0235\3\2\2\2\u023e\u0236\3\2\2\2\u023e\u0238\3\2\2\2\u023e"+
+ "\u023c\3\2\2\2\u023e\u023d\3\2\2\2\u023f\u027c\3\2\2\2\u0240\u0241\f\25"+
+ "\2\2\u0241\u0242\t\5\2\2\u0242\u027b\5D#\26\u0243\u0244\f\24\2\2\u0244"+
+ "\u0245\t\6\2\2\u0245\u027b\5D#\25\u0246\u0247\f\23\2\2\u0247\u0248\t\7"+
+ "\2\2\u0248\u027b\5D#\24\u0249\u024a\f\21\2\2\u024a\u024b\t\b\2\2\u024b"+
+ "\u027b\5D#\22\u024c\u024d\f\20\2\2\u024d\u024e\7\31\2\2\u024e\u027b\5"+
+ "D#\21\u024f\u0250\f\17\2\2\u0250\u0251\7\33\2\2\u0251\u027b\5D#\20\u0252"+
+ "\u0253\f\16\2\2\u0253\u0254\7\34\2\2\u0254\u027b\5D#\17\u0255\u0256\f"+
+ "\r\2\2\u0256\u0257\7%\2\2\u0257\u027b\5D#\16\u0258\u0259\f\f\2\2\u0259"+
+ "\u025a\7&\2\2\u025a\u027b\5D#\r\u025b\u025c\f\13\2\2\u025c\u025d\7\17"+
+ "\2\2\u025d\u025e\5D#\2\u025e\u025f\7\13\2\2\u025f\u0260\5D#\f\u0260\u027b"+
+ "\3\2\2\2\u0261\u0262\f\n\2\2\u0262\u0263\7\'\2\2\u0263\u027b\5D#\n\u0264"+
+ "\u0265\f\t\2\2\u0265\u0266\7(\2\2\u0266\u027b\5D#\t\u0267\u0268\f!\2\2"+
+ "\u0268\u0269\7\20\2\2\u0269\u027b\7m\2\2\u026a\u026b\f \2\2\u026b\u026c"+
+ "\7\21\2\2\u026c\u027b\7m\2\2\u026d\u026e\f\37\2\2\u026e\u0270\7\b\2\2"+
+ "\u026f\u0271\5F$\2\u0270\u026f\3\2\2\2\u0270\u0271\3\2\2\2\u0271\u0272"+
+ "\3\2\2\2\u0272\u027b\7\t\2\2\u0273\u0274\f\33\2\2\u0274\u0275\7\6\2\2"+
+ "\u0275\u0276\5B\"\2\u0276\u0277\7\7\2\2\u0277\u027b\3\2\2\2\u0278\u0279"+
+ "\f\30\2\2\u0279\u027b\t\2\2\2\u027a\u0240\3\2\2\2\u027a\u0243\3\2\2\2"+
+ "\u027a\u0246\3\2\2\2\u027a\u0249\3\2\2\2\u027a\u024c\3\2\2\2\u027a\u024f"+
+ "\3\2\2\2\u027a\u0252\3\2\2\2\u027a\u0255\3\2\2\2\u027a\u0258\3\2\2\2\u027a"+
+ "\u025b\3\2\2\2\u027a\u0261\3\2\2\2\u027a\u0264\3\2\2\2\u027a\u0267\3\2"+
+ "\2\2\u027a\u026a\3\2\2\2\u027a\u026d\3\2\2\2\u027a\u0273\3\2\2\2\u027a"+
+ "\u0278\3\2\2\2\u027b\u027e\3\2\2\2\u027c\u027a\3\2\2\2\u027c\u027d\3\2"+
+ "\2\2\u027dE\3\2\2\2\u027e\u027c\3\2\2\2\u027f\u0284\5D#\2\u0280\u0281"+
+ "\7\f\2\2\u0281\u0283\5D#\2\u0282\u0280\3\2\2\2\u0283\u0286\3\2\2\2\u0284"+
+ "\u0282\3\2\2\2\u0284\u0285\3\2\2\2\u0285G\3\2\2\2\u0286\u0284\3\2\2\2"+
+ "\u0287\u0289\7L\2\2\u0288\u028a\5J&\2\u0289\u0288\3\2\2\2\u0289\u028a"+
+ "\3\2\2\2\u028a\u028b\3\2\2\2\u028b\u028c\7V\2\2\u028cI\3\2\2\2\u028d\u028e"+
+ "\7\b\2\2\u028e\u0293\5L\'\2\u028f\u0290\7\f\2\2\u0290\u0292\5L\'\2\u0291"+
+ "\u028f\3\2\2\2\u0292\u0295\3\2\2\2\u0293\u0291\3\2\2\2\u0293\u0294\3\2"+
+ "\2\2\u0294\u0296\3\2\2\2\u0295\u0293\3\2\2\2\u0296\u0297\7\t\2\2\u0297"+
+ "K\3\2\2\2\u0298\u0299\7M\2\2\u0299\u02a3\7n\2\2\u029a\u029b\7N\2\2\u029b"+
+ "\u02a3\7m\2\2\u029c\u029d\7O\2\2\u029d\u02a3\7n\2\2\u029e\u029f\7P\2\2"+
+ "\u029f\u02a3\5D#\2\u02a0\u02a1\7Q\2\2\u02a1\u02a3\5D#\2\u02a2\u0298\3"+
+ "\2\2\2\u02a2\u029a\3\2\2\2\u02a2\u029c\3\2\2\2\u02a2\u029e\3\2\2\2\u02a2"+
+ "\u02a0\3\2\2\2\u02a3M\3\2\2\2\u02a4\u02a6\5P)\2\u02a5\u02a4\3\2\2\2\u02a6"+
+ "\u02a9\3\2\2\2\u02a7\u02a5\3\2\2\2\u02a7\u02a8\3\2\2\2\u02a8O\3\2\2\2"+
+ "\u02a9\u02a7\3\2\2\2\u02aa\u02ae\5R*\2\u02ab\u02ae\5T+\2\u02ac\u02ae\5"+
+ "V,\2\u02ad\u02aa\3\2\2\2\u02ad\u02ab\3\2\2\2\u02ad\u02ac\3\2\2\2\u02ae"+
+ "Q\3\2\2\2\u02af\u02b0\7\u0093\2\2\u02b0\u02b4\7v\2\2\u02b1\u02b3\7\u0094"+
+ "\2\2\u02b2\u02b1\3\2\2\2\u02b3\u02b6\3\2\2\2\u02b4\u02b2\3\2\2\2\u02b4"+
+ "\u02b5\3\2\2\2\u02b5\u02c0\3\2\2\2\u02b6\u02b4\3\2\2\2\u02b7\u02b8\7\u0092"+
+ "\2\2\u02b8\u02bc\7v\2\2\u02b9\u02bb\7\u0094\2\2\u02ba\u02b9\3\2\2\2\u02bb"+
+ "\u02be\3\2\2\2\u02bc\u02ba\3\2\2\2\u02bc\u02bd\3\2\2\2\u02bd\u02c0\3\2"+
+ "\2\2\u02be\u02bc\3\2\2\2\u02bf\u02af\3\2\2\2\u02bf\u02b7\3\2\2\2\u02c0"+
+ "S\3\2\2\2\u02c1\u02c3\7t\2\2\u02c2\u02c4\5X-\2\u02c3\u02c2\3\2\2\2\u02c3"+
+ "\u02c4\3\2\2\2\u02c4\u02c8\3\2\2\2\u02c5\u02c7\7\u0094\2\2\u02c6\u02c5"+
+ "\3\2\2\2\u02c7\u02ca\3\2\2\2\u02c8\u02c6\3\2\2\2\u02c8\u02c9\3\2\2\2\u02c9"+
+ "U\3\2\2\2\u02ca\u02c8\3\2\2\2\u02cb\u02cc\7s\2\2\u02cc\u02d1\5Z.\2\u02cd"+
+ "\u02ce\7w\2\2\u02ce\u02d0\5Z.\2\u02cf\u02cd\3\2\2\2\u02d0\u02d3\3\2\2"+
+ "\2\u02d1\u02cf\3\2\2\2\u02d1\u02d2\3\2\2\2\u02d2\u02d7\3\2\2\2\u02d3\u02d1"+
+ "\3\2\2\2\u02d4\u02d6\7\u0094\2\2\u02d5\u02d4\3\2\2\2\u02d6\u02d9\3\2\2"+
+ "\2\u02d7\u02d5\3\2\2\2\u02d7\u02d8\3\2\2\2\u02d8W\3\2\2\2\u02d9\u02d7"+
+ "\3\2\2\2\u02da\u0308\5Z.\2\u02db\u02dc\7u\2\2\u02dc\u0308\5Z.\2\u02dd"+
+ "\u02de\5Z.\2\u02de\u02df\7w\2\2\u02df\u02e0\5Z.\2\u02e0\u0308\3\2\2\2"+
+ "\u02e1\u02e2\7x\2\2\u02e2\u02e3\5Z.\2\u02e3\u02e4\7y\2\2\u02e4\u02e5\7"+
+ "w\2\2\u02e5\u02e6\7\u0093\2\2\u02e6\u0308\3\2\2\2\u02e7\u02e8\7x\2\2\u02e8"+
+ "\u02e9\7x\2\2\u02e9\u02ea\5Z.\2\u02ea\u02eb\7y\2\2\u02eb\u02ec\7y\2\2"+
+ "\u02ec\u02ed\7w\2\2\u02ed\u02ee\7\u0093\2\2\u02ee\u0308\3\2\2\2\u02ef"+
+ "\u02f0\7x\2\2\u02f0\u02f1\5Z.\2\u02f1\u02f2\7w\2\2\u02f2\u02f3\7\u0093"+
+ "\2\2\u02f3\u02f4\7y\2\2\u02f4\u02f5\7w\2\2\u02f5\u02f6\7\u0093\2\2\u02f6"+
+ "\u0308\3\2\2\2\u02f7\u02f8\7x\2\2\u02f8\u02f9\5Z.\2\u02f9\u02fa\7w\2\2"+
+ "\u02fa\u02fb\7\u0093\2\2\u02fb\u02fc\7y\2\2\u02fc\u0308\3\2\2\2\u02fd"+
+ "\u02fe\7x\2\2\u02fe\u02ff\5Z.\2\u02ff\u0300\7y\2\2\u0300\u0308\3\2\2\2"+
+ "\u0301\u0302\7x\2\2\u0302\u0303\7x\2\2\u0303\u0304\5Z.\2\u0304\u0305\7"+
+ "y\2\2\u0305\u0306\7y\2\2\u0306\u0308\3\2\2\2\u0307\u02da\3\2\2\2\u0307"+
+ "\u02db\3\2\2\2\u0307\u02dd\3\2\2\2\u0307\u02e1\3\2\2\2\u0307\u02e7\3\2"+
+ "\2\2\u0307\u02ef\3\2\2\2\u0307\u02f7\3\2\2\2\u0307\u02fd\3\2\2\2\u0307"+
+ "\u0301\3\2\2\2\u0308Y\3\2\2\2\u0309\u030a\b.\1\2\u030a\u030b\7z\2\2\u030b"+
+ "\u030c\5Z.\2\u030c\u030d\7{\2\2\u030d\u0318\3\2\2\2\u030e\u030f\t\t\2"+
+ "\2\u030f\u0318\5Z.\n\u0310\u0318\7\u0093\2\2\u0311\u0318\7\u0091\2\2\u0312"+
+ "\u0313\7\u0085\2\2\u0313\u0314\7\u0093\2\2\u0314\u0318\7\u0086\2\2\u0315"+
+ "\u0318\7\u0087\2\2\u0316\u0318\7\u0090\2\2\u0317\u0309\3\2\2\2\u0317\u030e"+
+ "\3\2\2\2\u0317\u0310\3\2\2\2\u0317\u0311\3\2\2\2\u0317\u0312\3\2\2\2\u0317"+
+ "\u0315\3\2\2\2\u0317\u0316\3\2\2\2\u0318\u0327\3\2\2\2\u0319\u031a\f\f"+
+ "\2\2\u031a\u031b\7|\2\2\u031b\u0326\5Z.\r\u031c\u031d\f\13\2\2\u031d\u031e"+
+ "\t\n\2\2\u031e\u0326\5Z.\f\u031f\u0320\f\t\2\2\u0320\u0321\t\13\2\2\u0321"+
+ "\u0326\5Z.\n\u0322\u0323\f\b\2\2\u0323\u0324\t\f\2\2\u0324\u0326\5Z.\t"+
+ "\u0325\u0319\3\2\2\2\u0325\u031c\3\2\2\2\u0325\u031f\3\2\2\2\u0325\u0322"+
+ "\3\2\2\2\u0326\u0329\3\2\2\2\u0327\u0325\3\2\2\2\u0327\u0328\3\2\2\2\u0328"+
+ "[\3\2\2\2\u0329\u0327\3\2\2\2Qev\u0083\u0089\u008f\u0099\u00a0\u00ab\u00ae"+
+ "\u00b0\u00ba\u00c2\u00c7\u00cd\u00d0\u00d2\u00d8\u00df\u00e6\u00ec\u00f8"+
+ "\u0106\u010c\u0112\u011b\u0123\u012d\u0139\u0144\u0159\u0162\u0168\u016d"+
+ "\u0174\u0181\u0186\u0192\u01a0\u01b3\u01bc\u01c4\u01c9\u01ce\u01d0\u01d6"+
+ "\u01db\u01df\u01e8\u01eb\u01ee\u01fa\u0206\u020e\u0214\u0218\u022d\u0231"+
+ "\u023a\u023e\u0270\u027a\u027c\u0284\u0289\u0293\u02a2\u02a7\u02ad\u02b4"+
+ "\u02bc\u02bf\u02c3\u02c8\u02d1\u02d7\u0307\u0317\u0325\u0327";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
diff --git a/src/main/java/dk/camelot64/kickc/parser/KickCParserBaseListener.java b/src/main/java/dk/camelot64/kickc/parser/KickCParserBaseListener.java
index 14c4cf426..f9383b581 100644
--- a/src/main/java/dk/camelot64/kickc/parser/KickCParserBaseListener.java
+++ b/src/main/java/dk/camelot64/kickc/parser/KickCParserBaseListener.java
@@ -222,25 +222,13 @@ public class KickCParserBaseListener implements KickCParserListener {
*
* The default implementation does nothing.
*/
- @Override public void enterTypeProcedure(KickCParser.TypeProcedureContext ctx) { }
+ @Override public void enterDeclaratorProcedure(KickCParser.DeclaratorProcedureContext ctx) { }
/**
* {@inheritDoc}
*
* The default implementation does nothing.
*/
- @Override public void exitTypeProcedure(KickCParser.TypeProcedureContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterTypeStructRef(KickCParser.TypeStructRefContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitTypeStructRef(KickCParser.TypeStructRefContext ctx) { }
+ @Override public void exitDeclaratorProcedure(KickCParser.DeclaratorProcedureContext ctx) { }
/**
* {@inheritDoc}
*
@@ -253,6 +241,18 @@ public class KickCParserBaseListener implements KickCParserListener {
* The default implementation does nothing.
*/
@Override public void exitTypeSimple(KickCParser.TypeSimpleContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx) { }
/**
* {@inheritDoc}
*
@@ -270,25 +270,25 @@ public class KickCParserBaseListener implements KickCParserListener {
*
* The default implementation does nothing.
*/
- @Override public void enterTypeNamedRef(KickCParser.TypeNamedRefContext ctx) { }
+ @Override public void enterTypeStructRef(KickCParser.TypeStructRefContext ctx) { }
/**
* {@inheritDoc}
*
* The default implementation does nothing.
*/
- @Override public void exitTypeNamedRef(KickCParser.TypeNamedRefContext ctx) { }
+ @Override public void exitTypeStructRef(KickCParser.TypeStructRefContext ctx) { }
/**
* {@inheritDoc}
*
* The default implementation does nothing.
*/
- @Override public void enterTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx) { }
+ @Override public void enterTypeEnumDef(KickCParser.TypeEnumDefContext ctx) { }
/**
* {@inheritDoc}
*
* The default implementation does nothing.
*/
- @Override public void exitTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx) { }
+ @Override public void exitTypeEnumDef(KickCParser.TypeEnumDefContext ctx) { }
/**
* {@inheritDoc}
*
@@ -306,13 +306,13 @@ public class KickCParserBaseListener implements KickCParserListener {
*
* The default implementation does nothing.
*/
- @Override public void enterTypeEnumDef(KickCParser.TypeEnumDefContext ctx) { }
+ @Override public void enterTypeNamedRef(KickCParser.TypeNamedRefContext ctx) { }
/**
* {@inheritDoc}
*
* The default implementation does nothing.
*/
- @Override public void exitTypeEnumDef(KickCParser.TypeEnumDefContext ctx) { }
+ @Override public void exitTypeNamedRef(KickCParser.TypeNamedRefContext ctx) { }
/**
* {@inheritDoc}
*
@@ -409,18 +409,6 @@ public class KickCParserBaseListener implements KickCParserListener {
* The default implementation does nothing.
*/
@Override public void exitDeclFunction(KickCParser.DeclFunctionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterDeclFunctionBody(KickCParser.DeclFunctionBodyContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitDeclFunctionBody(KickCParser.DeclFunctionBodyContext ctx) { }
/**
* {@inheritDoc}
*
diff --git a/src/main/java/dk/camelot64/kickc/parser/KickCParserBaseVisitor.java b/src/main/java/dk/camelot64/kickc/parser/KickCParserBaseVisitor.java
index 81a48e909..574d8c2b6 100644
--- a/src/main/java/dk/camelot64/kickc/parser/KickCParserBaseVisitor.java
+++ b/src/main/java/dk/camelot64/kickc/parser/KickCParserBaseVisitor.java
@@ -138,14 +138,7 @@ public class KickCParserBaseVisitor extends AbstractParseTreeVisitor imple
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*/
- @Override public T visitTypeProcedure(KickCParser.TypeProcedureContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitTypeStructRef(KickCParser.TypeStructRefContext ctx) { return visitChildren(ctx); }
+ @Override public T visitDeclaratorProcedure(KickCParser.DeclaratorProcedureContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -153,6 +146,13 @@ public class KickCParserBaseVisitor extends AbstractParseTreeVisitor imple
* {@link #visitChildren} on {@code ctx}.
*/
@Override public T visitTypeSimple(KickCParser.TypeSimpleContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -166,14 +166,14 @@ public class KickCParserBaseVisitor extends AbstractParseTreeVisitor imple
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*/
- @Override public T visitTypeNamedRef(KickCParser.TypeNamedRefContext ctx) { return visitChildren(ctx); }
+ @Override public T visitTypeStructRef(KickCParser.TypeStructRefContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*/
- @Override public T visitTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx) { return visitChildren(ctx); }
+ @Override public T visitTypeEnumDef(KickCParser.TypeEnumDefContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -187,7 +187,7 @@ public class KickCParserBaseVisitor extends AbstractParseTreeVisitor imple
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*/
- @Override public T visitTypeEnumDef(KickCParser.TypeEnumDefContext ctx) { return visitChildren(ctx); }
+ @Override public T visitTypeNamedRef(KickCParser.TypeNamedRefContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -244,13 +244,6 @@ public class KickCParserBaseVisitor extends AbstractParseTreeVisitor imple
* {@link #visitChildren} on {@code ctx}.
*/
@Override public T visitDeclFunction(KickCParser.DeclFunctionContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitDeclFunctionBody(KickCParser.DeclFunctionBodyContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
diff --git a/src/main/java/dk/camelot64/kickc/parser/KickCParserListener.java b/src/main/java/dk/camelot64/kickc/parser/KickCParserListener.java
index f6e2b21da..8dab5be42 100644
--- a/src/main/java/dk/camelot64/kickc/parser/KickCParserListener.java
+++ b/src/main/java/dk/camelot64/kickc/parser/KickCParserListener.java
@@ -198,29 +198,17 @@ public interface KickCParserListener extends ParseTreeListener {
*/
void exitDeclaratorName(KickCParser.DeclaratorNameContext ctx);
/**
- * Enter a parse tree produced by the {@code typeProcedure}
- * labeled alternative in {@link KickCParser#type}.
+ * Enter a parse tree produced by the {@code declaratorProcedure}
+ * labeled alternative in {@link KickCParser#declarator}.
* @param ctx the parse tree
*/
- void enterTypeProcedure(KickCParser.TypeProcedureContext ctx);
+ void enterDeclaratorProcedure(KickCParser.DeclaratorProcedureContext ctx);
/**
- * Exit a parse tree produced by the {@code typeProcedure}
- * labeled alternative in {@link KickCParser#type}.
+ * Exit a parse tree produced by the {@code declaratorProcedure}
+ * labeled alternative in {@link KickCParser#declarator}.
* @param ctx the parse tree
*/
- void exitTypeProcedure(KickCParser.TypeProcedureContext ctx);
- /**
- * Enter a parse tree produced by the {@code typeStructRef}
- * labeled alternative in {@link KickCParser#type}.
- * @param ctx the parse tree
- */
- void enterTypeStructRef(KickCParser.TypeStructRefContext ctx);
- /**
- * Exit a parse tree produced by the {@code typeStructRef}
- * labeled alternative in {@link KickCParser#type}.
- * @param ctx the parse tree
- */
- void exitTypeStructRef(KickCParser.TypeStructRefContext ctx);
+ void exitDeclaratorProcedure(KickCParser.DeclaratorProcedureContext ctx);
/**
* Enter a parse tree produced by the {@code typeSimple}
* labeled alternative in {@link KickCParser#type}.
@@ -233,6 +221,18 @@ public interface KickCParserListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitTypeSimple(KickCParser.TypeSimpleContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code typeSignedSimple}
+ * labeled alternative in {@link KickCParser#type}.
+ * @param ctx the parse tree
+ */
+ void enterTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code typeSignedSimple}
+ * labeled alternative in {@link KickCParser#type}.
+ * @param ctx the parse tree
+ */
+ void exitTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx);
/**
* Enter a parse tree produced by the {@code typeStructDef}
* labeled alternative in {@link KickCParser#type}.
@@ -246,29 +246,29 @@ public interface KickCParserListener extends ParseTreeListener {
*/
void exitTypeStructDef(KickCParser.TypeStructDefContext ctx);
/**
- * Enter a parse tree produced by the {@code typeNamedRef}
+ * Enter a parse tree produced by the {@code typeStructRef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
*/
- void enterTypeNamedRef(KickCParser.TypeNamedRefContext ctx);
+ void enterTypeStructRef(KickCParser.TypeStructRefContext ctx);
/**
- * Exit a parse tree produced by the {@code typeNamedRef}
+ * Exit a parse tree produced by the {@code typeStructRef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
*/
- void exitTypeNamedRef(KickCParser.TypeNamedRefContext ctx);
+ void exitTypeStructRef(KickCParser.TypeStructRefContext ctx);
/**
- * Enter a parse tree produced by the {@code typeSignedSimple}
+ * Enter a parse tree produced by the {@code typeEnumDef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
*/
- void enterTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx);
+ void enterTypeEnumDef(KickCParser.TypeEnumDefContext ctx);
/**
- * Exit a parse tree produced by the {@code typeSignedSimple}
+ * Exit a parse tree produced by the {@code typeEnumDef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
*/
- void exitTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx);
+ void exitTypeEnumDef(KickCParser.TypeEnumDefContext ctx);
/**
* Enter a parse tree produced by the {@code typeEnumRef}
* labeled alternative in {@link KickCParser#type}.
@@ -282,17 +282,17 @@ public interface KickCParserListener extends ParseTreeListener {
*/
void exitTypeEnumRef(KickCParser.TypeEnumRefContext ctx);
/**
- * Enter a parse tree produced by the {@code typeEnumDef}
+ * Enter a parse tree produced by the {@code typeNamedRef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
*/
- void enterTypeEnumDef(KickCParser.TypeEnumDefContext ctx);
+ void enterTypeNamedRef(KickCParser.TypeNamedRefContext ctx);
/**
- * Exit a parse tree produced by the {@code typeEnumDef}
+ * Exit a parse tree produced by the {@code typeNamedRef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
*/
- void exitTypeEnumDef(KickCParser.TypeEnumDefContext ctx);
+ void exitTypeNamedRef(KickCParser.TypeNamedRefContext ctx);
/**
* Enter a parse tree produced by {@link KickCParser#structRef}.
* @param ctx the parse tree
@@ -373,16 +373,6 @@ public interface KickCParserListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitDeclFunction(KickCParser.DeclFunctionContext ctx);
- /**
- * Enter a parse tree produced by {@link KickCParser#declFunctionBody}.
- * @param ctx the parse tree
- */
- void enterDeclFunctionBody(KickCParser.DeclFunctionBodyContext ctx);
- /**
- * Exit a parse tree produced by {@link KickCParser#declFunctionBody}.
- * @param ctx the parse tree
- */
- void exitDeclFunctionBody(KickCParser.DeclFunctionBodyContext ctx);
/**
* Enter a parse tree produced by {@link KickCParser#parameterListDecl}.
* @param ctx the parse tree
diff --git a/src/main/java/dk/camelot64/kickc/parser/KickCParserVisitor.java b/src/main/java/dk/camelot64/kickc/parser/KickCParserVisitor.java
index 7ae84a549..efe092d4a 100644
--- a/src/main/java/dk/camelot64/kickc/parser/KickCParserVisitor.java
+++ b/src/main/java/dk/camelot64/kickc/parser/KickCParserVisitor.java
@@ -124,19 +124,12 @@ public interface KickCParserVisitor extends ParseTreeVisitor {
*/
T visitDeclaratorName(KickCParser.DeclaratorNameContext ctx);
/**
- * Visit a parse tree produced by the {@code typeProcedure}
- * labeled alternative in {@link KickCParser#type}.
+ * Visit a parse tree produced by the {@code declaratorProcedure}
+ * labeled alternative in {@link KickCParser#declarator}.
* @param ctx the parse tree
* @return the visitor result
*/
- T visitTypeProcedure(KickCParser.TypeProcedureContext ctx);
- /**
- * Visit a parse tree produced by the {@code typeStructRef}
- * labeled alternative in {@link KickCParser#type}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitTypeStructRef(KickCParser.TypeStructRefContext ctx);
+ T visitDeclaratorProcedure(KickCParser.DeclaratorProcedureContext ctx);
/**
* Visit a parse tree produced by the {@code typeSimple}
* labeled alternative in {@link KickCParser#type}.
@@ -144,6 +137,13 @@ public interface KickCParserVisitor extends ParseTreeVisitor {
* @return the visitor result
*/
T visitTypeSimple(KickCParser.TypeSimpleContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code typeSignedSimple}
+ * labeled alternative in {@link KickCParser#type}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx);
/**
* Visit a parse tree produced by the {@code typeStructDef}
* labeled alternative in {@link KickCParser#type}.
@@ -152,19 +152,19 @@ public interface KickCParserVisitor extends ParseTreeVisitor {
*/
T visitTypeStructDef(KickCParser.TypeStructDefContext ctx);
/**
- * Visit a parse tree produced by the {@code typeNamedRef}
+ * Visit a parse tree produced by the {@code typeStructRef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
* @return the visitor result
*/
- T visitTypeNamedRef(KickCParser.TypeNamedRefContext ctx);
+ T visitTypeStructRef(KickCParser.TypeStructRefContext ctx);
/**
- * Visit a parse tree produced by the {@code typeSignedSimple}
+ * Visit a parse tree produced by the {@code typeEnumDef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
* @return the visitor result
*/
- T visitTypeSignedSimple(KickCParser.TypeSignedSimpleContext ctx);
+ T visitTypeEnumDef(KickCParser.TypeEnumDefContext ctx);
/**
* Visit a parse tree produced by the {@code typeEnumRef}
* labeled alternative in {@link KickCParser#type}.
@@ -173,12 +173,12 @@ public interface KickCParserVisitor extends ParseTreeVisitor {
*/
T visitTypeEnumRef(KickCParser.TypeEnumRefContext ctx);
/**
- * Visit a parse tree produced by the {@code typeEnumDef}
+ * Visit a parse tree produced by the {@code typeNamedRef}
* labeled alternative in {@link KickCParser#type}.
* @param ctx the parse tree
* @return the visitor result
*/
- T visitTypeEnumDef(KickCParser.TypeEnumDefContext ctx);
+ T visitTypeNamedRef(KickCParser.TypeNamedRefContext ctx);
/**
* Visit a parse tree produced by {@link KickCParser#structRef}.
* @param ctx the parse tree
@@ -227,12 +227,6 @@ public interface KickCParserVisitor extends ParseTreeVisitor {
* @return the visitor result
*/
T visitDeclFunction(KickCParser.DeclFunctionContext ctx);
- /**
- * Visit a parse tree produced by {@link KickCParser#declFunctionBody}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDeclFunctionBody(KickCParser.DeclFunctionBodyContext ctx);
/**
* Visit a parse tree produced by {@link KickCParser#parameterListDecl}.
* @param ctx the parse tree
diff --git a/src/main/java/dk/camelot64/kickc/passes/Pass0GenerateStatementSequence.java b/src/main/java/dk/camelot64/kickc/passes/Pass0GenerateStatementSequence.java
index c9a7199b9..4d887b512 100644
--- a/src/main/java/dk/camelot64/kickc/passes/Pass0GenerateStatementSequence.java
+++ b/src/main/java/dk/camelot64/kickc/passes/Pass0GenerateStatementSequence.java
@@ -116,7 +116,7 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor()), program.getScope(), Scope.SEGMENT_CODE_DEFAULT, Scope.SEGMENT_DATA_DEFAULT, Procedure.CallingConvention.PHI_CALL);
initProc.setDeclaredInline(true);
initProc.setParameters(new ArrayList<>());
program.getScope().add(initProc);
@@ -173,7 +173,7 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor()), program.getScope(), Scope.SEGMENT_CODE_DEFAULT, Scope.SEGMENT_DATA_DEFAULT, Procedure.CallingConvention.PHI_CALL);
startProcedure.setParameters(new ArrayList<>());
program.getScope().add(startProcedure);
final ProcedureCompilation startProcedureCompilation = program.createProcedureCompilation(startProcedure.getRef());
@@ -391,83 +391,70 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor directives = varDecl.getDeclDirectives();
- String name = varDecl.getVarName();
- Procedure procedure = new Procedure(name, type, program.getScope(), currentCodeSegment, currentDataSegment, currentCallingConvention);
- addDirectives(procedure, directives, StatementSource.procedureDecl(ctx));
+ StatementSource declSource = new StatementSource((ParserRuleContext) ctx.parent.parent);
+ Procedure procedure = new Procedure(varDecl.getVarName(), (SymbolTypeProcedure) varDecl.declType, program.getScope(), currentCodeSegment, currentDataSegment, currentCallingConvention);
+ addDirectives(procedure, varDecl.getDeclDirectives(), declSource);
procedure.setComments(ensureUnusedComments(getCommentsSymbol(ctx)));
+ // TODO: Detect existing declarations and check for match!
+ program.getScope().add(procedure);
+ program.createProcedureCompilation(procedure.getRef());
+ // enter the procedure
scopeStack.push(procedure);
+
+ // Add return variable
Variable returnVar = null;
- if(!SymbolType.VOID.equals(type)) {
- final VariableBuilder builder = new VariableBuilder("return", procedure, false, varDecl.getEffectiveType(), varDecl.getDeclDirectives(), currentDataSegment, program.getTargetPlatform().getVariableBuilderConfig());
+ if(!SymbolType.VOID.equals(procedure.getReturnType())) {
+ final VariableBuilder builder = new VariableBuilder("return", procedure, false, procedure.getReturnType(), varDecl.getDeclDirectives(), currentDataSegment, program.getTargetPlatform().getVariableBuilderConfig());
returnVar = builder.build();
}
- varDecl.exitType();
+ // Add parameter variables...
List parameterList = new ArrayList<>();
- if(ctx.parameterListDecl() != null) {
- parameterList = (List) this.visit(ctx.parameterListDecl());
+ for(ParameterDecl parameter : varDecl.parameters) {
+ VariableBuilder varBuilder = new VariableBuilder(parameter.name, getCurrentScope(), true, parameter.type, null, currentDataSegment, program.getTargetPlatform().getVariableBuilderConfig());
+ final Variable paramVar = varBuilder.build();
+ parameterList.add(paramVar);
}
procedure.setParameters(parameterList);
+
+ varDecl.exitType();
+
+ // Check that the body has not already been added
+ final StatementSequence statementSequence = getCurrentProcedureCompilation().getStatementSequence();
+ if(statementSequence != null && statementSequence.getStatements().size() > 0)
+ throw new CompileError("Redefinition of function: " + procedure.getFullName(), StatementSource.procedureBegin(ctx));
+
+ // Add the body
+ addStatement(new StatementProcedureBegin(procedure.getRef(), StatementSource.procedureBegin(ctx), Comment.NO_COMMENTS));
+ // Add parameter assignments
+ if(Procedure.CallingConvention.STACK_CALL.equals(procedure.getCallingConvention())) {
+ for(Variable param : parameterList) {
+ addStatement(new StatementAssignment((LValue) param.getRef(), new ParamValue((VariableRef) param.getRef()), true, StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
+ }
+ }
+ Label procExit = procedure.addLabel(SymbolRef.PROCEXIT_BLOCK_NAME);
+ if(ctx.stmtSeq() != null) {
+ this.visit(ctx.stmtSeq());
+ }
+ addStatement(new StatementLabel(procExit.getRef(), StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
+ if(Procedure.CallingConvention.PHI_CALL.equals(procedure.getCallingConvention()) && returnVar != null) {
+ addStatement(new StatementAssignment(returnVar.getVariableRef(), returnVar.getRef(), false, StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
+ }
+ SymbolVariableRef returnVarRef = null;
+ if(returnVar != null) {
+ returnVarRef = returnVar.getRef();
+ }
+ addStatement(new StatementReturn(returnVarRef, StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
+ addStatement(new StatementProcedureEnd(procedure.getRef(), StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
scopeStack.pop();
- // Check that the declaration matches any existing declaration!
- final Symbol existingSymbol = program.getScope().getSymbol(procedure.getRef());
- if(existingSymbol != null) {
- // Already declared - check equality
- if(!(existingSymbol instanceof Procedure) || !SymbolTypeConversion.procedureDeclarationMatch((Procedure) existingSymbol, procedure))
- throw new CompileError("Conflicting declarations for: " + procedure.getFullName(), new StatementSource(ctx));
- } else {
- // Not declared before - add it
- program.getScope().add(procedure);
- program.createProcedureCompilation(procedure.getRef());
- }
-
- if(ctx.declFunctionBody() != null || VariableBuilder.hasDirective(Directive.Intrinsic.class, directives)) {
- // Make sure directives and more are taken from the procedure with the body / intrinsic declaration!
- if(existingSymbol != null) {
- program.getScope().remove(existingSymbol);
- program.getScope().add(procedure);
- }
- }
-
- if(ctx.declFunctionBody() != null) {
- scopeStack.push(procedure);
- // Check that the body has not already been added
- final StatementSequence statementSequence = getCurrentProcedureCompilation().getStatementSequence();
- if(statementSequence != null && statementSequence.getStatements().size() > 0)
- throw new CompileError("Redefinition of function: " + procedure.getFullName(), StatementSource.procedureBegin(ctx));
- // Add the body
- addStatement(new StatementProcedureBegin(procedure.getRef(), StatementSource.procedureBegin(ctx), Comment.NO_COMMENTS));
- // Add parameter assignments
- if(Procedure.CallingConvention.STACK_CALL.equals(procedure.getCallingConvention())) {
- for(Variable param : parameterList) {
- addStatement(new StatementAssignment((LValue) param.getRef(), new ParamValue((VariableRef) param.getRef()), true, StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
- }
- }
- Label procExit = procedure.addLabel(SymbolRef.PROCEXIT_BLOCK_NAME);
- if(ctx.declFunctionBody().stmtSeq() != null) {
- this.visit(ctx.declFunctionBody().stmtSeq());
- }
- addStatement(new StatementLabel(procExit.getRef(), StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
- if(Procedure.CallingConvention.PHI_CALL.equals(procedure.getCallingConvention()) && returnVar != null) {
- addStatement(new StatementAssignment(returnVar.getVariableRef(), returnVar.getRef(), false, StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
- }
- SymbolVariableRef returnVarRef = null;
- if(returnVar != null) {
- returnVarRef = returnVar.getRef();
- }
- addStatement(new StatementReturn(returnVarRef, StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
- addStatement(new StatementProcedureEnd(procedure.getRef(), StatementSource.procedureEnd(ctx), Comment.NO_COMMENTS));
- scopeStack.pop();
- }
return null;
}
@Override
public List visitParameterListDecl(KickCParser.ParameterListDeclContext ctx) {
+ /*
ArrayList parameterDecls = new ArrayList<>();
boolean encounteredVariableLengthParamList = false;
for(KickCParser.ParameterDeclContext parameterDeclCtx : ctx.parameterDecl()) {
@@ -494,17 +481,18 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor
* Struct Member Declaration (true while inside inside a struct declaration)
* Type information and directives (the type)
- * Variable information and declarations (arrayness, pointerness, variable level directives)
+ * Information about parameters (for procedures)
*
*
* When parsing a declaration such as volatile char a, * const b, c[]
the type level holds volatile char
@@ -766,6 +764,8 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor parameters;
/**
* Exits the type layer (clears everything except struct information)
@@ -776,6 +776,7 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor();
}
/**
@@ -784,6 +785,7 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor();
}
SymbolType getEffectiveType() {
@@ -862,6 +864,14 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor parameters) {
+ this.parameters = parameters;
+ }
+
+ public List getParameters() {
+ return parameters;
+ }
+
}
/** The current variable declaration. This is not on the stack. */
@@ -923,48 +933,57 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor effectiveDirectives = varDecl.getDeclDirectives();
final List declComments = varDecl.getDeclComments();
varDecl.exitVar();
- VariableBuilder varBuilder = new VariableBuilder(varName, getCurrentScope(), false, effectiveType, effectiveDirectives, currentDataSegment, program.getTargetPlatform().getVariableBuilderConfig());
- Variable variable = varBuilder.build();
- if(isStructMember && (initializer != null))
- throw new CompileError("Initializer not supported inside structs " + effectiveType.getTypeName(), statementSource);
- if(variable.isDeclarationOnly()) {
- if(initializer != null) {
- throw new CompileError("Initializer not allowed for extern variables " + varName, statementSource);
- }
- } else {
- // Create a proper initializer
- if(initializer != null)
- PrePostModifierHandler.addPreModifiers(this, initializer, statementSource);
- RValue initValue = (initializer == null) ? null : (RValue) visit(initializer);
- initValue = Initializers.constantify(initValue, new Initializers.ValueTypeSpec(effectiveType), program, statementSource);
- boolean isPermanent = ScopeRef.ROOT.equals(variable.getScope().getRef()) || variable.isPermanent();
- if(variable.isKindConstant() || (isPermanent && variable.isKindLoadStore() && Variable.MemoryArea.MAIN_MEMORY.equals(variable.getMemoryArea()) && initValue instanceof ConstantValue && !isStructMember && variable.getRegister() == null)) {
- // Set initial value
- ConstantValue constInitValue = getConstInitValue(initValue, initializer, statementSource);
- variable.setInitValue(constInitValue);
- // Add comments to constant
- variable.setComments(ensureUnusedComments(declComments));
- } else if(!variable.isKindConstant() && !isStructMember) {
- Statement initStmt = new StatementAssignment(variable.getVariableRef(), initValue, true, statementSource, Comment.NO_COMMENTS);
- addStatement(initStmt);
- if(variable.getScope().getRef().equals(ScopeRef.ROOT)) {
- // Add comments to variable for global vars
- variable.setComments(ensureUnusedComments(declComments));
- } else {
- // Add comments to statement for local vars
- initStmt.setComments(ensureUnusedComments(declComments));
- }
+ if(effectiveType instanceof SymbolTypeProcedure) {
+ Procedure procedure = new Procedure(varName, (SymbolTypeProcedure) effectiveType, program.getScope(), currentCodeSegment, currentDataSegment, currentCallingConvention);
+ addDirectives(procedure, effectiveDirectives, declSource);
+ procedure.setComments(ensureUnusedComments(getCommentsSymbol(ctx)));
+ // TODO: Detect existing declarations and check for match!
+ program.getScope().add(procedure);
+ program.createProcedureCompilation(procedure.getRef());
+ } else {
+ VariableBuilder varBuilder = new VariableBuilder(varName, getCurrentScope(), false, effectiveType, effectiveDirectives, currentDataSegment, program.getTargetPlatform().getVariableBuilderConfig());
+ Variable variable = varBuilder.build();
+ if(isStructMember && (initializer != null))
+ throw new CompileError("Initializer not supported inside structs " + effectiveType.getTypeName(), declSource);
+ if(variable.isDeclarationOnly()) {
+ if(initializer != null) {
+ throw new CompileError("Initializer not allowed for extern variables " + varName, declSource);
+ }
+ } else {
+ // Create a proper initializer
+ if(initializer != null)
+ PrePostModifierHandler.addPreModifiers(this, initializer, declSource);
+ RValue initValue = (initializer == null) ? null : (RValue) visit(initializer);
+ initValue = Initializers.constantify(initValue, new Initializers.ValueTypeSpec(effectiveType), program, declSource);
+ boolean isPermanent = ScopeRef.ROOT.equals(variable.getScope().getRef()) || variable.isPermanent();
+ if(variable.isKindConstant() || (isPermanent && variable.isKindLoadStore() && Variable.MemoryArea.MAIN_MEMORY.equals(variable.getMemoryArea()) && initValue instanceof ConstantValue && !isStructMember && variable.getRegister() == null)) {
+ // Set initial value
+ ConstantValue constInitValue = getConstInitValue(initValue, initializer, declSource);
+ variable.setInitValue(constInitValue);
+ // Add comments to constant
+ variable.setComments(ensureUnusedComments(declComments));
+ } else if(!variable.isKindConstant() && !isStructMember) {
+ Statement initStmt = new StatementAssignment(variable.getVariableRef(), initValue, true, declSource, Comment.NO_COMMENTS);
+ addStatement(initStmt);
+ if(variable.getScope().getRef().equals(ScopeRef.ROOT)) {
+ // Add comments to variable for global vars
+ variable.setComments(ensureUnusedComments(declComments));
+ } else {
+ // Add comments to statement for local vars
+ initStmt.setComments(ensureUnusedComments(declComments));
+ }
+
+ }
+ if(initializer != null)
+ PrePostModifierHandler.addPostModifiers(this, initializer, declSource);
}
- if(initializer != null)
- PrePostModifierHandler.addPostModifiers(this, initializer, statementSource);
}
} catch(CompileError e) {
throw new CompileError(e.getMessage(), declSource);
@@ -1950,16 +1969,24 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor parameters = new ArrayList<>();
+ List paramTypes = new ArrayList<>();
+ if(ctx.parameterListDecl() != null)
+ for(KickCParser.ParameterDeclContext parameterDeclContext : ctx.parameterListDecl().parameterDecl()) {
+ varDeclPush();
+ ParameterDecl paramDecl = (ParameterDecl) this.visit(parameterDeclContext);
+ paramTypes.add(paramDecl.type);
+ parameters.add(paramDecl);
+ varDeclPop();
+ }
SymbolType returnType = varDecl.getEffectiveType();
- varDecl.setDeclType(new SymbolTypeProcedure(returnType));
+ varDecl.setDeclType(new SymbolTypeProcedure(returnType, paramTypes));
+ varDecl.setParameters(parameters);
return null;
}
- */
@Override
public Object visitTypeNamedRef(KickCParser.TypeNamedRefContext ctx) {
@@ -2004,14 +2031,6 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor