From cc05c58159efecc22b668d9447575ddfc4df8215 Mon Sep 17 00:00:00 2001
From: StefanZ3
Date: Sat, 11 May 2024 20:45:51 +0200
Subject: [PATCH] added ast methods, parameter classes
---
.idea/misc.xml | 17 +
src/main/java/ASTGenerator.java | 49 +-
src/main/java/Compiler.java | 3 +-
.../abstractSyntaxTree/Class/FieldDecl.java | 5 +-
.../abstractSyntaxTree/Class/MethodDecl.java | 8 +-
.../Parameter/Parameter.java | 13 +
.../Parameter/ParameterList.java | 13 +
src/main/java/gen/Decaf.interp | 43 +-
src/main/java/gen/Decaf.tokens | 160 +-
src/main/java/gen/DecafBaseListener.java | 143 +-
src/main/java/gen/DecafBaseVisitor.java | 84 +-
src/main/java/gen/DecafLexer.interp | 116 +-
src/main/java/gen/DecafLexer.java | 425 +--
src/main/java/gen/DecafLexer.tokens | 160 +-
src/main/java/gen/DecafListener.java | 129 +-
src/main/java/gen/DecafParser.java | 2776 ++++++++---------
src/main/java/gen/DecafVisitor.java | 77 +-
17 files changed, 2116 insertions(+), 2105 deletions(-)
create mode 100644 src/main/java/abstractSyntaxTree/Parameter/Parameter.java
create mode 100644 src/main/java/abstractSyntaxTree/Parameter/ParameterList.java
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 6ddae43..80b387d 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,21 @@
+
+
+
+
diff --git a/src/main/java/ASTGenerator.java b/src/main/java/ASTGenerator.java
index dc167ce..869ecce 100644
--- a/src/main/java/ASTGenerator.java
+++ b/src/main/java/ASTGenerator.java
@@ -1,7 +1,12 @@
+import abstractSyntaxTree.Class.FieldDecl;
import abstractSyntaxTree.Class.IClass;
+import abstractSyntaxTree.Class.MethodDecl;
import abstractSyntaxTree.Class.RefType;
import abstractSyntaxTree.Node;
+import abstractSyntaxTree.Parameter.Parameter;
+import abstractSyntaxTree.Parameter.ParameterList;
import abstractSyntaxTree.Program;
+import abstractSyntaxTree.Statement.BlockStatement;
import gen.DecafBaseVisitor;
import gen.DecafParser;
@@ -13,9 +18,49 @@ public class ASTGenerator extends DecafBaseVisitor {
public Node visitProgram(DecafParser.ProgramContext ctx) {
List classes = new ArrayList<>();
for (DecafParser.ClassdeclContext classDecl : ctx.classdecl()) {
- Node refType = new RefType(classDecl.Identifier().getText(), new ArrayList<>(), new ArrayList<>());
- classes.add((RefType) refType);
+ // Node refType = new RefType(classDecl.Identifier().getText(), new ArrayList<>(), new ArrayList<>());
+ classes.add((RefType) visit(classDecl));
}
return new Program(classes);
}
+
+ @Override
+ public Node visitClassdecl(DecafParser.ClassdeclContext ctx) {
+ List fieldDecls = new ArrayList<>();
+ List methodDecls = new ArrayList<>();
+ for (DecafParser.LocalVarDeclContext fieldDecl: ctx.localVarDecl()) {
+ fieldDecls.add((FieldDecl) visit(fieldDecl));
+ }
+ for (DecafParser.MethodDeclContext methodDecl: ctx.methodDecl()) {
+ methodDecls.add((MethodDecl) visit(methodDecl));
+ }
+ return new RefType(ctx.Identifier().getText(),fieldDecls, methodDecls);
+ }
+
+ @Override
+ public Node visitLocalVarDecl(DecafParser.LocalVarDeclContext ctx) {
+ return new FieldDecl(ctx.type().getText(), ctx.Identifier().getText());
+ }
+
+ @Override
+ public Node visitMethodDecl(DecafParser.MethodDeclContext ctx) {
+ String type;
+ String name = ctx.Identifier().getText();
+ List parameterList = new ArrayList<>();
+ if (ctx.Void() != null) {
+ type = "void";
+ } else {
+ type = ctx.type().getText();
+ }
+ DecafParser.ParameterListContext parameterListContext = ctx.parameterList();
+ for (DecafParser.ParameterContext parameter: parameterListContext.parameter()) {
+ parameterList.add((Parameter) visit(parameter));
+ }
+ return new MethodDecl("", type , name, new ParameterList(parameterList), new BlockStatement(new ArrayList<>(), "void"));
+ }
+
+ @Override
+ public Node visitParameter(DecafParser.ParameterContext ctx) {
+ return new Parameter(ctx.type().getText(), ctx.Identifier().getText());
+ }
}
diff --git a/src/main/java/Compiler.java b/src/main/java/Compiler.java
index ff0aa5b..320d575 100644
--- a/src/main/java/Compiler.java
+++ b/src/main/java/Compiler.java
@@ -1,6 +1,7 @@
import abstractSyntaxTree.Class.FieldDecl;
import abstractSyntaxTree.Class.MethodDecl;
import abstractSyntaxTree.Class.RefType;
+import abstractSyntaxTree.Parameter.ParameterList;
import abstractSyntaxTree.Program;
import abstractSyntaxTree.Statement.BlockStatement;
import gen.DecafLexer;
@@ -68,7 +69,7 @@ public class Compiler {
List methodDecls = new ArrayList<>();
- MethodDecl methodDecl = new MethodDecl("ClassA", "int", "m", new ArrayList<>(), new BlockStatement(new ArrayList<>(), "void"));
+ MethodDecl methodDecl = new MethodDecl("ClassA", "int", "m", new ParameterList(new ArrayList<>()), new BlockStatement(new ArrayList<>(), "void"));
methodDecls.add(methodDecl);
// MethodDecl methodDecl2 = new MethodDecl("ClassA", "int", "m", new ArrayList<>(), new ArrayList<>());
diff --git a/src/main/java/abstractSyntaxTree/Class/FieldDecl.java b/src/main/java/abstractSyntaxTree/Class/FieldDecl.java
index 355a9fb..11a731d 100644
--- a/src/main/java/abstractSyntaxTree/Class/FieldDecl.java
+++ b/src/main/java/abstractSyntaxTree/Class/FieldDecl.java
@@ -3,6 +3,7 @@ package abstractSyntaxTree.Class;
import TypeCheck.AbstractType;
import TypeCheck.TypeCheckHelper;
import TypeCheck.TypeCheckResult;
+import abstractSyntaxTree.Node;
import abstractSyntaxTree.Program;
import org.objectweb.asm.ClassWriter;
@@ -10,9 +11,9 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
-public class FieldDecl extends AbstractType implements IClass{
+public class FieldDecl extends AbstractType implements IClass, Node {
- public String type; // from parser
+ public String type; // from parser
public String identifier; // from parser
public FieldDecl(String type, String identifier){
diff --git a/src/main/java/abstractSyntaxTree/Class/MethodDecl.java b/src/main/java/abstractSyntaxTree/Class/MethodDecl.java
index 534bbe4..c2fbecd 100644
--- a/src/main/java/abstractSyntaxTree/Class/MethodDecl.java
+++ b/src/main/java/abstractSyntaxTree/Class/MethodDecl.java
@@ -1,6 +1,8 @@
package abstractSyntaxTree.Class;
import TypeCheck.TypeCheckResult;
+import abstractSyntaxTree.Node;
+import abstractSyntaxTree.Parameter.ParameterList;
import abstractSyntaxTree.Program;
import abstractSyntaxTree.Statement.BlockStatement;
import abstractSyntaxTree.Statement.IStatement;
@@ -10,17 +12,17 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-public class MethodDecl implements IClass {
+public class MethodDecl implements IClass, Node {
public String classThatContainsMethod;
public String name;
- public List parameters;
+ public ParameterList parameters;
public String returnType;
public BlockStatement codeBlock;
public Map localVars;
- public MethodDecl(String classThatContainsMethod, String returnType, String name, List parameters, BlockStatement codeBlock){
+ public MethodDecl(String classThatContainsMethod, String returnType, String name, ParameterList parameters, BlockStatement codeBlock){
this.classThatContainsMethod = classThatContainsMethod;
this.returnType = returnType;
this.name = name;
diff --git a/src/main/java/abstractSyntaxTree/Parameter/Parameter.java b/src/main/java/abstractSyntaxTree/Parameter/Parameter.java
new file mode 100644
index 0000000..9981905
--- /dev/null
+++ b/src/main/java/abstractSyntaxTree/Parameter/Parameter.java
@@ -0,0 +1,13 @@
+package abstractSyntaxTree.Parameter;
+
+import abstractSyntaxTree.Node;
+
+public class Parameter implements Node {
+ public String type;
+ public String identifier;
+
+ public Parameter(String type, String identifier) {
+ this.type = type;
+ this.identifier = identifier;
+ }
+}
diff --git a/src/main/java/abstractSyntaxTree/Parameter/ParameterList.java b/src/main/java/abstractSyntaxTree/Parameter/ParameterList.java
new file mode 100644
index 0000000..b3b634d
--- /dev/null
+++ b/src/main/java/abstractSyntaxTree/Parameter/ParameterList.java
@@ -0,0 +1,13 @@
+package abstractSyntaxTree.Parameter;
+
+import abstractSyntaxTree.Node;
+
+import java.util.List;
+
+public class ParameterList implements Node {
+ public List parameterList;
+
+ public ParameterList(List parameterList) {
+ this.parameterList = parameterList;
+ }
+}
diff --git a/src/main/java/gen/Decaf.interp b/src/main/java/gen/Decaf.interp
index 3b8abd6..216c5a2 100644
--- a/src/main/java/gen/Decaf.interp
+++ b/src/main/java/gen/Decaf.interp
@@ -1,7 +1,13 @@
token literal names:
null
+null
+'null'
'public'
'public static void main(String[] args)'
+'void'
+'int'
+'bool'
+'char'
null
null
null
@@ -36,20 +42,20 @@ null
'return'
'new'
null
-'void'
-'int'
-'bool'
-'char'
null
null
null
-'null'
-null
token symbolic names:
null
+BooleanValue
+NullValue
AccessModifierPublic
MainMethodDecl
+Void
+Int
+Boolean
+Char
DotOperator
LineOperator
ComparisonOperator
@@ -83,15 +89,9 @@ If
Else
Return
New
-Identifier
-Void
-Int
-Boolean
-Char
IntValue
CharValue
-BooleanValue
-NullValue
+Identifier
WS
rule names:
@@ -99,26 +99,23 @@ program
classdecl
constuctorDecl
methodDecl
-fieldDecl
parameterList
parameter
+argumentList
expression
subExpression
-assignableExpr
-instVar
methodCall
-argumentList
+statement
+stmtExpr
+assignableExpr
subReceiver
-receiver
-receivingMethod
+instVar
binaryExpr
calcExpr
dotExpr
dotSubExpr
nonCalcExpr
nonCalcOperator
-stmtExpr
-statement
returnStmt
localVarDecl
block
@@ -128,9 +125,11 @@ ifStmt
elseStmt
assign
newDecl
+receiver
+receivingMethod
type
value
atn:
-[4, 1, 45, 331, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 1, 0, 4, 0, 72, 8, 0, 11, 0, 12, 0, 73, 1, 1, 3, 1, 77, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 85, 8, 1, 10, 1, 12, 1, 88, 9, 1, 1, 1, 1, 1, 3, 1, 92, 8, 1, 1, 1, 1, 1, 1, 2, 3, 2, 97, 8, 2, 1, 2, 1, 2, 1, 2, 3, 2, 102, 8, 2, 1, 2, 1, 2, 1, 2, 1, 3, 3, 3, 108, 8, 3, 1, 3, 1, 3, 3, 3, 112, 8, 3, 1, 3, 1, 3, 1, 3, 3, 3, 117, 8, 3, 1, 3, 1, 3, 1, 3, 1, 4, 3, 4, 123, 8, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 5, 5, 132, 8, 5, 10, 5, 12, 5, 135, 9, 5, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 3, 7, 142, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 151, 8, 8, 1, 9, 1, 9, 3, 9, 155, 8, 9, 1, 10, 3, 10, 158, 8, 10, 1, 10, 5, 10, 161, 8, 10, 10, 10, 12, 10, 164, 9, 10, 1, 10, 1, 10, 1, 11, 3, 11, 169, 8, 11, 1, 11, 5, 11, 172, 8, 11, 10, 11, 12, 11, 175, 9, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 3, 12, 183, 8, 12, 1, 12, 1, 12, 1, 12, 4, 12, 188, 8, 12, 11, 12, 12, 12, 189, 3, 12, 192, 8, 12, 1, 13, 1, 13, 1, 13, 3, 13, 197, 8, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 205, 8, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 220, 8, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 228, 8, 17, 10, 17, 12, 17, 231, 9, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 239, 8, 18, 10, 18, 12, 18, 242, 9, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 252, 8, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 3, 22, 263, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 277, 8, 23, 1, 24, 1, 24, 3, 24, 281, 8, 24, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 287, 8, 25, 1, 26, 1, 26, 5, 26, 291, 8, 26, 10, 26, 12, 26, 294, 9, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 3, 28, 306, 8, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 0, 2, 34, 36, 35, 0, 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, 0, 3, 1, 0, 5, 6, 2, 0, 36, 36, 38, 40, 1, 0, 41, 44, 345, 0, 71, 1, 0, 0, 0, 2, 76, 1, 0, 0, 0, 4, 96, 1, 0, 0, 0, 6, 107, 1, 0, 0, 0, 8, 122, 1, 0, 0, 0, 10, 128, 1, 0, 0, 0, 12, 136, 1, 0, 0, 0, 14, 141, 1, 0, 0, 0, 16, 150, 1, 0, 0, 0, 18, 154, 1, 0, 0, 0, 20, 157, 1, 0, 0, 0, 22, 168, 1, 0, 0, 0, 24, 191, 1, 0, 0, 0, 26, 196, 1, 0, 0, 0, 28, 204, 1, 0, 0, 0, 30, 208, 1, 0, 0, 0, 32, 219, 1, 0, 0, 0, 34, 221, 1, 0, 0, 0, 36, 232, 1, 0, 0, 0, 38, 251, 1, 0, 0, 0, 40, 253, 1, 0, 0, 0, 42, 257, 1, 0, 0, 0, 44, 262, 1, 0, 0, 0, 46, 276, 1, 0, 0, 0, 48, 278, 1, 0, 0, 0, 50, 282, 1, 0, 0, 0, 52, 288, 1, 0, 0, 0, 54, 297, 1, 0, 0, 0, 56, 303, 1, 0, 0, 0, 58, 307, 1, 0, 0, 0, 60, 313, 1, 0, 0, 0, 62, 316, 1, 0, 0, 0, 64, 320, 1, 0, 0, 0, 66, 326, 1, 0, 0, 0, 68, 328, 1, 0, 0, 0, 70, 72, 3, 2, 1, 0, 71, 70, 1, 0, 0, 0, 72, 73, 1, 0, 0, 0, 73, 71, 1, 0, 0, 0, 73, 74, 1, 0, 0, 0, 74, 1, 1, 0, 0, 0, 75, 77, 5, 1, 0, 0, 76, 75, 1, 0, 0, 0, 76, 77, 1, 0, 0, 0, 77, 78, 1, 0, 0, 0, 78, 79, 5, 29, 0, 0, 79, 80, 5, 36, 0, 0, 80, 86, 5, 25, 0, 0, 81, 85, 3, 4, 2, 0, 82, 85, 3, 8, 4, 0, 83, 85, 3, 6, 3, 0, 84, 81, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 84, 83, 1, 0, 0, 0, 85, 88, 1, 0, 0, 0, 86, 84, 1, 0, 0, 0, 86, 87, 1, 0, 0, 0, 87, 91, 1, 0, 0, 0, 88, 86, 1, 0, 0, 0, 89, 90, 5, 2, 0, 0, 90, 92, 3, 52, 26, 0, 91, 89, 1, 0, 0, 0, 91, 92, 1, 0, 0, 0, 92, 93, 1, 0, 0, 0, 93, 94, 5, 26, 0, 0, 94, 3, 1, 0, 0, 0, 95, 97, 5, 1, 0, 0, 96, 95, 1, 0, 0, 0, 96, 97, 1, 0, 0, 0, 97, 98, 1, 0, 0, 0, 98, 99, 5, 36, 0, 0, 99, 101, 5, 23, 0, 0, 100, 102, 3, 10, 5, 0, 101, 100, 1, 0, 0, 0, 101, 102, 1, 0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 104, 5, 24, 0, 0, 104, 105, 3, 52, 26, 0, 105, 5, 1, 0, 0, 0, 106, 108, 5, 1, 0, 0, 107, 106, 1, 0, 0, 0, 107, 108, 1, 0, 0, 0, 108, 111, 1, 0, 0, 0, 109, 112, 3, 66, 33, 0, 110, 112, 5, 37, 0, 0, 111, 109, 1, 0, 0, 0, 111, 110, 1, 0, 0, 0, 112, 113, 1, 0, 0, 0, 113, 114, 5, 36, 0, 0, 114, 116, 5, 23, 0, 0, 115, 117, 3, 10, 5, 0, 116, 115, 1, 0, 0, 0, 116, 117, 1, 0, 0, 0, 117, 118, 1, 0, 0, 0, 118, 119, 5, 24, 0, 0, 119, 120, 3, 52, 26, 0, 120, 7, 1, 0, 0, 0, 121, 123, 5, 1, 0, 0, 122, 121, 1, 0, 0, 0, 122, 123, 1, 0, 0, 0, 123, 124, 1, 0, 0, 0, 124, 125, 3, 66, 33, 0, 125, 126, 5, 36, 0, 0, 126, 127, 5, 27, 0, 0, 127, 9, 1, 0, 0, 0, 128, 133, 3, 12, 6, 0, 129, 130, 5, 28, 0, 0, 130, 132, 3, 12, 6, 0, 131, 129, 1, 0, 0, 0, 132, 135, 1, 0, 0, 0, 133, 131, 1, 0, 0, 0, 133, 134, 1, 0, 0, 0, 134, 11, 1, 0, 0, 0, 135, 133, 1, 0, 0, 0, 136, 137, 3, 66, 33, 0, 137, 138, 5, 36, 0, 0, 138, 13, 1, 0, 0, 0, 139, 142, 3, 16, 8, 0, 140, 142, 3, 32, 16, 0, 141, 139, 1, 0, 0, 0, 141, 140, 1, 0, 0, 0, 142, 15, 1, 0, 0, 0, 143, 151, 5, 30, 0, 0, 144, 151, 3, 18, 9, 0, 145, 151, 3, 44, 22, 0, 146, 147, 5, 23, 0, 0, 147, 148, 3, 16, 8, 0, 148, 149, 5, 24, 0, 0, 149, 151, 1, 0, 0, 0, 150, 143, 1, 0, 0, 0, 150, 144, 1, 0, 0, 0, 150, 145, 1, 0, 0, 0, 150, 146, 1, 0, 0, 0, 151, 17, 1, 0, 0, 0, 152, 155, 5, 36, 0, 0, 153, 155, 3, 20, 10, 0, 154, 152, 1, 0, 0, 0, 154, 153, 1, 0, 0, 0, 155, 19, 1, 0, 0, 0, 156, 158, 3, 26, 13, 0, 157, 156, 1, 0, 0, 0, 157, 158, 1, 0, 0, 0, 158, 162, 1, 0, 0, 0, 159, 161, 3, 30, 15, 0, 160, 159, 1, 0, 0, 0, 161, 164, 1, 0, 0, 0, 162, 160, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 1, 0, 0, 0, 164, 162, 1, 0, 0, 0, 165, 166, 5, 36, 0, 0, 166, 21, 1, 0, 0, 0, 167, 169, 3, 28, 14, 0, 168, 167, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 173, 1, 0, 0, 0, 170, 172, 3, 30, 15, 0, 171, 170, 1, 0, 0, 0, 172, 175, 1, 0, 0, 0, 173, 171, 1, 0, 0, 0, 173, 174, 1, 0, 0, 0, 174, 176, 1, 0, 0, 0, 175, 173, 1, 0, 0, 0, 176, 177, 5, 36, 0, 0, 177, 178, 5, 23, 0, 0, 178, 179, 3, 24, 12, 0, 179, 180, 5, 24, 0, 0, 180, 23, 1, 0, 0, 0, 181, 183, 3, 14, 7, 0, 182, 181, 1, 0, 0, 0, 182, 183, 1, 0, 0, 0, 183, 192, 1, 0, 0, 0, 184, 187, 3, 14, 7, 0, 185, 186, 5, 28, 0, 0, 186, 188, 3, 14, 7, 0, 187, 185, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 187, 1, 0, 0, 0, 189, 190, 1, 0, 0, 0, 190, 192, 1, 0, 0, 0, 191, 182, 1, 0, 0, 0, 191, 184, 1, 0, 0, 0, 192, 25, 1, 0, 0, 0, 193, 197, 5, 30, 0, 0, 194, 197, 3, 64, 32, 0, 195, 197, 5, 36, 0, 0, 196, 193, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 196, 195, 1, 0, 0, 0, 197, 198, 1, 0, 0, 0, 198, 199, 5, 22, 0, 0, 199, 27, 1, 0, 0, 0, 200, 205, 5, 30, 0, 0, 201, 205, 3, 20, 10, 0, 202, 205, 3, 64, 32, 0, 203, 205, 5, 36, 0, 0, 204, 200, 1, 0, 0, 0, 204, 201, 1, 0, 0, 0, 204, 202, 1, 0, 0, 0, 204, 203, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 207, 5, 22, 0, 0, 207, 29, 1, 0, 0, 0, 208, 209, 5, 36, 0, 0, 209, 210, 5, 23, 0, 0, 210, 211, 3, 24, 12, 0, 211, 212, 5, 24, 0, 0, 212, 213, 5, 22, 0, 0, 213, 31, 1, 0, 0, 0, 214, 220, 3, 34, 17, 0, 215, 220, 3, 40, 20, 0, 216, 220, 3, 68, 34, 0, 217, 218, 5, 19, 0, 0, 218, 220, 3, 32, 16, 0, 219, 214, 1, 0, 0, 0, 219, 215, 1, 0, 0, 0, 219, 216, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 220, 33, 1, 0, 0, 0, 221, 222, 6, 17, -1, 0, 222, 223, 3, 36, 18, 0, 223, 229, 1, 0, 0, 0, 224, 225, 10, 2, 0, 0, 225, 226, 5, 4, 0, 0, 226, 228, 3, 36, 18, 0, 227, 224, 1, 0, 0, 0, 228, 231, 1, 0, 0, 0, 229, 227, 1, 0, 0, 0, 229, 230, 1, 0, 0, 0, 230, 35, 1, 0, 0, 0, 231, 229, 1, 0, 0, 0, 232, 233, 6, 18, -1, 0, 233, 234, 3, 38, 19, 0, 234, 240, 1, 0, 0, 0, 235, 236, 10, 2, 0, 0, 236, 237, 5, 3, 0, 0, 237, 239, 3, 38, 19, 0, 238, 235, 1, 0, 0, 0, 239, 242, 1, 0, 0, 0, 240, 238, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 37, 1, 0, 0, 0, 242, 240, 1, 0, 0, 0, 243, 252, 5, 41, 0, 0, 244, 252, 5, 36, 0, 0, 245, 252, 3, 20, 10, 0, 246, 252, 3, 22, 11, 0, 247, 248, 5, 23, 0, 0, 248, 249, 3, 34, 17, 0, 249, 250, 5, 24, 0, 0, 250, 252, 1, 0, 0, 0, 251, 243, 1, 0, 0, 0, 251, 244, 1, 0, 0, 0, 251, 245, 1, 0, 0, 0, 251, 246, 1, 0, 0, 0, 251, 247, 1, 0, 0, 0, 252, 39, 1, 0, 0, 0, 253, 254, 3, 16, 8, 0, 254, 255, 3, 42, 21, 0, 255, 256, 3, 14, 7, 0, 256, 41, 1, 0, 0, 0, 257, 258, 7, 0, 0, 0, 258, 43, 1, 0, 0, 0, 259, 263, 3, 62, 31, 0, 260, 263, 3, 64, 32, 0, 261, 263, 3, 22, 11, 0, 262, 259, 1, 0, 0, 0, 262, 260, 1, 0, 0, 0, 262, 261, 1, 0, 0, 0, 263, 45, 1, 0, 0, 0, 264, 265, 3, 48, 24, 0, 265, 266, 5, 27, 0, 0, 266, 277, 1, 0, 0, 0, 267, 268, 3, 50, 25, 0, 268, 269, 5, 27, 0, 0, 269, 277, 1, 0, 0, 0, 270, 277, 3, 52, 26, 0, 271, 277, 3, 54, 27, 0, 272, 277, 3, 56, 28, 0, 273, 274, 3, 44, 22, 0, 274, 275, 5, 27, 0, 0, 275, 277, 1, 0, 0, 0, 276, 264, 1, 0, 0, 0, 276, 267, 1, 0, 0, 0, 276, 270, 1, 0, 0, 0, 276, 271, 1, 0, 0, 0, 276, 272, 1, 0, 0, 0, 276, 273, 1, 0, 0, 0, 277, 47, 1, 0, 0, 0, 278, 280, 5, 34, 0, 0, 279, 281, 3, 14, 7, 0, 280, 279, 1, 0, 0, 0, 280, 281, 1, 0, 0, 0, 281, 49, 1, 0, 0, 0, 282, 283, 3, 66, 33, 0, 283, 286, 5, 36, 0, 0, 284, 285, 5, 7, 0, 0, 285, 287, 3, 14, 7, 0, 286, 284, 1, 0, 0, 0, 286, 287, 1, 0, 0, 0, 287, 51, 1, 0, 0, 0, 288, 292, 5, 25, 0, 0, 289, 291, 3, 46, 23, 0, 290, 289, 1, 0, 0, 0, 291, 294, 1, 0, 0, 0, 292, 290, 1, 0, 0, 0, 292, 293, 1, 0, 0, 0, 293, 295, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 295, 296, 5, 26, 0, 0, 296, 53, 1, 0, 0, 0, 297, 298, 5, 31, 0, 0, 298, 299, 5, 23, 0, 0, 299, 300, 3, 14, 7, 0, 300, 301, 5, 24, 0, 0, 301, 302, 3, 46, 23, 0, 302, 55, 1, 0, 0, 0, 303, 305, 3, 58, 29, 0, 304, 306, 3, 60, 30, 0, 305, 304, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 57, 1, 0, 0, 0, 307, 308, 5, 32, 0, 0, 308, 309, 5, 23, 0, 0, 309, 310, 3, 14, 7, 0, 310, 311, 5, 24, 0, 0, 311, 312, 3, 46, 23, 0, 312, 59, 1, 0, 0, 0, 313, 314, 5, 33, 0, 0, 314, 315, 3, 46, 23, 0, 315, 61, 1, 0, 0, 0, 316, 317, 3, 18, 9, 0, 317, 318, 5, 7, 0, 0, 318, 319, 3, 14, 7, 0, 319, 63, 1, 0, 0, 0, 320, 321, 5, 35, 0, 0, 321, 322, 5, 36, 0, 0, 322, 323, 5, 23, 0, 0, 323, 324, 3, 24, 12, 0, 324, 325, 5, 24, 0, 0, 325, 65, 1, 0, 0, 0, 326, 327, 7, 1, 0, 0, 327, 67, 1, 0, 0, 0, 328, 329, 7, 2, 0, 0, 329, 69, 1, 0, 0, 0, 34, 73, 76, 84, 86, 91, 96, 101, 107, 111, 116, 122, 133, 141, 150, 154, 157, 162, 168, 173, 182, 189, 191, 196, 204, 219, 229, 240, 251, 262, 276, 280, 286, 292, 305]
\ No newline at end of file
+[4, 1, 45, 327, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 1, 0, 4, 0, 70, 8, 0, 11, 0, 12, 0, 71, 1, 1, 3, 1, 75, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 83, 8, 1, 10, 1, 12, 1, 86, 9, 1, 1, 1, 1, 1, 3, 1, 90, 8, 1, 1, 1, 1, 1, 1, 2, 3, 2, 95, 8, 2, 1, 2, 1, 2, 1, 2, 3, 2, 100, 8, 2, 1, 2, 1, 2, 1, 2, 1, 3, 3, 3, 106, 8, 3, 1, 3, 1, 3, 3, 3, 110, 8, 3, 1, 3, 1, 3, 1, 3, 3, 3, 115, 8, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 5, 4, 123, 8, 4, 10, 4, 12, 4, 126, 9, 4, 1, 5, 1, 5, 1, 5, 1, 6, 3, 6, 132, 8, 6, 1, 6, 1, 6, 1, 6, 4, 6, 137, 8, 6, 11, 6, 12, 6, 138, 3, 6, 141, 8, 6, 1, 7, 1, 7, 3, 7, 145, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 154, 8, 8, 1, 9, 3, 9, 157, 8, 9, 1, 9, 5, 9, 160, 8, 9, 10, 9, 12, 9, 163, 9, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 182, 8, 10, 1, 11, 1, 11, 1, 11, 3, 11, 187, 8, 11, 1, 12, 1, 12, 3, 12, 191, 8, 12, 1, 13, 1, 13, 1, 13, 3, 13, 196, 8, 13, 1, 13, 1, 13, 1, 14, 3, 14, 201, 8, 14, 1, 14, 5, 14, 204, 8, 14, 10, 14, 12, 14, 207, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 216, 8, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 5, 16, 224, 8, 16, 10, 16, 12, 16, 227, 9, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 235, 8, 17, 10, 17, 12, 17, 238, 9, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 248, 8, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 21, 1, 21, 3, 21, 258, 8, 21, 1, 22, 3, 22, 261, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 267, 8, 22, 1, 22, 1, 22, 1, 23, 1, 23, 5, 23, 273, 8, 23, 10, 23, 12, 23, 276, 9, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 3, 25, 288, 8, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 3, 30, 313, 8, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 0, 2, 32, 34, 34, 0, 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, 0, 3, 1, 0, 11, 12, 2, 0, 6, 8, 44, 44, 2, 0, 1, 2, 42, 43, 342, 0, 69, 1, 0, 0, 0, 2, 74, 1, 0, 0, 0, 4, 94, 1, 0, 0, 0, 6, 105, 1, 0, 0, 0, 8, 119, 1, 0, 0, 0, 10, 127, 1, 0, 0, 0, 12, 140, 1, 0, 0, 0, 14, 144, 1, 0, 0, 0, 16, 153, 1, 0, 0, 0, 18, 156, 1, 0, 0, 0, 20, 181, 1, 0, 0, 0, 22, 186, 1, 0, 0, 0, 24, 190, 1, 0, 0, 0, 26, 195, 1, 0, 0, 0, 28, 200, 1, 0, 0, 0, 30, 215, 1, 0, 0, 0, 32, 217, 1, 0, 0, 0, 34, 228, 1, 0, 0, 0, 36, 247, 1, 0, 0, 0, 38, 249, 1, 0, 0, 0, 40, 253, 1, 0, 0, 0, 42, 255, 1, 0, 0, 0, 44, 260, 1, 0, 0, 0, 46, 270, 1, 0, 0, 0, 48, 279, 1, 0, 0, 0, 50, 285, 1, 0, 0, 0, 52, 289, 1, 0, 0, 0, 54, 295, 1, 0, 0, 0, 56, 298, 1, 0, 0, 0, 58, 302, 1, 0, 0, 0, 60, 312, 1, 0, 0, 0, 62, 316, 1, 0, 0, 0, 64, 322, 1, 0, 0, 0, 66, 324, 1, 0, 0, 0, 68, 70, 3, 2, 1, 0, 69, 68, 1, 0, 0, 0, 70, 71, 1, 0, 0, 0, 71, 69, 1, 0, 0, 0, 71, 72, 1, 0, 0, 0, 72, 1, 1, 0, 0, 0, 73, 75, 5, 3, 0, 0, 74, 73, 1, 0, 0, 0, 74, 75, 1, 0, 0, 0, 75, 76, 1, 0, 0, 0, 76, 77, 5, 35, 0, 0, 77, 78, 5, 44, 0, 0, 78, 84, 5, 31, 0, 0, 79, 83, 3, 4, 2, 0, 80, 83, 3, 44, 22, 0, 81, 83, 3, 6, 3, 0, 82, 79, 1, 0, 0, 0, 82, 80, 1, 0, 0, 0, 82, 81, 1, 0, 0, 0, 83, 86, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 84, 85, 1, 0, 0, 0, 85, 89, 1, 0, 0, 0, 86, 84, 1, 0, 0, 0, 87, 88, 5, 4, 0, 0, 88, 90, 3, 46, 23, 0, 89, 87, 1, 0, 0, 0, 89, 90, 1, 0, 0, 0, 90, 91, 1, 0, 0, 0, 91, 92, 5, 32, 0, 0, 92, 3, 1, 0, 0, 0, 93, 95, 5, 3, 0, 0, 94, 93, 1, 0, 0, 0, 94, 95, 1, 0, 0, 0, 95, 96, 1, 0, 0, 0, 96, 97, 5, 44, 0, 0, 97, 99, 5, 29, 0, 0, 98, 100, 3, 8, 4, 0, 99, 98, 1, 0, 0, 0, 99, 100, 1, 0, 0, 0, 100, 101, 1, 0, 0, 0, 101, 102, 5, 30, 0, 0, 102, 103, 3, 46, 23, 0, 103, 5, 1, 0, 0, 0, 104, 106, 5, 3, 0, 0, 105, 104, 1, 0, 0, 0, 105, 106, 1, 0, 0, 0, 106, 109, 1, 0, 0, 0, 107, 110, 3, 64, 32, 0, 108, 110, 5, 5, 0, 0, 109, 107, 1, 0, 0, 0, 109, 108, 1, 0, 0, 0, 110, 111, 1, 0, 0, 0, 111, 112, 5, 44, 0, 0, 112, 114, 5, 29, 0, 0, 113, 115, 3, 8, 4, 0, 114, 113, 1, 0, 0, 0, 114, 115, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 117, 5, 30, 0, 0, 117, 118, 3, 46, 23, 0, 118, 7, 1, 0, 0, 0, 119, 124, 3, 10, 5, 0, 120, 121, 5, 34, 0, 0, 121, 123, 3, 10, 5, 0, 122, 120, 1, 0, 0, 0, 123, 126, 1, 0, 0, 0, 124, 122, 1, 0, 0, 0, 124, 125, 1, 0, 0, 0, 125, 9, 1, 0, 0, 0, 126, 124, 1, 0, 0, 0, 127, 128, 3, 64, 32, 0, 128, 129, 5, 44, 0, 0, 129, 11, 1, 0, 0, 0, 130, 132, 3, 14, 7, 0, 131, 130, 1, 0, 0, 0, 131, 132, 1, 0, 0, 0, 132, 141, 1, 0, 0, 0, 133, 136, 3, 14, 7, 0, 134, 135, 5, 34, 0, 0, 135, 137, 3, 14, 7, 0, 136, 134, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 136, 1, 0, 0, 0, 138, 139, 1, 0, 0, 0, 139, 141, 1, 0, 0, 0, 140, 131, 1, 0, 0, 0, 140, 133, 1, 0, 0, 0, 141, 13, 1, 0, 0, 0, 142, 145, 3, 16, 8, 0, 143, 145, 3, 30, 15, 0, 144, 142, 1, 0, 0, 0, 144, 143, 1, 0, 0, 0, 145, 15, 1, 0, 0, 0, 146, 154, 5, 36, 0, 0, 147, 154, 3, 24, 12, 0, 148, 154, 3, 22, 11, 0, 149, 150, 5, 29, 0, 0, 150, 151, 3, 16, 8, 0, 151, 152, 5, 30, 0, 0, 152, 154, 1, 0, 0, 0, 153, 146, 1, 0, 0, 0, 153, 147, 1, 0, 0, 0, 153, 148, 1, 0, 0, 0, 153, 149, 1, 0, 0, 0, 154, 17, 1, 0, 0, 0, 155, 157, 3, 60, 30, 0, 156, 155, 1, 0, 0, 0, 156, 157, 1, 0, 0, 0, 157, 161, 1, 0, 0, 0, 158, 160, 3, 62, 31, 0, 159, 158, 1, 0, 0, 0, 160, 163, 1, 0, 0, 0, 161, 159, 1, 0, 0, 0, 161, 162, 1, 0, 0, 0, 162, 164, 1, 0, 0, 0, 163, 161, 1, 0, 0, 0, 164, 165, 5, 44, 0, 0, 165, 166, 5, 29, 0, 0, 166, 167, 3, 12, 6, 0, 167, 168, 5, 30, 0, 0, 168, 19, 1, 0, 0, 0, 169, 170, 3, 42, 21, 0, 170, 171, 5, 33, 0, 0, 171, 182, 1, 0, 0, 0, 172, 173, 3, 44, 22, 0, 173, 174, 5, 33, 0, 0, 174, 182, 1, 0, 0, 0, 175, 182, 3, 46, 23, 0, 176, 182, 3, 48, 24, 0, 177, 182, 3, 50, 25, 0, 178, 179, 3, 22, 11, 0, 179, 180, 5, 33, 0, 0, 180, 182, 1, 0, 0, 0, 181, 169, 1, 0, 0, 0, 181, 172, 1, 0, 0, 0, 181, 175, 1, 0, 0, 0, 181, 176, 1, 0, 0, 0, 181, 177, 1, 0, 0, 0, 181, 178, 1, 0, 0, 0, 182, 21, 1, 0, 0, 0, 183, 187, 3, 56, 28, 0, 184, 187, 3, 58, 29, 0, 185, 187, 3, 18, 9, 0, 186, 183, 1, 0, 0, 0, 186, 184, 1, 0, 0, 0, 186, 185, 1, 0, 0, 0, 187, 23, 1, 0, 0, 0, 188, 191, 5, 44, 0, 0, 189, 191, 3, 28, 14, 0, 190, 188, 1, 0, 0, 0, 190, 189, 1, 0, 0, 0, 191, 25, 1, 0, 0, 0, 192, 196, 5, 36, 0, 0, 193, 196, 3, 58, 29, 0, 194, 196, 5, 44, 0, 0, 195, 192, 1, 0, 0, 0, 195, 193, 1, 0, 0, 0, 195, 194, 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197, 198, 5, 28, 0, 0, 198, 27, 1, 0, 0, 0, 199, 201, 3, 26, 13, 0, 200, 199, 1, 0, 0, 0, 200, 201, 1, 0, 0, 0, 201, 205, 1, 0, 0, 0, 202, 204, 3, 62, 31, 0, 203, 202, 1, 0, 0, 0, 204, 207, 1, 0, 0, 0, 205, 203, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 208, 1, 0, 0, 0, 207, 205, 1, 0, 0, 0, 208, 209, 5, 44, 0, 0, 209, 29, 1, 0, 0, 0, 210, 216, 3, 32, 16, 0, 211, 216, 3, 38, 19, 0, 212, 216, 3, 66, 33, 0, 213, 214, 5, 25, 0, 0, 214, 216, 3, 30, 15, 0, 215, 210, 1, 0, 0, 0, 215, 211, 1, 0, 0, 0, 215, 212, 1, 0, 0, 0, 215, 213, 1, 0, 0, 0, 216, 31, 1, 0, 0, 0, 217, 218, 6, 16, -1, 0, 218, 219, 3, 34, 17, 0, 219, 225, 1, 0, 0, 0, 220, 221, 10, 2, 0, 0, 221, 222, 5, 10, 0, 0, 222, 224, 3, 34, 17, 0, 223, 220, 1, 0, 0, 0, 224, 227, 1, 0, 0, 0, 225, 223, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 33, 1, 0, 0, 0, 227, 225, 1, 0, 0, 0, 228, 229, 6, 17, -1, 0, 229, 230, 3, 36, 18, 0, 230, 236, 1, 0, 0, 0, 231, 232, 10, 2, 0, 0, 232, 233, 5, 9, 0, 0, 233, 235, 3, 36, 18, 0, 234, 231, 1, 0, 0, 0, 235, 238, 1, 0, 0, 0, 236, 234, 1, 0, 0, 0, 236, 237, 1, 0, 0, 0, 237, 35, 1, 0, 0, 0, 238, 236, 1, 0, 0, 0, 239, 248, 5, 42, 0, 0, 240, 248, 5, 44, 0, 0, 241, 248, 3, 28, 14, 0, 242, 248, 3, 18, 9, 0, 243, 244, 5, 29, 0, 0, 244, 245, 3, 32, 16, 0, 245, 246, 5, 30, 0, 0, 246, 248, 1, 0, 0, 0, 247, 239, 1, 0, 0, 0, 247, 240, 1, 0, 0, 0, 247, 241, 1, 0, 0, 0, 247, 242, 1, 0, 0, 0, 247, 243, 1, 0, 0, 0, 248, 37, 1, 0, 0, 0, 249, 250, 3, 16, 8, 0, 250, 251, 3, 40, 20, 0, 251, 252, 3, 14, 7, 0, 252, 39, 1, 0, 0, 0, 253, 254, 7, 0, 0, 0, 254, 41, 1, 0, 0, 0, 255, 257, 5, 40, 0, 0, 256, 258, 3, 14, 7, 0, 257, 256, 1, 0, 0, 0, 257, 258, 1, 0, 0, 0, 258, 43, 1, 0, 0, 0, 259, 261, 5, 3, 0, 0, 260, 259, 1, 0, 0, 0, 260, 261, 1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 263, 3, 64, 32, 0, 263, 266, 5, 44, 0, 0, 264, 265, 5, 13, 0, 0, 265, 267, 3, 14, 7, 0, 266, 264, 1, 0, 0, 0, 266, 267, 1, 0, 0, 0, 267, 268, 1, 0, 0, 0, 268, 269, 5, 33, 0, 0, 269, 45, 1, 0, 0, 0, 270, 274, 5, 31, 0, 0, 271, 273, 3, 20, 10, 0, 272, 271, 1, 0, 0, 0, 273, 276, 1, 0, 0, 0, 274, 272, 1, 0, 0, 0, 274, 275, 1, 0, 0, 0, 275, 277, 1, 0, 0, 0, 276, 274, 1, 0, 0, 0, 277, 278, 5, 32, 0, 0, 278, 47, 1, 0, 0, 0, 279, 280, 5, 37, 0, 0, 280, 281, 5, 29, 0, 0, 281, 282, 3, 14, 7, 0, 282, 283, 5, 30, 0, 0, 283, 284, 3, 20, 10, 0, 284, 49, 1, 0, 0, 0, 285, 287, 3, 52, 26, 0, 286, 288, 3, 54, 27, 0, 287, 286, 1, 0, 0, 0, 287, 288, 1, 0, 0, 0, 288, 51, 1, 0, 0, 0, 289, 290, 5, 38, 0, 0, 290, 291, 5, 29, 0, 0, 291, 292, 3, 14, 7, 0, 292, 293, 5, 30, 0, 0, 293, 294, 3, 20, 10, 0, 294, 53, 1, 0, 0, 0, 295, 296, 5, 39, 0, 0, 296, 297, 3, 20, 10, 0, 297, 55, 1, 0, 0, 0, 298, 299, 3, 24, 12, 0, 299, 300, 5, 13, 0, 0, 300, 301, 3, 14, 7, 0, 301, 57, 1, 0, 0, 0, 302, 303, 5, 41, 0, 0, 303, 304, 5, 44, 0, 0, 304, 305, 5, 29, 0, 0, 305, 306, 3, 12, 6, 0, 306, 307, 5, 30, 0, 0, 307, 59, 1, 0, 0, 0, 308, 313, 5, 36, 0, 0, 309, 313, 3, 28, 14, 0, 310, 313, 3, 58, 29, 0, 311, 313, 5, 44, 0, 0, 312, 308, 1, 0, 0, 0, 312, 309, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 312, 311, 1, 0, 0, 0, 313, 314, 1, 0, 0, 0, 314, 315, 5, 28, 0, 0, 315, 61, 1, 0, 0, 0, 316, 317, 5, 44, 0, 0, 317, 318, 5, 29, 0, 0, 318, 319, 3, 12, 6, 0, 319, 320, 5, 30, 0, 0, 320, 321, 5, 28, 0, 0, 321, 63, 1, 0, 0, 0, 322, 323, 7, 1, 0, 0, 323, 65, 1, 0, 0, 0, 324, 325, 7, 2, 0, 0, 325, 67, 1, 0, 0, 0, 34, 71, 74, 82, 84, 89, 94, 99, 105, 109, 114, 124, 131, 138, 140, 144, 153, 156, 161, 181, 186, 190, 195, 200, 205, 215, 225, 236, 247, 257, 260, 266, 274, 287, 312]
\ No newline at end of file
diff --git a/src/main/java/gen/Decaf.tokens b/src/main/java/gen/Decaf.tokens
index 6873c36..bd7816d 100644
--- a/src/main/java/gen/Decaf.tokens
+++ b/src/main/java/gen/Decaf.tokens
@@ -1,81 +1,81 @@
-AccessModifierPublic=1
-MainMethodDecl=2
-DotOperator=3
-LineOperator=4
-ComparisonOperator=5
-LogicalOpertor=6
-Assign=7
-Minus=8
-Plus=9
-Multipilkation=10
-Division=11
-Modulo=12
-Greater=13
-Less=14
-GreaterEqual=15
-LessEqual=16
-Equal=17
-NotEqual=18
-Not=19
-And=20
-Or=21
-Dot=22
-OpenRoundBracket=23
-ClosedRoundBracket=24
-OpenCurlyBracket=25
-ClosedCurlyBracket=26
-Semicolon=27
-Comma=28
-Class=29
-This=30
-While=31
-If=32
-Else=33
-Return=34
-New=35
-Identifier=36
-Void=37
-Int=38
-Boolean=39
-Char=40
-IntValue=41
-CharValue=42
-BooleanValue=43
-NullValue=44
+BooleanValue=1
+NullValue=2
+AccessModifierPublic=3
+MainMethodDecl=4
+Void=5
+Int=6
+Boolean=7
+Char=8
+DotOperator=9
+LineOperator=10
+ComparisonOperator=11
+LogicalOpertor=12
+Assign=13
+Minus=14
+Plus=15
+Multipilkation=16
+Division=17
+Modulo=18
+Greater=19
+Less=20
+GreaterEqual=21
+LessEqual=22
+Equal=23
+NotEqual=24
+Not=25
+And=26
+Or=27
+Dot=28
+OpenRoundBracket=29
+ClosedRoundBracket=30
+OpenCurlyBracket=31
+ClosedCurlyBracket=32
+Semicolon=33
+Comma=34
+Class=35
+This=36
+While=37
+If=38
+Else=39
+Return=40
+New=41
+IntValue=42
+CharValue=43
+Identifier=44
WS=45
-'public'=1
-'public static void main(String[] args)'=2
-'='=7
-'-'=8
-'+'=9
-'*'=10
-'/'=11
-'%'=12
-'>'=13
-'<'=14
-'>='=15
-'<='=16
-'=='=17
-'!='=18
-'!'=19
-'&&'=20
-'||'=21
-'.'=22
-'('=23
-')'=24
-'{'=25
-'}'=26
-';'=27
-','=28
-'class'=29
-'this'=30
-'while'=31
-'if'=32
-'else'=33
-'return'=34
-'new'=35
-'void'=37
-'int'=38
-'bool'=39
-'char'=40
-'null'=44
+'null'=2
+'public'=3
+'public static void main(String[] args)'=4
+'void'=5
+'int'=6
+'bool'=7
+'char'=8
+'='=13
+'-'=14
+'+'=15
+'*'=16
+'/'=17
+'%'=18
+'>'=19
+'<'=20
+'>='=21
+'<='=22
+'=='=23
+'!='=24
+'!'=25
+'&&'=26
+'||'=27
+'.'=28
+'('=29
+')'=30
+'{'=31
+'}'=32
+';'=33
+','=34
+'class'=35
+'this'=36
+'while'=37
+'if'=38
+'else'=39
+'return'=40
+'new'=41
diff --git a/src/main/java/gen/DecafBaseListener.java b/src/main/java/gen/DecafBaseListener.java
index 59f157f..8fe7173 100644
--- a/src/main/java/gen/DecafBaseListener.java
+++ b/src/main/java/gen/DecafBaseListener.java
@@ -1,4 +1,5 @@
-package gen;// Generated from C:/Users/dh10krj/OneDrive - Durr Group/Dokumente/S4/Compilerbau/projekt/NichtHaskell/Source/Decaf.g4 by ANTLR 4.13.1
+// Generated from C:/Users/User/DHBW/Compiler/src/main/java/Decaf.g4 by ANTLR 4.13.1
+package gen;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
@@ -59,18 +60,6 @@ public class DecafBaseListener implements DecafListener {
* The default implementation does nothing.
*/
@Override public void exitMethodDecl(DecafParser.MethodDeclContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterFieldDecl(DecafParser.FieldDeclContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitFieldDecl(DecafParser.FieldDeclContext ctx) { }
/**
* {@inheritDoc}
*
@@ -95,6 +84,18 @@ public class DecafBaseListener implements DecafListener {
* The default implementation does nothing.
*/
@Override public void exitParameter(DecafParser.ParameterContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterArgumentList(DecafParser.ArgumentListContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitArgumentList(DecafParser.ArgumentListContext ctx) { }
/**
* {@inheritDoc}
*
@@ -119,30 +120,6 @@ public class DecafBaseListener implements DecafListener {
* The default implementation does nothing.
*/
@Override public void exitSubExpression(DecafParser.SubExpressionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterAssignableExpr(DecafParser.AssignableExprContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitAssignableExpr(DecafParser.AssignableExprContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterInstVar(DecafParser.InstVarContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitInstVar(DecafParser.InstVarContext ctx) { }
/**
* {@inheritDoc}
*
@@ -160,13 +137,37 @@ public class DecafBaseListener implements DecafListener {
*
* The default implementation does nothing.
*/
- @Override public void enterArgumentList(DecafParser.ArgumentListContext ctx) { }
+ @Override public void enterStatement(DecafParser.StatementContext ctx) { }
/**
* {@inheritDoc}
*
* The default implementation does nothing.
*/
- @Override public void exitArgumentList(DecafParser.ArgumentListContext ctx) { }
+ @Override public void exitStatement(DecafParser.StatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterStmtExpr(DecafParser.StmtExprContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitStmtExpr(DecafParser.StmtExprContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterAssignableExpr(DecafParser.AssignableExprContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitAssignableExpr(DecafParser.AssignableExprContext ctx) { }
/**
* {@inheritDoc}
*
@@ -184,25 +185,13 @@ public class DecafBaseListener implements DecafListener {
*
* The default implementation does nothing.
*/
- @Override public void enterReceiver(DecafParser.ReceiverContext ctx) { }
+ @Override public void enterInstVar(DecafParser.InstVarContext ctx) { }
/**
* {@inheritDoc}
*
* The default implementation does nothing.
*/
- @Override public void exitReceiver(DecafParser.ReceiverContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterReceivingMethod(DecafParser.ReceivingMethodContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitReceivingMethod(DecafParser.ReceivingMethodContext ctx) { }
+ @Override public void exitInstVar(DecafParser.InstVarContext ctx) { }
/**
* {@inheritDoc}
*
@@ -275,30 +264,6 @@ public class DecafBaseListener implements DecafListener {
* The default implementation does nothing.
*/
@Override public void exitNonCalcOperator(DecafParser.NonCalcOperatorContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterStmtExpr(DecafParser.StmtExprContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitStmtExpr(DecafParser.StmtExprContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterStatement(DecafParser.StatementContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitStatement(DecafParser.StatementContext ctx) { }
/**
* {@inheritDoc}
*
@@ -407,6 +372,30 @@ public class DecafBaseListener implements DecafListener {
* The default implementation does nothing.
*/
@Override public void exitNewDecl(DecafParser.NewDeclContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterReceiver(DecafParser.ReceiverContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitReceiver(DecafParser.ReceiverContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterReceivingMethod(DecafParser.ReceivingMethodContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitReceivingMethod(DecafParser.ReceivingMethodContext ctx) { }
/**
* {@inheritDoc}
*
diff --git a/src/main/java/gen/DecafBaseVisitor.java b/src/main/java/gen/DecafBaseVisitor.java
index 9bd240e..7af57fe 100644
--- a/src/main/java/gen/DecafBaseVisitor.java
+++ b/src/main/java/gen/DecafBaseVisitor.java
@@ -1,4 +1,5 @@
-package gen;// Generated from C:/Users/dh10krj/OneDrive - Durr Group/Dokumente/S4/Compilerbau/projekt/NichtHaskell/Source/Decaf.g4 by ANTLR 4.13.1
+// Generated from C:/Users/User/DHBW/Compiler/src/main/java/Decaf.g4 by ANTLR 4.13.1
+package gen;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
@@ -39,13 +40,6 @@ public class DecafBaseVisitor extends AbstractParseTreeVisitor implements
* {@link #visitChildren} on {@code ctx}.
*/
@Override public T visitMethodDecl(DecafParser.MethodDeclContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitFieldDecl(DecafParser.FieldDeclContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -60,6 +54,13 @@ public class DecafBaseVisitor extends AbstractParseTreeVisitor implements
* {@link #visitChildren} on {@code ctx}.
*/
@Override public T visitParameter(DecafParser.ParameterContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitArgumentList(DecafParser.ArgumentListContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -74,20 +75,6 @@ public class DecafBaseVisitor extends AbstractParseTreeVisitor implements
* {@link #visitChildren} on {@code ctx}.
*/
@Override public T visitSubExpression(DecafParser.SubExpressionContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitAssignableExpr(DecafParser.AssignableExprContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitInstVar(DecafParser.InstVarContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -101,7 +88,21 @@ public class DecafBaseVisitor extends AbstractParseTreeVisitor implements
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*/
- @Override public T visitArgumentList(DecafParser.ArgumentListContext ctx) { return visitChildren(ctx); }
+ @Override public T visitStatement(DecafParser.StatementContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitStmtExpr(DecafParser.StmtExprContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitAssignableExpr(DecafParser.AssignableExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -115,14 +116,7 @@ public class DecafBaseVisitor extends AbstractParseTreeVisitor implements
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*/
- @Override public T visitReceiver(DecafParser.ReceiverContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitReceivingMethod(DecafParser.ReceivingMethodContext ctx) { return visitChildren(ctx); }
+ @Override public T visitInstVar(DecafParser.InstVarContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -165,20 +159,6 @@ public class DecafBaseVisitor extends AbstractParseTreeVisitor implements
* {@link #visitChildren} on {@code ctx}.
*/
@Override public T visitNonCalcOperator(DecafParser.NonCalcOperatorContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitStmtExpr(DecafParser.StmtExprContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitStatement(DecafParser.StatementContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
@@ -242,6 +222,20 @@ public class DecafBaseVisitor extends AbstractParseTreeVisitor implements
* {@link #visitChildren} on {@code ctx}.
*/
@Override public T visitNewDecl(DecafParser.NewDeclContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitReceiver(DecafParser.ReceiverContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitReceivingMethod(DecafParser.ReceivingMethodContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
diff --git a/src/main/java/gen/DecafLexer.interp b/src/main/java/gen/DecafLexer.interp
index cf85022..fdb7efd 100644
--- a/src/main/java/gen/DecafLexer.interp
+++ b/src/main/java/gen/DecafLexer.interp
@@ -1,7 +1,13 @@
token literal names:
null
+null
+'null'
'public'
'public static void main(String[] args)'
+'void'
+'int'
+'bool'
+'char'
null
null
null
@@ -36,67 +42,20 @@ null
'return'
'new'
null
-'void'
-'int'
-'bool'
-'char'
null
null
null
-'null'
-null
token symbolic names:
null
+BooleanValue
+NullValue
AccessModifierPublic
MainMethodDecl
-DotOperator
-LineOperator
-ComparisonOperator
-LogicalOpertor
-Assign
-Minus
-Plus
-Multipilkation
-Division
-Modulo
-Greater
-Less
-GreaterEqual
-LessEqual
-Equal
-NotEqual
-Not
-And
-Or
-Dot
-OpenRoundBracket
-ClosedRoundBracket
-OpenCurlyBracket
-ClosedCurlyBracket
-Semicolon
-Comma
-Class
-This
-While
-If
-Else
-Return
-New
-Identifier
Void
Int
Boolean
Char
-IntValue
-CharValue
-BooleanValue
-NullValue
-WS
-
-rule names:
-AccessModifierPublic
-MainMethodDecl
DotOperator
LineOperator
ComparisonOperator
@@ -130,18 +89,59 @@ If
Else
Return
New
+IntValue
+CharValue
+Identifier
+WS
+
+rule names:
+BooleanValue
+NullValue
+AccessModifierPublic
+MainMethodDecl
+Void
+Int
+Boolean
+Char
+DotOperator
+LineOperator
+ComparisonOperator
+LogicalOpertor
+Assign
+Minus
+Plus
+Multipilkation
+Division
+Modulo
+Greater
+Less
+GreaterEqual
+LessEqual
+Equal
+NotEqual
+Not
+And
+Or
+Dot
+OpenRoundBracket
+ClosedRoundBracket
+OpenCurlyBracket
+ClosedCurlyBracket
+Semicolon
+Comma
+Class
+This
+While
+If
+Else
+Return
+New
+IntValue
+CharValue
Alpabetic
Numeric
ValidIdentSymbols
Identifier
-Void
-Int
-Boolean
-Char
-IntValue
-CharValue
-BooleanValue
-NullValue
WS
channel names:
@@ -152,4 +152,4 @@ mode names:
DEFAULT_MODE
atn:
-[4, 0, 45, 322, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 147, 8, 2, 1, 3, 1, 3, 3, 3, 151, 8, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 159, 8, 4, 1, 5, 1, 5, 3, 5, 163, 8, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 22, 1, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 3, 37, 258, 8, 37, 1, 38, 1, 38, 5, 38, 262, 8, 38, 10, 38, 12, 38, 265, 9, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 5, 43, 287, 8, 43, 10, 43, 12, 43, 290, 9, 43, 1, 43, 4, 43, 293, 8, 43, 11, 43, 12, 43, 294, 1, 44, 1, 44, 3, 44, 299, 8, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 312, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 0, 0, 48, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 0, 73, 0, 75, 0, 77, 36, 79, 37, 81, 38, 83, 39, 85, 40, 87, 41, 89, 42, 91, 43, 93, 44, 95, 45, 1, 0, 6, 2, 0, 65, 90, 97, 122, 1, 0, 48, 57, 2, 0, 36, 36, 95, 95, 2, 0, 43, 43, 45, 45, 2, 0, 10, 10, 13, 13, 3, 0, 9, 10, 13, 13, 32, 32, 334, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 1, 97, 1, 0, 0, 0, 3, 104, 1, 0, 0, 0, 5, 146, 1, 0, 0, 0, 7, 150, 1, 0, 0, 0, 9, 158, 1, 0, 0, 0, 11, 162, 1, 0, 0, 0, 13, 164, 1, 0, 0, 0, 15, 166, 1, 0, 0, 0, 17, 168, 1, 0, 0, 0, 19, 170, 1, 0, 0, 0, 21, 172, 1, 0, 0, 0, 23, 174, 1, 0, 0, 0, 25, 176, 1, 0, 0, 0, 27, 178, 1, 0, 0, 0, 29, 180, 1, 0, 0, 0, 31, 183, 1, 0, 0, 0, 33, 186, 1, 0, 0, 0, 35, 189, 1, 0, 0, 0, 37, 192, 1, 0, 0, 0, 39, 194, 1, 0, 0, 0, 41, 197, 1, 0, 0, 0, 43, 200, 1, 0, 0, 0, 45, 202, 1, 0, 0, 0, 47, 204, 1, 0, 0, 0, 49, 206, 1, 0, 0, 0, 51, 208, 1, 0, 0, 0, 53, 210, 1, 0, 0, 0, 55, 212, 1, 0, 0, 0, 57, 214, 1, 0, 0, 0, 59, 220, 1, 0, 0, 0, 61, 225, 1, 0, 0, 0, 63, 231, 1, 0, 0, 0, 65, 234, 1, 0, 0, 0, 67, 239, 1, 0, 0, 0, 69, 246, 1, 0, 0, 0, 71, 250, 1, 0, 0, 0, 73, 252, 1, 0, 0, 0, 75, 257, 1, 0, 0, 0, 77, 259, 1, 0, 0, 0, 79, 266, 1, 0, 0, 0, 81, 271, 1, 0, 0, 0, 83, 275, 1, 0, 0, 0, 85, 280, 1, 0, 0, 0, 87, 288, 1, 0, 0, 0, 89, 296, 1, 0, 0, 0, 91, 311, 1, 0, 0, 0, 93, 313, 1, 0, 0, 0, 95, 318, 1, 0, 0, 0, 97, 98, 5, 112, 0, 0, 98, 99, 5, 117, 0, 0, 99, 100, 5, 98, 0, 0, 100, 101, 5, 108, 0, 0, 101, 102, 5, 105, 0, 0, 102, 103, 5, 99, 0, 0, 103, 2, 1, 0, 0, 0, 104, 105, 5, 112, 0, 0, 105, 106, 5, 117, 0, 0, 106, 107, 5, 98, 0, 0, 107, 108, 5, 108, 0, 0, 108, 109, 5, 105, 0, 0, 109, 110, 5, 99, 0, 0, 110, 111, 5, 32, 0, 0, 111, 112, 5, 115, 0, 0, 112, 113, 5, 116, 0, 0, 113, 114, 5, 97, 0, 0, 114, 115, 5, 116, 0, 0, 115, 116, 5, 105, 0, 0, 116, 117, 5, 99, 0, 0, 117, 118, 5, 32, 0, 0, 118, 119, 5, 118, 0, 0, 119, 120, 5, 111, 0, 0, 120, 121, 5, 105, 0, 0, 121, 122, 5, 100, 0, 0, 122, 123, 5, 32, 0, 0, 123, 124, 5, 109, 0, 0, 124, 125, 5, 97, 0, 0, 125, 126, 5, 105, 0, 0, 126, 127, 5, 110, 0, 0, 127, 128, 5, 40, 0, 0, 128, 129, 5, 83, 0, 0, 129, 130, 5, 116, 0, 0, 130, 131, 5, 114, 0, 0, 131, 132, 5, 105, 0, 0, 132, 133, 5, 110, 0, 0, 133, 134, 5, 103, 0, 0, 134, 135, 5, 91, 0, 0, 135, 136, 5, 93, 0, 0, 136, 137, 5, 32, 0, 0, 137, 138, 5, 97, 0, 0, 138, 139, 5, 114, 0, 0, 139, 140, 5, 103, 0, 0, 140, 141, 5, 115, 0, 0, 141, 142, 5, 41, 0, 0, 142, 4, 1, 0, 0, 0, 143, 147, 3, 19, 9, 0, 144, 147, 3, 21, 10, 0, 145, 147, 3, 23, 11, 0, 146, 143, 1, 0, 0, 0, 146, 144, 1, 0, 0, 0, 146, 145, 1, 0, 0, 0, 147, 6, 1, 0, 0, 0, 148, 151, 3, 17, 8, 0, 149, 151, 3, 15, 7, 0, 150, 148, 1, 0, 0, 0, 150, 149, 1, 0, 0, 0, 151, 8, 1, 0, 0, 0, 152, 159, 3, 25, 12, 0, 153, 159, 3, 27, 13, 0, 154, 159, 3, 29, 14, 0, 155, 159, 3, 31, 15, 0, 156, 159, 3, 33, 16, 0, 157, 159, 3, 35, 17, 0, 158, 152, 1, 0, 0, 0, 158, 153, 1, 0, 0, 0, 158, 154, 1, 0, 0, 0, 158, 155, 1, 0, 0, 0, 158, 156, 1, 0, 0, 0, 158, 157, 1, 0, 0, 0, 159, 10, 1, 0, 0, 0, 160, 163, 3, 39, 19, 0, 161, 163, 3, 41, 20, 0, 162, 160, 1, 0, 0, 0, 162, 161, 1, 0, 0, 0, 163, 12, 1, 0, 0, 0, 164, 165, 5, 61, 0, 0, 165, 14, 1, 0, 0, 0, 166, 167, 5, 45, 0, 0, 167, 16, 1, 0, 0, 0, 168, 169, 5, 43, 0, 0, 169, 18, 1, 0, 0, 0, 170, 171, 5, 42, 0, 0, 171, 20, 1, 0, 0, 0, 172, 173, 5, 47, 0, 0, 173, 22, 1, 0, 0, 0, 174, 175, 5, 37, 0, 0, 175, 24, 1, 0, 0, 0, 176, 177, 5, 62, 0, 0, 177, 26, 1, 0, 0, 0, 178, 179, 5, 60, 0, 0, 179, 28, 1, 0, 0, 0, 180, 181, 5, 62, 0, 0, 181, 182, 5, 61, 0, 0, 182, 30, 1, 0, 0, 0, 183, 184, 5, 60, 0, 0, 184, 185, 5, 61, 0, 0, 185, 32, 1, 0, 0, 0, 186, 187, 5, 61, 0, 0, 187, 188, 5, 61, 0, 0, 188, 34, 1, 0, 0, 0, 189, 190, 5, 33, 0, 0, 190, 191, 5, 61, 0, 0, 191, 36, 1, 0, 0, 0, 192, 193, 5, 33, 0, 0, 193, 38, 1, 0, 0, 0, 194, 195, 5, 38, 0, 0, 195, 196, 5, 38, 0, 0, 196, 40, 1, 0, 0, 0, 197, 198, 5, 124, 0, 0, 198, 199, 5, 124, 0, 0, 199, 42, 1, 0, 0, 0, 200, 201, 5, 46, 0, 0, 201, 44, 1, 0, 0, 0, 202, 203, 5, 40, 0, 0, 203, 46, 1, 0, 0, 0, 204, 205, 5, 41, 0, 0, 205, 48, 1, 0, 0, 0, 206, 207, 5, 123, 0, 0, 207, 50, 1, 0, 0, 0, 208, 209, 5, 125, 0, 0, 209, 52, 1, 0, 0, 0, 210, 211, 5, 59, 0, 0, 211, 54, 1, 0, 0, 0, 212, 213, 5, 44, 0, 0, 213, 56, 1, 0, 0, 0, 214, 215, 5, 99, 0, 0, 215, 216, 5, 108, 0, 0, 216, 217, 5, 97, 0, 0, 217, 218, 5, 115, 0, 0, 218, 219, 5, 115, 0, 0, 219, 58, 1, 0, 0, 0, 220, 221, 5, 116, 0, 0, 221, 222, 5, 104, 0, 0, 222, 223, 5, 105, 0, 0, 223, 224, 5, 115, 0, 0, 224, 60, 1, 0, 0, 0, 225, 226, 5, 119, 0, 0, 226, 227, 5, 104, 0, 0, 227, 228, 5, 105, 0, 0, 228, 229, 5, 108, 0, 0, 229, 230, 5, 101, 0, 0, 230, 62, 1, 0, 0, 0, 231, 232, 5, 105, 0, 0, 232, 233, 5, 102, 0, 0, 233, 64, 1, 0, 0, 0, 234, 235, 5, 101, 0, 0, 235, 236, 5, 108, 0, 0, 236, 237, 5, 115, 0, 0, 237, 238, 5, 101, 0, 0, 238, 66, 1, 0, 0, 0, 239, 240, 5, 114, 0, 0, 240, 241, 5, 101, 0, 0, 241, 242, 5, 116, 0, 0, 242, 243, 5, 117, 0, 0, 243, 244, 5, 114, 0, 0, 244, 245, 5, 110, 0, 0, 245, 68, 1, 0, 0, 0, 246, 247, 5, 110, 0, 0, 247, 248, 5, 101, 0, 0, 248, 249, 5, 119, 0, 0, 249, 70, 1, 0, 0, 0, 250, 251, 7, 0, 0, 0, 251, 72, 1, 0, 0, 0, 252, 253, 7, 1, 0, 0, 253, 74, 1, 0, 0, 0, 254, 258, 3, 71, 35, 0, 255, 258, 3, 73, 36, 0, 256, 258, 7, 2, 0, 0, 257, 254, 1, 0, 0, 0, 257, 255, 1, 0, 0, 0, 257, 256, 1, 0, 0, 0, 258, 76, 1, 0, 0, 0, 259, 263, 3, 71, 35, 0, 260, 262, 3, 75, 37, 0, 261, 260, 1, 0, 0, 0, 262, 265, 1, 0, 0, 0, 263, 261, 1, 0, 0, 0, 263, 264, 1, 0, 0, 0, 264, 78, 1, 0, 0, 0, 265, 263, 1, 0, 0, 0, 266, 267, 5, 118, 0, 0, 267, 268, 5, 111, 0, 0, 268, 269, 5, 105, 0, 0, 269, 270, 5, 100, 0, 0, 270, 80, 1, 0, 0, 0, 271, 272, 5, 105, 0, 0, 272, 273, 5, 110, 0, 0, 273, 274, 5, 116, 0, 0, 274, 82, 1, 0, 0, 0, 275, 276, 5, 98, 0, 0, 276, 277, 5, 111, 0, 0, 277, 278, 5, 111, 0, 0, 278, 279, 5, 108, 0, 0, 279, 84, 1, 0, 0, 0, 280, 281, 5, 99, 0, 0, 281, 282, 5, 104, 0, 0, 282, 283, 5, 97, 0, 0, 283, 284, 5, 114, 0, 0, 284, 86, 1, 0, 0, 0, 285, 287, 7, 3, 0, 0, 286, 285, 1, 0, 0, 0, 287, 290, 1, 0, 0, 0, 288, 286, 1, 0, 0, 0, 288, 289, 1, 0, 0, 0, 289, 292, 1, 0, 0, 0, 290, 288, 1, 0, 0, 0, 291, 293, 7, 1, 0, 0, 292, 291, 1, 0, 0, 0, 293, 294, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 88, 1, 0, 0, 0, 296, 298, 5, 39, 0, 0, 297, 299, 8, 4, 0, 0, 298, 297, 1, 0, 0, 0, 298, 299, 1, 0, 0, 0, 299, 300, 1, 0, 0, 0, 300, 301, 5, 39, 0, 0, 301, 90, 1, 0, 0, 0, 302, 303, 5, 116, 0, 0, 303, 304, 5, 114, 0, 0, 304, 305, 5, 117, 0, 0, 305, 312, 5, 101, 0, 0, 306, 307, 5, 102, 0, 0, 307, 308, 5, 97, 0, 0, 308, 309, 5, 108, 0, 0, 309, 310, 5, 115, 0, 0, 310, 312, 5, 101, 0, 0, 311, 302, 1, 0, 0, 0, 311, 306, 1, 0, 0, 0, 312, 92, 1, 0, 0, 0, 313, 314, 5, 110, 0, 0, 314, 315, 5, 117, 0, 0, 315, 316, 5, 108, 0, 0, 316, 317, 5, 108, 0, 0, 317, 94, 1, 0, 0, 0, 318, 319, 7, 5, 0, 0, 319, 320, 1, 0, 0, 0, 320, 321, 6, 47, 0, 0, 321, 96, 1, 0, 0, 0, 11, 0, 146, 150, 158, 162, 257, 263, 288, 294, 298, 311, 1, 6, 0, 0]
\ No newline at end of file
+[4, 0, 45, 322, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 107, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 3, 8, 182, 8, 8, 1, 9, 1, 9, 3, 9, 186, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 194, 8, 10, 1, 11, 1, 11, 3, 11, 198, 8, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 1, 31, 1, 32, 1, 32, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 5, 41, 287, 8, 41, 10, 41, 12, 41, 290, 9, 41, 1, 41, 4, 41, 293, 8, 41, 11, 41, 12, 41, 294, 1, 42, 1, 42, 3, 42, 299, 8, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 3, 45, 310, 8, 45, 1, 46, 1, 46, 5, 46, 314, 8, 46, 10, 46, 12, 46, 317, 9, 46, 1, 47, 1, 47, 1, 47, 1, 47, 0, 0, 48, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 0, 89, 0, 91, 0, 93, 44, 95, 45, 1, 0, 6, 2, 0, 43, 43, 45, 45, 1, 0, 48, 57, 2, 0, 10, 10, 13, 13, 2, 0, 65, 90, 97, 122, 2, 0, 36, 36, 95, 95, 3, 0, 9, 10, 13, 13, 32, 32, 334, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 1, 106, 1, 0, 0, 0, 3, 108, 1, 0, 0, 0, 5, 113, 1, 0, 0, 0, 7, 120, 1, 0, 0, 0, 9, 159, 1, 0, 0, 0, 11, 164, 1, 0, 0, 0, 13, 168, 1, 0, 0, 0, 15, 173, 1, 0, 0, 0, 17, 181, 1, 0, 0, 0, 19, 185, 1, 0, 0, 0, 21, 193, 1, 0, 0, 0, 23, 197, 1, 0, 0, 0, 25, 199, 1, 0, 0, 0, 27, 201, 1, 0, 0, 0, 29, 203, 1, 0, 0, 0, 31, 205, 1, 0, 0, 0, 33, 207, 1, 0, 0, 0, 35, 209, 1, 0, 0, 0, 37, 211, 1, 0, 0, 0, 39, 213, 1, 0, 0, 0, 41, 215, 1, 0, 0, 0, 43, 218, 1, 0, 0, 0, 45, 221, 1, 0, 0, 0, 47, 224, 1, 0, 0, 0, 49, 227, 1, 0, 0, 0, 51, 229, 1, 0, 0, 0, 53, 232, 1, 0, 0, 0, 55, 235, 1, 0, 0, 0, 57, 237, 1, 0, 0, 0, 59, 239, 1, 0, 0, 0, 61, 241, 1, 0, 0, 0, 63, 243, 1, 0, 0, 0, 65, 245, 1, 0, 0, 0, 67, 247, 1, 0, 0, 0, 69, 249, 1, 0, 0, 0, 71, 255, 1, 0, 0, 0, 73, 260, 1, 0, 0, 0, 75, 266, 1, 0, 0, 0, 77, 269, 1, 0, 0, 0, 79, 274, 1, 0, 0, 0, 81, 281, 1, 0, 0, 0, 83, 288, 1, 0, 0, 0, 85, 296, 1, 0, 0, 0, 87, 302, 1, 0, 0, 0, 89, 304, 1, 0, 0, 0, 91, 309, 1, 0, 0, 0, 93, 311, 1, 0, 0, 0, 95, 318, 1, 0, 0, 0, 97, 98, 5, 116, 0, 0, 98, 99, 5, 114, 0, 0, 99, 100, 5, 117, 0, 0, 100, 107, 5, 101, 0, 0, 101, 102, 5, 102, 0, 0, 102, 103, 5, 97, 0, 0, 103, 104, 5, 108, 0, 0, 104, 105, 5, 115, 0, 0, 105, 107, 5, 101, 0, 0, 106, 97, 1, 0, 0, 0, 106, 101, 1, 0, 0, 0, 107, 2, 1, 0, 0, 0, 108, 109, 5, 110, 0, 0, 109, 110, 5, 117, 0, 0, 110, 111, 5, 108, 0, 0, 111, 112, 5, 108, 0, 0, 112, 4, 1, 0, 0, 0, 113, 114, 5, 112, 0, 0, 114, 115, 5, 117, 0, 0, 115, 116, 5, 98, 0, 0, 116, 117, 5, 108, 0, 0, 117, 118, 5, 105, 0, 0, 118, 119, 5, 99, 0, 0, 119, 6, 1, 0, 0, 0, 120, 121, 5, 112, 0, 0, 121, 122, 5, 117, 0, 0, 122, 123, 5, 98, 0, 0, 123, 124, 5, 108, 0, 0, 124, 125, 5, 105, 0, 0, 125, 126, 5, 99, 0, 0, 126, 127, 5, 32, 0, 0, 127, 128, 5, 115, 0, 0, 128, 129, 5, 116, 0, 0, 129, 130, 5, 97, 0, 0, 130, 131, 5, 116, 0, 0, 131, 132, 5, 105, 0, 0, 132, 133, 5, 99, 0, 0, 133, 134, 5, 32, 0, 0, 134, 135, 5, 118, 0, 0, 135, 136, 5, 111, 0, 0, 136, 137, 5, 105, 0, 0, 137, 138, 5, 100, 0, 0, 138, 139, 5, 32, 0, 0, 139, 140, 5, 109, 0, 0, 140, 141, 5, 97, 0, 0, 141, 142, 5, 105, 0, 0, 142, 143, 5, 110, 0, 0, 143, 144, 5, 40, 0, 0, 144, 145, 5, 83, 0, 0, 145, 146, 5, 116, 0, 0, 146, 147, 5, 114, 0, 0, 147, 148, 5, 105, 0, 0, 148, 149, 5, 110, 0, 0, 149, 150, 5, 103, 0, 0, 150, 151, 5, 91, 0, 0, 151, 152, 5, 93, 0, 0, 152, 153, 5, 32, 0, 0, 153, 154, 5, 97, 0, 0, 154, 155, 5, 114, 0, 0, 155, 156, 5, 103, 0, 0, 156, 157, 5, 115, 0, 0, 157, 158, 5, 41, 0, 0, 158, 8, 1, 0, 0, 0, 159, 160, 5, 118, 0, 0, 160, 161, 5, 111, 0, 0, 161, 162, 5, 105, 0, 0, 162, 163, 5, 100, 0, 0, 163, 10, 1, 0, 0, 0, 164, 165, 5, 105, 0, 0, 165, 166, 5, 110, 0, 0, 166, 167, 5, 116, 0, 0, 167, 12, 1, 0, 0, 0, 168, 169, 5, 98, 0, 0, 169, 170, 5, 111, 0, 0, 170, 171, 5, 111, 0, 0, 171, 172, 5, 108, 0, 0, 172, 14, 1, 0, 0, 0, 173, 174, 5, 99, 0, 0, 174, 175, 5, 104, 0, 0, 175, 176, 5, 97, 0, 0, 176, 177, 5, 114, 0, 0, 177, 16, 1, 0, 0, 0, 178, 182, 3, 31, 15, 0, 179, 182, 3, 33, 16, 0, 180, 182, 3, 35, 17, 0, 181, 178, 1, 0, 0, 0, 181, 179, 1, 0, 0, 0, 181, 180, 1, 0, 0, 0, 182, 18, 1, 0, 0, 0, 183, 186, 3, 29, 14, 0, 184, 186, 3, 27, 13, 0, 185, 183, 1, 0, 0, 0, 185, 184, 1, 0, 0, 0, 186, 20, 1, 0, 0, 0, 187, 194, 3, 37, 18, 0, 188, 194, 3, 39, 19, 0, 189, 194, 3, 41, 20, 0, 190, 194, 3, 43, 21, 0, 191, 194, 3, 45, 22, 0, 192, 194, 3, 47, 23, 0, 193, 187, 1, 0, 0, 0, 193, 188, 1, 0, 0, 0, 193, 189, 1, 0, 0, 0, 193, 190, 1, 0, 0, 0, 193, 191, 1, 0, 0, 0, 193, 192, 1, 0, 0, 0, 194, 22, 1, 0, 0, 0, 195, 198, 3, 51, 25, 0, 196, 198, 3, 53, 26, 0, 197, 195, 1, 0, 0, 0, 197, 196, 1, 0, 0, 0, 198, 24, 1, 0, 0, 0, 199, 200, 5, 61, 0, 0, 200, 26, 1, 0, 0, 0, 201, 202, 5, 45, 0, 0, 202, 28, 1, 0, 0, 0, 203, 204, 5, 43, 0, 0, 204, 30, 1, 0, 0, 0, 205, 206, 5, 42, 0, 0, 206, 32, 1, 0, 0, 0, 207, 208, 5, 47, 0, 0, 208, 34, 1, 0, 0, 0, 209, 210, 5, 37, 0, 0, 210, 36, 1, 0, 0, 0, 211, 212, 5, 62, 0, 0, 212, 38, 1, 0, 0, 0, 213, 214, 5, 60, 0, 0, 214, 40, 1, 0, 0, 0, 215, 216, 5, 62, 0, 0, 216, 217, 5, 61, 0, 0, 217, 42, 1, 0, 0, 0, 218, 219, 5, 60, 0, 0, 219, 220, 5, 61, 0, 0, 220, 44, 1, 0, 0, 0, 221, 222, 5, 61, 0, 0, 222, 223, 5, 61, 0, 0, 223, 46, 1, 0, 0, 0, 224, 225, 5, 33, 0, 0, 225, 226, 5, 61, 0, 0, 226, 48, 1, 0, 0, 0, 227, 228, 5, 33, 0, 0, 228, 50, 1, 0, 0, 0, 229, 230, 5, 38, 0, 0, 230, 231, 5, 38, 0, 0, 231, 52, 1, 0, 0, 0, 232, 233, 5, 124, 0, 0, 233, 234, 5, 124, 0, 0, 234, 54, 1, 0, 0, 0, 235, 236, 5, 46, 0, 0, 236, 56, 1, 0, 0, 0, 237, 238, 5, 40, 0, 0, 238, 58, 1, 0, 0, 0, 239, 240, 5, 41, 0, 0, 240, 60, 1, 0, 0, 0, 241, 242, 5, 123, 0, 0, 242, 62, 1, 0, 0, 0, 243, 244, 5, 125, 0, 0, 244, 64, 1, 0, 0, 0, 245, 246, 5, 59, 0, 0, 246, 66, 1, 0, 0, 0, 247, 248, 5, 44, 0, 0, 248, 68, 1, 0, 0, 0, 249, 250, 5, 99, 0, 0, 250, 251, 5, 108, 0, 0, 251, 252, 5, 97, 0, 0, 252, 253, 5, 115, 0, 0, 253, 254, 5, 115, 0, 0, 254, 70, 1, 0, 0, 0, 255, 256, 5, 116, 0, 0, 256, 257, 5, 104, 0, 0, 257, 258, 5, 105, 0, 0, 258, 259, 5, 115, 0, 0, 259, 72, 1, 0, 0, 0, 260, 261, 5, 119, 0, 0, 261, 262, 5, 104, 0, 0, 262, 263, 5, 105, 0, 0, 263, 264, 5, 108, 0, 0, 264, 265, 5, 101, 0, 0, 265, 74, 1, 0, 0, 0, 266, 267, 5, 105, 0, 0, 267, 268, 5, 102, 0, 0, 268, 76, 1, 0, 0, 0, 269, 270, 5, 101, 0, 0, 270, 271, 5, 108, 0, 0, 271, 272, 5, 115, 0, 0, 272, 273, 5, 101, 0, 0, 273, 78, 1, 0, 0, 0, 274, 275, 5, 114, 0, 0, 275, 276, 5, 101, 0, 0, 276, 277, 5, 116, 0, 0, 277, 278, 5, 117, 0, 0, 278, 279, 5, 114, 0, 0, 279, 280, 5, 110, 0, 0, 280, 80, 1, 0, 0, 0, 281, 282, 5, 110, 0, 0, 282, 283, 5, 101, 0, 0, 283, 284, 5, 119, 0, 0, 284, 82, 1, 0, 0, 0, 285, 287, 7, 0, 0, 0, 286, 285, 1, 0, 0, 0, 287, 290, 1, 0, 0, 0, 288, 286, 1, 0, 0, 0, 288, 289, 1, 0, 0, 0, 289, 292, 1, 0, 0, 0, 290, 288, 1, 0, 0, 0, 291, 293, 7, 1, 0, 0, 292, 291, 1, 0, 0, 0, 293, 294, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 84, 1, 0, 0, 0, 296, 298, 5, 39, 0, 0, 297, 299, 8, 2, 0, 0, 298, 297, 1, 0, 0, 0, 298, 299, 1, 0, 0, 0, 299, 300, 1, 0, 0, 0, 300, 301, 5, 39, 0, 0, 301, 86, 1, 0, 0, 0, 302, 303, 7, 3, 0, 0, 303, 88, 1, 0, 0, 0, 304, 305, 7, 1, 0, 0, 305, 90, 1, 0, 0, 0, 306, 310, 3, 87, 43, 0, 307, 310, 3, 89, 44, 0, 308, 310, 7, 4, 0, 0, 309, 306, 1, 0, 0, 0, 309, 307, 1, 0, 0, 0, 309, 308, 1, 0, 0, 0, 310, 92, 1, 0, 0, 0, 311, 315, 3, 87, 43, 0, 312, 314, 3, 91, 45, 0, 313, 312, 1, 0, 0, 0, 314, 317, 1, 0, 0, 0, 315, 313, 1, 0, 0, 0, 315, 316, 1, 0, 0, 0, 316, 94, 1, 0, 0, 0, 317, 315, 1, 0, 0, 0, 318, 319, 7, 5, 0, 0, 319, 320, 1, 0, 0, 0, 320, 321, 6, 47, 0, 0, 321, 96, 1, 0, 0, 0, 11, 0, 106, 181, 185, 193, 197, 288, 294, 298, 309, 315, 1, 6, 0, 0]
\ No newline at end of file
diff --git a/src/main/java/gen/DecafLexer.java b/src/main/java/gen/DecafLexer.java
index 1448a7c..56bba9e 100644
--- a/src/main/java/gen/DecafLexer.java
+++ b/src/main/java/gen/DecafLexer.java
@@ -1,4 +1,5 @@
-package gen;// Generated from C:/Users/dh10krj/OneDrive - Durr Group/Dokumente/S4/Compilerbau/projekt/NichtHaskell/Source/Decaf.g4 by ANTLR 4.13.1
+// Generated from C:/Users/User/DHBW/Compiler/src/main/java/Decaf.g4 by ANTLR 4.13.1
+package gen;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
@@ -16,14 +17,14 @@ public class DecafLexer extends Lexer {
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
- AccessModifierPublic=1, MainMethodDecl=2, DotOperator=3, LineOperator=4,
- ComparisonOperator=5, LogicalOpertor=6, Assign=7, Minus=8, Plus=9, Multipilkation=10,
- Division=11, Modulo=12, Greater=13, Less=14, GreaterEqual=15, LessEqual=16,
- Equal=17, NotEqual=18, Not=19, And=20, Or=21, Dot=22, OpenRoundBracket=23,
- ClosedRoundBracket=24, OpenCurlyBracket=25, ClosedCurlyBracket=26, Semicolon=27,
- Comma=28, Class=29, This=30, While=31, If=32, Else=33, Return=34, New=35,
- Identifier=36, Void=37, Int=38, Boolean=39, Char=40, IntValue=41, CharValue=42,
- BooleanValue=43, NullValue=44, WS=45;
+ BooleanValue=1, NullValue=2, AccessModifierPublic=3, MainMethodDecl=4,
+ Void=5, Int=6, Boolean=7, Char=8, DotOperator=9, LineOperator=10, ComparisonOperator=11,
+ LogicalOpertor=12, Assign=13, Minus=14, Plus=15, Multipilkation=16, Division=17,
+ Modulo=18, Greater=19, Less=20, GreaterEqual=21, LessEqual=22, Equal=23,
+ NotEqual=24, Not=25, And=26, Or=27, Dot=28, OpenRoundBracket=29, ClosedRoundBracket=30,
+ OpenCurlyBracket=31, ClosedCurlyBracket=32, Semicolon=33, Comma=34, Class=35,
+ This=36, While=37, If=38, Else=39, Return=40, New=41, IntValue=42, CharValue=43,
+ Identifier=44, WS=45;
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
@@ -34,39 +35,39 @@ public class DecafLexer extends Lexer {
private static String[] makeRuleNames() {
return new String[] {
- "AccessModifierPublic", "MainMethodDecl", "DotOperator", "LineOperator",
- "ComparisonOperator", "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation",
- "Division", "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual",
- "Equal", "NotEqual", "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket",
+ "BooleanValue", "NullValue", "AccessModifierPublic", "MainMethodDecl",
+ "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", "ComparisonOperator",
+ "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", "Division",
+ "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", "Equal", "NotEqual",
+ "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket",
"OpenCurlyBracket", "ClosedCurlyBracket", "Semicolon", "Comma", "Class",
- "This", "While", "If", "Else", "Return", "New", "Alpabetic", "Numeric",
- "ValidIdentSymbols", "Identifier", "Void", "Int", "Boolean", "Char",
- "IntValue", "CharValue", "BooleanValue", "NullValue", "WS"
+ "This", "While", "If", "Else", "Return", "New", "IntValue", "CharValue",
+ "Alpabetic", "Numeric", "ValidIdentSymbols", "Identifier", "WS"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
- null, "'public'", "'public static void main(String[] args)'", null, null,
- null, null, "'='", "'-'", "'+'", "'*'", "'/'", "'%'", "'>'", "'<'", "'>='",
- "'<='", "'=='", "'!='", "'!'", "'&&'", "'||'", "'.'", "'('", "')'", "'{'",
- "'}'", "';'", "','", "'class'", "'this'", "'while'", "'if'", "'else'",
- "'return'", "'new'", null, "'void'", "'int'", "'bool'", "'char'", null,
- null, null, "'null'"
+ null, null, "'null'", "'public'", "'public static void main(String[] args)'",
+ "'void'", "'int'", "'bool'", "'char'", null, null, null, null, "'='",
+ "'-'", "'+'", "'*'", "'/'", "'%'", "'>'", "'<'", "'>='", "'<='", "'=='",
+ "'!='", "'!'", "'&&'", "'||'", "'.'", "'('", "')'", "'{'", "'}'", "';'",
+ "','", "'class'", "'this'", "'while'", "'if'", "'else'", "'return'",
+ "'new'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
- null, "AccessModifierPublic", "MainMethodDecl", "DotOperator", "LineOperator",
- "ComparisonOperator", "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation",
- "Division", "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual",
- "Equal", "NotEqual", "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket",
+ null, "BooleanValue", "NullValue", "AccessModifierPublic", "MainMethodDecl",
+ "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", "ComparisonOperator",
+ "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", "Division",
+ "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", "Equal", "NotEqual",
+ "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket",
"OpenCurlyBracket", "ClosedCurlyBracket", "Semicolon", "Comma", "Class",
- "This", "While", "If", "Else", "Return", "New", "Identifier", "Void",
- "Int", "Boolean", "Char", "IntValue", "CharValue", "BooleanValue", "NullValue",
- "WS"
+ "This", "While", "If", "Else", "Return", "New", "IntValue", "CharValue",
+ "Identifier", "WS"
};
}
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
@@ -143,190 +144,190 @@ public class DecafLexer extends Lexer {
"&\u0002\'\u0007\'\u0002(\u0007(\u0002)\u0007)\u0002*\u0007*\u0002+\u0007"+
"+\u0002,\u0007,\u0002-\u0007-\u0002.\u0007.\u0002/\u0007/\u0001\u0000"+
"\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000"+
- "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
- "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
- "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
- "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
- "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
- "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
+ "\u0001\u0000\u0001\u0000\u0003\u0000k\b\u0000\u0001\u0001\u0001\u0001"+
"\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002\u0001\u0002"+
- "\u0003\u0002\u0093\b\u0002\u0001\u0003\u0001\u0003\u0003\u0003\u0097\b"+
- "\u0003\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001"+
- "\u0004\u0003\u0004\u009f\b\u0004\u0001\u0005\u0001\u0005\u0003\u0005\u00a3"+
- "\b\u0005\u0001\u0006\u0001\u0006\u0001\u0007\u0001\u0007\u0001\b\u0001"+
- "\b\u0001\t\u0001\t\u0001\n\u0001\n\u0001\u000b\u0001\u000b\u0001\f\u0001"+
- "\f\u0001\r\u0001\r\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000f\u0001"+
- "\u000f\u0001\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0011\u0001"+
- "\u0011\u0001\u0011\u0001\u0012\u0001\u0012\u0001\u0013\u0001\u0013\u0001"+
- "\u0013\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0015\u0001\u0015\u0001"+
- "\u0016\u0001\u0016\u0001\u0017\u0001\u0017\u0001\u0018\u0001\u0018\u0001"+
- "\u0019\u0001\u0019\u0001\u001a\u0001\u001a\u0001\u001b\u0001\u001b\u0001"+
- "\u001c\u0001\u001c\u0001\u001c\u0001\u001c\u0001\u001c\u0001\u001c\u0001"+
- "\u001d\u0001\u001d\u0001\u001d\u0001\u001d\u0001\u001d\u0001\u001e\u0001"+
- "\u001e\u0001\u001e\u0001\u001e\u0001\u001e\u0001\u001e\u0001\u001f\u0001"+
- "\u001f\u0001\u001f\u0001 \u0001 \u0001 \u0001 \u0001 \u0001!\u0001!\u0001"+
- "!\u0001!\u0001!\u0001!\u0001!\u0001\"\u0001\"\u0001\"\u0001\"\u0001#\u0001"+
- "#\u0001$\u0001$\u0001%\u0001%\u0001%\u0003%\u0102\b%\u0001&\u0001&\u0005"+
- "&\u0106\b&\n&\f&\u0109\t&\u0001\'\u0001\'\u0001\'\u0001\'\u0001\'\u0001"+
- "(\u0001(\u0001(\u0001(\u0001)\u0001)\u0001)\u0001)\u0001)\u0001*\u0001"+
- "*\u0001*\u0001*\u0001*\u0001+\u0005+\u011f\b+\n+\f+\u0122\t+\u0001+\u0004"+
- "+\u0125\b+\u000b+\f+\u0126\u0001,\u0001,\u0003,\u012b\b,\u0001,\u0001"+
- ",\u0001-\u0001-\u0001-\u0001-\u0001-\u0001-\u0001-\u0001-\u0001-\u0003"+
- "-\u0138\b-\u0001.\u0001.\u0001.\u0001.\u0001.\u0001/\u0001/\u0001/\u0001"+
- "/\u0000\u00000\u0001\u0001\u0003\u0002\u0005\u0003\u0007\u0004\t\u0005"+
- "\u000b\u0006\r\u0007\u000f\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019"+
- "\r\u001b\u000e\u001d\u000f\u001f\u0010!\u0011#\u0012%\u0013\'\u0014)\u0015"+
- "+\u0016-\u0017/\u00181\u00193\u001a5\u001b7\u001c9\u001d;\u001e=\u001f"+
- "? A!C\"E#G\u0000I\u0000K\u0000M$O%Q&S\'U(W)Y*[+],_-\u0001\u0000\u0006"+
- "\u0002\u0000AZaz\u0001\u000009\u0002\u0000$$__\u0002\u0000++--\u0002\u0000"+
- "\n\n\r\r\u0003\u0000\t\n\r\r \u014e\u0000\u0001\u0001\u0000\u0000\u0000"+
- "\u0000\u0003\u0001\u0000\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000"+
- "\u0000\u0007\u0001\u0000\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000"+
- "\u000b\u0001\u0000\u0000\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f"+
- "\u0001\u0000\u0000\u0000\u0000\u0011\u0001\u0000\u0000\u0000\u0000\u0013"+
- "\u0001\u0000\u0000\u0000\u0000\u0015\u0001\u0000\u0000\u0000\u0000\u0017"+
- "\u0001\u0000\u0000\u0000\u0000\u0019\u0001\u0000\u0000\u0000\u0000\u001b"+
- "\u0001\u0000\u0000\u0000\u0000\u001d\u0001\u0000\u0000\u0000\u0000\u001f"+
- "\u0001\u0000\u0000\u0000\u0000!\u0001\u0000\u0000\u0000\u0000#\u0001\u0000"+
- "\u0000\u0000\u0000%\u0001\u0000\u0000\u0000\u0000\'\u0001\u0000\u0000"+
- "\u0000\u0000)\u0001\u0000\u0000\u0000\u0000+\u0001\u0000\u0000\u0000\u0000"+
- "-\u0001\u0000\u0000\u0000\u0000/\u0001\u0000\u0000\u0000\u00001\u0001"+
- "\u0000\u0000\u0000\u00003\u0001\u0000\u0000\u0000\u00005\u0001\u0000\u0000"+
- "\u0000\u00007\u0001\u0000\u0000\u0000\u00009\u0001\u0000\u0000\u0000\u0000"+
- ";\u0001\u0000\u0000\u0000\u0000=\u0001\u0000\u0000\u0000\u0000?\u0001"+
- "\u0000\u0000\u0000\u0000A\u0001\u0000\u0000\u0000\u0000C\u0001\u0000\u0000"+
- "\u0000\u0000E\u0001\u0000\u0000\u0000\u0000M\u0001\u0000\u0000\u0000\u0000"+
- "O\u0001\u0000\u0000\u0000\u0000Q\u0001\u0000\u0000\u0000\u0000S\u0001"+
- "\u0000\u0000\u0000\u0000U\u0001\u0000\u0000\u0000\u0000W\u0001\u0000\u0000"+
- "\u0000\u0000Y\u0001\u0000\u0000\u0000\u0000[\u0001\u0000\u0000\u0000\u0000"+
- "]\u0001\u0000\u0000\u0000\u0000_\u0001\u0000\u0000\u0000\u0001a\u0001"+
- "\u0000\u0000\u0000\u0003h\u0001\u0000\u0000\u0000\u0005\u0092\u0001\u0000"+
- "\u0000\u0000\u0007\u0096\u0001\u0000\u0000\u0000\t\u009e\u0001\u0000\u0000"+
- "\u0000\u000b\u00a2\u0001\u0000\u0000\u0000\r\u00a4\u0001\u0000\u0000\u0000"+
- "\u000f\u00a6\u0001\u0000\u0000\u0000\u0011\u00a8\u0001\u0000\u0000\u0000"+
- "\u0013\u00aa\u0001\u0000\u0000\u0000\u0015\u00ac\u0001\u0000\u0000\u0000"+
- "\u0017\u00ae\u0001\u0000\u0000\u0000\u0019\u00b0\u0001\u0000\u0000\u0000"+
- "\u001b\u00b2\u0001\u0000\u0000\u0000\u001d\u00b4\u0001\u0000\u0000\u0000"+
- "\u001f\u00b7\u0001\u0000\u0000\u0000!\u00ba\u0001\u0000\u0000\u0000#\u00bd"+
- "\u0001\u0000\u0000\u0000%\u00c0\u0001\u0000\u0000\u0000\'\u00c2\u0001"+
- "\u0000\u0000\u0000)\u00c5\u0001\u0000\u0000\u0000+\u00c8\u0001\u0000\u0000"+
- "\u0000-\u00ca\u0001\u0000\u0000\u0000/\u00cc\u0001\u0000\u0000\u00001"+
- "\u00ce\u0001\u0000\u0000\u00003\u00d0\u0001\u0000\u0000\u00005\u00d2\u0001"+
- "\u0000\u0000\u00007\u00d4\u0001\u0000\u0000\u00009\u00d6\u0001\u0000\u0000"+
- "\u0000;\u00dc\u0001\u0000\u0000\u0000=\u00e1\u0001\u0000\u0000\u0000?"+
- "\u00e7\u0001\u0000\u0000\u0000A\u00ea\u0001\u0000\u0000\u0000C\u00ef\u0001"+
- "\u0000\u0000\u0000E\u00f6\u0001\u0000\u0000\u0000G\u00fa\u0001\u0000\u0000"+
- "\u0000I\u00fc\u0001\u0000\u0000\u0000K\u0101\u0001\u0000\u0000\u0000M"+
- "\u0103\u0001\u0000\u0000\u0000O\u010a\u0001\u0000\u0000\u0000Q\u010f\u0001"+
- "\u0000\u0000\u0000S\u0113\u0001\u0000\u0000\u0000U\u0118\u0001\u0000\u0000"+
- "\u0000W\u0120\u0001\u0000\u0000\u0000Y\u0128\u0001\u0000\u0000\u0000["+
- "\u0137\u0001\u0000\u0000\u0000]\u0139\u0001\u0000\u0000\u0000_\u013e\u0001"+
- "\u0000\u0000\u0000ab\u0005p\u0000\u0000bc\u0005u\u0000\u0000cd\u0005b"+
- "\u0000\u0000de\u0005l\u0000\u0000ef\u0005i\u0000\u0000fg\u0005c\u0000"+
- "\u0000g\u0002\u0001\u0000\u0000\u0000hi\u0005p\u0000\u0000ij\u0005u\u0000"+
- "\u0000jk\u0005b\u0000\u0000kl\u0005l\u0000\u0000lm\u0005i\u0000\u0000"+
- "mn\u0005c\u0000\u0000no\u0005 \u0000\u0000op\u0005s\u0000\u0000pq\u0005"+
- "t\u0000\u0000qr\u0005a\u0000\u0000rs\u0005t\u0000\u0000st\u0005i\u0000"+
- "\u0000tu\u0005c\u0000\u0000uv\u0005 \u0000\u0000vw\u0005v\u0000\u0000"+
- "wx\u0005o\u0000\u0000xy\u0005i\u0000\u0000yz\u0005d\u0000\u0000z{\u0005"+
- " \u0000\u0000{|\u0005m\u0000\u0000|}\u0005a\u0000\u0000}~\u0005i\u0000"+
- "\u0000~\u007f\u0005n\u0000\u0000\u007f\u0080\u0005(\u0000\u0000\u0080"+
- "\u0081\u0005S\u0000\u0000\u0081\u0082\u0005t\u0000\u0000\u0082\u0083\u0005"+
- "r\u0000\u0000\u0083\u0084\u0005i\u0000\u0000\u0084\u0085\u0005n\u0000"+
- "\u0000\u0085\u0086\u0005g\u0000\u0000\u0086\u0087\u0005[\u0000\u0000\u0087"+
- "\u0088\u0005]\u0000\u0000\u0088\u0089\u0005 \u0000\u0000\u0089\u008a\u0005"+
- "a\u0000\u0000\u008a\u008b\u0005r\u0000\u0000\u008b\u008c\u0005g\u0000"+
- "\u0000\u008c\u008d\u0005s\u0000\u0000\u008d\u008e\u0005)\u0000\u0000\u008e"+
- "\u0004\u0001\u0000\u0000\u0000\u008f\u0093\u0003\u0013\t\u0000\u0090\u0093"+
- "\u0003\u0015\n\u0000\u0091\u0093\u0003\u0017\u000b\u0000\u0092\u008f\u0001"+
- "\u0000\u0000\u0000\u0092\u0090\u0001\u0000\u0000\u0000\u0092\u0091\u0001"+
- "\u0000\u0000\u0000\u0093\u0006\u0001\u0000\u0000\u0000\u0094\u0097\u0003"+
- "\u0011\b\u0000\u0095\u0097\u0003\u000f\u0007\u0000\u0096\u0094\u0001\u0000"+
- "\u0000\u0000\u0096\u0095\u0001\u0000\u0000\u0000\u0097\b\u0001\u0000\u0000"+
- "\u0000\u0098\u009f\u0003\u0019\f\u0000\u0099\u009f\u0003\u001b\r\u0000"+
- "\u009a\u009f\u0003\u001d\u000e\u0000\u009b\u009f\u0003\u001f\u000f\u0000"+
- "\u009c\u009f\u0003!\u0010\u0000\u009d\u009f\u0003#\u0011\u0000\u009e\u0098"+
- "\u0001\u0000\u0000\u0000\u009e\u0099\u0001\u0000\u0000\u0000\u009e\u009a"+
- "\u0001\u0000\u0000\u0000\u009e\u009b\u0001\u0000\u0000\u0000\u009e\u009c"+
- "\u0001\u0000\u0000\u0000\u009e\u009d\u0001\u0000\u0000\u0000\u009f\n\u0001"+
- "\u0000\u0000\u0000\u00a0\u00a3\u0003\'\u0013\u0000\u00a1\u00a3\u0003)"+
- "\u0014\u0000\u00a2\u00a0\u0001\u0000\u0000\u0000\u00a2\u00a1\u0001\u0000"+
- "\u0000\u0000\u00a3\f\u0001\u0000\u0000\u0000\u00a4\u00a5\u0005=\u0000"+
- "\u0000\u00a5\u000e\u0001\u0000\u0000\u0000\u00a6\u00a7\u0005-\u0000\u0000"+
- "\u00a7\u0010\u0001\u0000\u0000\u0000\u00a8\u00a9\u0005+\u0000\u0000\u00a9"+
- "\u0012\u0001\u0000\u0000\u0000\u00aa\u00ab\u0005*\u0000\u0000\u00ab\u0014"+
- "\u0001\u0000\u0000\u0000\u00ac\u00ad\u0005/\u0000\u0000\u00ad\u0016\u0001"+
- "\u0000\u0000\u0000\u00ae\u00af\u0005%\u0000\u0000\u00af\u0018\u0001\u0000"+
- "\u0000\u0000\u00b0\u00b1\u0005>\u0000\u0000\u00b1\u001a\u0001\u0000\u0000"+
- "\u0000\u00b2\u00b3\u0005<\u0000\u0000\u00b3\u001c\u0001\u0000\u0000\u0000"+
- "\u00b4\u00b5\u0005>\u0000\u0000\u00b5\u00b6\u0005=\u0000\u0000\u00b6\u001e"+
- "\u0001\u0000\u0000\u0000\u00b7\u00b8\u0005<\u0000\u0000\u00b8\u00b9\u0005"+
- "=\u0000\u0000\u00b9 \u0001\u0000\u0000\u0000\u00ba\u00bb\u0005=\u0000"+
- "\u0000\u00bb\u00bc\u0005=\u0000\u0000\u00bc\"\u0001\u0000\u0000\u0000"+
- "\u00bd\u00be\u0005!\u0000\u0000\u00be\u00bf\u0005=\u0000\u0000\u00bf$"+
- "\u0001\u0000\u0000\u0000\u00c0\u00c1\u0005!\u0000\u0000\u00c1&\u0001\u0000"+
- "\u0000\u0000\u00c2\u00c3\u0005&\u0000\u0000\u00c3\u00c4\u0005&\u0000\u0000"+
- "\u00c4(\u0001\u0000\u0000\u0000\u00c5\u00c6\u0005|\u0000\u0000\u00c6\u00c7"+
- "\u0005|\u0000\u0000\u00c7*\u0001\u0000\u0000\u0000\u00c8\u00c9\u0005."+
- "\u0000\u0000\u00c9,\u0001\u0000\u0000\u0000\u00ca\u00cb\u0005(\u0000\u0000"+
- "\u00cb.\u0001\u0000\u0000\u0000\u00cc\u00cd\u0005)\u0000\u0000\u00cd0"+
- "\u0001\u0000\u0000\u0000\u00ce\u00cf\u0005{\u0000\u0000\u00cf2\u0001\u0000"+
- "\u0000\u0000\u00d0\u00d1\u0005}\u0000\u0000\u00d14\u0001\u0000\u0000\u0000"+
- "\u00d2\u00d3\u0005;\u0000\u0000\u00d36\u0001\u0000\u0000\u0000\u00d4\u00d5"+
- "\u0005,\u0000\u0000\u00d58\u0001\u0000\u0000\u0000\u00d6\u00d7\u0005c"+
- "\u0000\u0000\u00d7\u00d8\u0005l\u0000\u0000\u00d8\u00d9\u0005a\u0000\u0000"+
- "\u00d9\u00da\u0005s\u0000\u0000\u00da\u00db\u0005s\u0000\u0000\u00db:"+
- "\u0001\u0000\u0000\u0000\u00dc\u00dd\u0005t\u0000\u0000\u00dd\u00de\u0005"+
- "h\u0000\u0000\u00de\u00df\u0005i\u0000\u0000\u00df\u00e0\u0005s\u0000"+
- "\u0000\u00e0<\u0001\u0000\u0000\u0000\u00e1\u00e2\u0005w\u0000\u0000\u00e2"+
- "\u00e3\u0005h\u0000\u0000\u00e3\u00e4\u0005i\u0000\u0000\u00e4\u00e5\u0005"+
- "l\u0000\u0000\u00e5\u00e6\u0005e\u0000\u0000\u00e6>\u0001\u0000\u0000"+
- "\u0000\u00e7\u00e8\u0005i\u0000\u0000\u00e8\u00e9\u0005f\u0000\u0000\u00e9"+
- "@\u0001\u0000\u0000\u0000\u00ea\u00eb\u0005e\u0000\u0000\u00eb\u00ec\u0005"+
- "l\u0000\u0000\u00ec\u00ed\u0005s\u0000\u0000\u00ed\u00ee\u0005e\u0000"+
- "\u0000\u00eeB\u0001\u0000\u0000\u0000\u00ef\u00f0\u0005r\u0000\u0000\u00f0"+
- "\u00f1\u0005e\u0000\u0000\u00f1\u00f2\u0005t\u0000\u0000\u00f2\u00f3\u0005"+
- "u\u0000\u0000\u00f3\u00f4\u0005r\u0000\u0000\u00f4\u00f5\u0005n\u0000"+
- "\u0000\u00f5D\u0001\u0000\u0000\u0000\u00f6\u00f7\u0005n\u0000\u0000\u00f7"+
- "\u00f8\u0005e\u0000\u0000\u00f8\u00f9\u0005w\u0000\u0000\u00f9F\u0001"+
- "\u0000\u0000\u0000\u00fa\u00fb\u0007\u0000\u0000\u0000\u00fbH\u0001\u0000"+
- "\u0000\u0000\u00fc\u00fd\u0007\u0001\u0000\u0000\u00fdJ\u0001\u0000\u0000"+
- "\u0000\u00fe\u0102\u0003G#\u0000\u00ff\u0102\u0003I$\u0000\u0100\u0102"+
- "\u0007\u0002\u0000\u0000\u0101\u00fe\u0001\u0000\u0000\u0000\u0101\u00ff"+
- "\u0001\u0000\u0000\u0000\u0101\u0100\u0001\u0000\u0000\u0000\u0102L\u0001"+
- "\u0000\u0000\u0000\u0103\u0107\u0003G#\u0000\u0104\u0106\u0003K%\u0000"+
- "\u0105\u0104\u0001\u0000\u0000\u0000\u0106\u0109\u0001\u0000\u0000\u0000"+
- "\u0107\u0105\u0001\u0000\u0000\u0000\u0107\u0108\u0001\u0000\u0000\u0000"+
- "\u0108N\u0001\u0000\u0000\u0000\u0109\u0107\u0001\u0000\u0000\u0000\u010a"+
- "\u010b\u0005v\u0000\u0000\u010b\u010c\u0005o\u0000\u0000\u010c\u010d\u0005"+
- "i\u0000\u0000\u010d\u010e\u0005d\u0000\u0000\u010eP\u0001\u0000\u0000"+
- "\u0000\u010f\u0110\u0005i\u0000\u0000\u0110\u0111\u0005n\u0000\u0000\u0111"+
- "\u0112\u0005t\u0000\u0000\u0112R\u0001\u0000\u0000\u0000\u0113\u0114\u0005"+
- "b\u0000\u0000\u0114\u0115\u0005o\u0000\u0000\u0115\u0116\u0005o\u0000"+
- "\u0000\u0116\u0117\u0005l\u0000\u0000\u0117T\u0001\u0000\u0000\u0000\u0118"+
- "\u0119\u0005c\u0000\u0000\u0119\u011a\u0005h\u0000\u0000\u011a\u011b\u0005"+
- "a\u0000\u0000\u011b\u011c\u0005r\u0000\u0000\u011cV\u0001\u0000\u0000"+
- "\u0000\u011d\u011f\u0007\u0003\u0000\u0000\u011e\u011d\u0001\u0000\u0000"+
- "\u0000\u011f\u0122\u0001\u0000\u0000\u0000\u0120\u011e\u0001\u0000\u0000"+
- "\u0000\u0120\u0121\u0001\u0000\u0000\u0000\u0121\u0124\u0001\u0000\u0000"+
- "\u0000\u0122\u0120\u0001\u0000\u0000\u0000\u0123\u0125\u0007\u0001\u0000"+
- "\u0000\u0124\u0123\u0001\u0000\u0000\u0000\u0125\u0126\u0001\u0000\u0000"+
- "\u0000\u0126\u0124\u0001\u0000\u0000\u0000\u0126\u0127\u0001\u0000\u0000"+
- "\u0000\u0127X\u0001\u0000\u0000\u0000\u0128\u012a\u0005\'\u0000\u0000"+
- "\u0129\u012b\b\u0004\u0000\u0000\u012a\u0129\u0001\u0000\u0000\u0000\u012a"+
- "\u012b\u0001\u0000\u0000\u0000\u012b\u012c\u0001\u0000\u0000\u0000\u012c"+
- "\u012d\u0005\'\u0000\u0000\u012dZ\u0001\u0000\u0000\u0000\u012e\u012f"+
- "\u0005t\u0000\u0000\u012f\u0130\u0005r\u0000\u0000\u0130\u0131\u0005u"+
- "\u0000\u0000\u0131\u0138\u0005e\u0000\u0000\u0132\u0133\u0005f\u0000\u0000"+
- "\u0133\u0134\u0005a\u0000\u0000\u0134\u0135\u0005l\u0000\u0000\u0135\u0136"+
- "\u0005s\u0000\u0000\u0136\u0138\u0005e\u0000\u0000\u0137\u012e\u0001\u0000"+
- "\u0000\u0000\u0137\u0132\u0001\u0000\u0000\u0000\u0138\\\u0001\u0000\u0000"+
- "\u0000\u0139\u013a\u0005n\u0000\u0000\u013a\u013b\u0005u\u0000\u0000\u013b"+
- "\u013c\u0005l\u0000\u0000\u013c\u013d\u0005l\u0000\u0000\u013d^\u0001"+
- "\u0000\u0000\u0000\u013e\u013f\u0007\u0005\u0000\u0000\u013f\u0140\u0001"+
- "\u0000\u0000\u0000\u0140\u0141\u0006/\u0000\u0000\u0141`\u0001\u0000\u0000"+
- "\u0000\u000b\u0000\u0092\u0096\u009e\u00a2\u0101\u0107\u0120\u0126\u012a"+
- "\u0137\u0001\u0006\u0000\u0000";
+ "\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0003\u0001\u0003"+
+ "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+
+ "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+
+ "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+
+ "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+
+ "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+
+ "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+
+ "\u0001\u0003\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004"+
+ "\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006"+
+ "\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0007\u0001\u0007\u0001\u0007"+
+ "\u0001\u0007\u0001\u0007\u0001\b\u0001\b\u0001\b\u0003\b\u00b6\b\b\u0001"+
+ "\t\u0001\t\u0003\t\u00ba\b\t\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001"+
+ "\n\u0003\n\u00c2\b\n\u0001\u000b\u0001\u000b\u0003\u000b\u00c6\b\u000b"+
+ "\u0001\f\u0001\f\u0001\r\u0001\r\u0001\u000e\u0001\u000e\u0001\u000f\u0001"+
+ "\u000f\u0001\u0010\u0001\u0010\u0001\u0011\u0001\u0011\u0001\u0012\u0001"+
+ "\u0012\u0001\u0013\u0001\u0013\u0001\u0014\u0001\u0014\u0001\u0014\u0001"+
+ "\u0015\u0001\u0015\u0001\u0015\u0001\u0016\u0001\u0016\u0001\u0016\u0001"+
+ "\u0017\u0001\u0017\u0001\u0017\u0001\u0018\u0001\u0018\u0001\u0019\u0001"+
+ "\u0019\u0001\u0019\u0001\u001a\u0001\u001a\u0001\u001a\u0001\u001b\u0001"+
+ "\u001b\u0001\u001c\u0001\u001c\u0001\u001d\u0001\u001d\u0001\u001e\u0001"+
+ "\u001e\u0001\u001f\u0001\u001f\u0001 \u0001 \u0001!\u0001!\u0001\"\u0001"+
+ "\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001#\u0001#\u0001#\u0001#\u0001#"+
+ "\u0001$\u0001$\u0001$\u0001$\u0001$\u0001$\u0001%\u0001%\u0001%\u0001"+
+ "&\u0001&\u0001&\u0001&\u0001&\u0001\'\u0001\'\u0001\'\u0001\'\u0001\'"+
+ "\u0001\'\u0001\'\u0001(\u0001(\u0001(\u0001(\u0001)\u0005)\u011f\b)\n"+
+ ")\f)\u0122\t)\u0001)\u0004)\u0125\b)\u000b)\f)\u0126\u0001*\u0001*\u0003"+
+ "*\u012b\b*\u0001*\u0001*\u0001+\u0001+\u0001,\u0001,\u0001-\u0001-\u0001"+
+ "-\u0003-\u0136\b-\u0001.\u0001.\u0005.\u013a\b.\n.\f.\u013d\t.\u0001/"+
+ "\u0001/\u0001/\u0001/\u0000\u00000\u0001\u0001\u0003\u0002\u0005\u0003"+
+ "\u0007\u0004\t\u0005\u000b\u0006\r\u0007\u000f\b\u0011\t\u0013\n\u0015"+
+ "\u000b\u0017\f\u0019\r\u001b\u000e\u001d\u000f\u001f\u0010!\u0011#\u0012"+
+ "%\u0013\'\u0014)\u0015+\u0016-\u0017/\u00181\u00193\u001a5\u001b7\u001c"+
+ "9\u001d;\u001e=\u001f? A!C\"E#G$I%K&M\'O(Q)S*U+W\u0000Y\u0000[\u0000]"+
+ ",_-\u0001\u0000\u0006\u0002\u0000++--\u0001\u000009\u0002\u0000\n\n\r"+
+ "\r\u0002\u0000AZaz\u0002\u0000$$__\u0003\u0000\t\n\r\r \u014e\u0000\u0001"+
+ "\u0001\u0000\u0000\u0000\u0000\u0003\u0001\u0000\u0000\u0000\u0000\u0005"+
+ "\u0001\u0000\u0000\u0000\u0000\u0007\u0001\u0000\u0000\u0000\u0000\t\u0001"+
+ "\u0000\u0000\u0000\u0000\u000b\u0001\u0000\u0000\u0000\u0000\r\u0001\u0000"+
+ "\u0000\u0000\u0000\u000f\u0001\u0000\u0000\u0000\u0000\u0011\u0001\u0000"+
+ "\u0000\u0000\u0000\u0013\u0001\u0000\u0000\u0000\u0000\u0015\u0001\u0000"+
+ "\u0000\u0000\u0000\u0017\u0001\u0000\u0000\u0000\u0000\u0019\u0001\u0000"+
+ "\u0000\u0000\u0000\u001b\u0001\u0000\u0000\u0000\u0000\u001d\u0001\u0000"+
+ "\u0000\u0000\u0000\u001f\u0001\u0000\u0000\u0000\u0000!\u0001\u0000\u0000"+
+ "\u0000\u0000#\u0001\u0000\u0000\u0000\u0000%\u0001\u0000\u0000\u0000\u0000"+
+ "\'\u0001\u0000\u0000\u0000\u0000)\u0001\u0000\u0000\u0000\u0000+\u0001"+
+ "\u0000\u0000\u0000\u0000-\u0001\u0000\u0000\u0000\u0000/\u0001\u0000\u0000"+
+ "\u0000\u00001\u0001\u0000\u0000\u0000\u00003\u0001\u0000\u0000\u0000\u0000"+
+ "5\u0001\u0000\u0000\u0000\u00007\u0001\u0000\u0000\u0000\u00009\u0001"+
+ "\u0000\u0000\u0000\u0000;\u0001\u0000\u0000\u0000\u0000=\u0001\u0000\u0000"+
+ "\u0000\u0000?\u0001\u0000\u0000\u0000\u0000A\u0001\u0000\u0000\u0000\u0000"+
+ "C\u0001\u0000\u0000\u0000\u0000E\u0001\u0000\u0000\u0000\u0000G\u0001"+
+ "\u0000\u0000\u0000\u0000I\u0001\u0000\u0000\u0000\u0000K\u0001\u0000\u0000"+
+ "\u0000\u0000M\u0001\u0000\u0000\u0000\u0000O\u0001\u0000\u0000\u0000\u0000"+
+ "Q\u0001\u0000\u0000\u0000\u0000S\u0001\u0000\u0000\u0000\u0000U\u0001"+
+ "\u0000\u0000\u0000\u0000]\u0001\u0000\u0000\u0000\u0000_\u0001\u0000\u0000"+
+ "\u0000\u0001j\u0001\u0000\u0000\u0000\u0003l\u0001\u0000\u0000\u0000\u0005"+
+ "q\u0001\u0000\u0000\u0000\u0007x\u0001\u0000\u0000\u0000\t\u009f\u0001"+
+ "\u0000\u0000\u0000\u000b\u00a4\u0001\u0000\u0000\u0000\r\u00a8\u0001\u0000"+
+ "\u0000\u0000\u000f\u00ad\u0001\u0000\u0000\u0000\u0011\u00b5\u0001\u0000"+
+ "\u0000\u0000\u0013\u00b9\u0001\u0000\u0000\u0000\u0015\u00c1\u0001\u0000"+
+ "\u0000\u0000\u0017\u00c5\u0001\u0000\u0000\u0000\u0019\u00c7\u0001\u0000"+
+ "\u0000\u0000\u001b\u00c9\u0001\u0000\u0000\u0000\u001d\u00cb\u0001\u0000"+
+ "\u0000\u0000\u001f\u00cd\u0001\u0000\u0000\u0000!\u00cf\u0001\u0000\u0000"+
+ "\u0000#\u00d1\u0001\u0000\u0000\u0000%\u00d3\u0001\u0000\u0000\u0000\'"+
+ "\u00d5\u0001\u0000\u0000\u0000)\u00d7\u0001\u0000\u0000\u0000+\u00da\u0001"+
+ "\u0000\u0000\u0000-\u00dd\u0001\u0000\u0000\u0000/\u00e0\u0001\u0000\u0000"+
+ "\u00001\u00e3\u0001\u0000\u0000\u00003\u00e5\u0001\u0000\u0000\u00005"+
+ "\u00e8\u0001\u0000\u0000\u00007\u00eb\u0001\u0000\u0000\u00009\u00ed\u0001"+
+ "\u0000\u0000\u0000;\u00ef\u0001\u0000\u0000\u0000=\u00f1\u0001\u0000\u0000"+
+ "\u0000?\u00f3\u0001\u0000\u0000\u0000A\u00f5\u0001\u0000\u0000\u0000C"+
+ "\u00f7\u0001\u0000\u0000\u0000E\u00f9\u0001\u0000\u0000\u0000G\u00ff\u0001"+
+ "\u0000\u0000\u0000I\u0104\u0001\u0000\u0000\u0000K\u010a\u0001\u0000\u0000"+
+ "\u0000M\u010d\u0001\u0000\u0000\u0000O\u0112\u0001\u0000\u0000\u0000Q"+
+ "\u0119\u0001\u0000\u0000\u0000S\u0120\u0001\u0000\u0000\u0000U\u0128\u0001"+
+ "\u0000\u0000\u0000W\u012e\u0001\u0000\u0000\u0000Y\u0130\u0001\u0000\u0000"+
+ "\u0000[\u0135\u0001\u0000\u0000\u0000]\u0137\u0001\u0000\u0000\u0000_"+
+ "\u013e\u0001\u0000\u0000\u0000ab\u0005t\u0000\u0000bc\u0005r\u0000\u0000"+
+ "cd\u0005u\u0000\u0000dk\u0005e\u0000\u0000ef\u0005f\u0000\u0000fg\u0005"+
+ "a\u0000\u0000gh\u0005l\u0000\u0000hi\u0005s\u0000\u0000ik\u0005e\u0000"+
+ "\u0000ja\u0001\u0000\u0000\u0000je\u0001\u0000\u0000\u0000k\u0002\u0001"+
+ "\u0000\u0000\u0000lm\u0005n\u0000\u0000mn\u0005u\u0000\u0000no\u0005l"+
+ "\u0000\u0000op\u0005l\u0000\u0000p\u0004\u0001\u0000\u0000\u0000qr\u0005"+
+ "p\u0000\u0000rs\u0005u\u0000\u0000st\u0005b\u0000\u0000tu\u0005l\u0000"+
+ "\u0000uv\u0005i\u0000\u0000vw\u0005c\u0000\u0000w\u0006\u0001\u0000\u0000"+
+ "\u0000xy\u0005p\u0000\u0000yz\u0005u\u0000\u0000z{\u0005b\u0000\u0000"+
+ "{|\u0005l\u0000\u0000|}\u0005i\u0000\u0000}~\u0005c\u0000\u0000~\u007f"+
+ "\u0005 \u0000\u0000\u007f\u0080\u0005s\u0000\u0000\u0080\u0081\u0005t"+
+ "\u0000\u0000\u0081\u0082\u0005a\u0000\u0000\u0082\u0083\u0005t\u0000\u0000"+
+ "\u0083\u0084\u0005i\u0000\u0000\u0084\u0085\u0005c\u0000\u0000\u0085\u0086"+
+ "\u0005 \u0000\u0000\u0086\u0087\u0005v\u0000\u0000\u0087\u0088\u0005o"+
+ "\u0000\u0000\u0088\u0089\u0005i\u0000\u0000\u0089\u008a\u0005d\u0000\u0000"+
+ "\u008a\u008b\u0005 \u0000\u0000\u008b\u008c\u0005m\u0000\u0000\u008c\u008d"+
+ "\u0005a\u0000\u0000\u008d\u008e\u0005i\u0000\u0000\u008e\u008f\u0005n"+
+ "\u0000\u0000\u008f\u0090\u0005(\u0000\u0000\u0090\u0091\u0005S\u0000\u0000"+
+ "\u0091\u0092\u0005t\u0000\u0000\u0092\u0093\u0005r\u0000\u0000\u0093\u0094"+
+ "\u0005i\u0000\u0000\u0094\u0095\u0005n\u0000\u0000\u0095\u0096\u0005g"+
+ "\u0000\u0000\u0096\u0097\u0005[\u0000\u0000\u0097\u0098\u0005]\u0000\u0000"+
+ "\u0098\u0099\u0005 \u0000\u0000\u0099\u009a\u0005a\u0000\u0000\u009a\u009b"+
+ "\u0005r\u0000\u0000\u009b\u009c\u0005g\u0000\u0000\u009c\u009d\u0005s"+
+ "\u0000\u0000\u009d\u009e\u0005)\u0000\u0000\u009e\b\u0001\u0000\u0000"+
+ "\u0000\u009f\u00a0\u0005v\u0000\u0000\u00a0\u00a1\u0005o\u0000\u0000\u00a1"+
+ "\u00a2\u0005i\u0000\u0000\u00a2\u00a3\u0005d\u0000\u0000\u00a3\n\u0001"+
+ "\u0000\u0000\u0000\u00a4\u00a5\u0005i\u0000\u0000\u00a5\u00a6\u0005n\u0000"+
+ "\u0000\u00a6\u00a7\u0005t\u0000\u0000\u00a7\f\u0001\u0000\u0000\u0000"+
+ "\u00a8\u00a9\u0005b\u0000\u0000\u00a9\u00aa\u0005o\u0000\u0000\u00aa\u00ab"+
+ "\u0005o\u0000\u0000\u00ab\u00ac\u0005l\u0000\u0000\u00ac\u000e\u0001\u0000"+
+ "\u0000\u0000\u00ad\u00ae\u0005c\u0000\u0000\u00ae\u00af\u0005h\u0000\u0000"+
+ "\u00af\u00b0\u0005a\u0000\u0000\u00b0\u00b1\u0005r\u0000\u0000\u00b1\u0010"+
+ "\u0001\u0000\u0000\u0000\u00b2\u00b6\u0003\u001f\u000f\u0000\u00b3\u00b6"+
+ "\u0003!\u0010\u0000\u00b4\u00b6\u0003#\u0011\u0000\u00b5\u00b2\u0001\u0000"+
+ "\u0000\u0000\u00b5\u00b3\u0001\u0000\u0000\u0000\u00b5\u00b4\u0001\u0000"+
+ "\u0000\u0000\u00b6\u0012\u0001\u0000\u0000\u0000\u00b7\u00ba\u0003\u001d"+
+ "\u000e\u0000\u00b8\u00ba\u0003\u001b\r\u0000\u00b9\u00b7\u0001\u0000\u0000"+
+ "\u0000\u00b9\u00b8\u0001\u0000\u0000\u0000\u00ba\u0014\u0001\u0000\u0000"+
+ "\u0000\u00bb\u00c2\u0003%\u0012\u0000\u00bc\u00c2\u0003\'\u0013\u0000"+
+ "\u00bd\u00c2\u0003)\u0014\u0000\u00be\u00c2\u0003+\u0015\u0000\u00bf\u00c2"+
+ "\u0003-\u0016\u0000\u00c0\u00c2\u0003/\u0017\u0000\u00c1\u00bb\u0001\u0000"+
+ "\u0000\u0000\u00c1\u00bc\u0001\u0000\u0000\u0000\u00c1\u00bd\u0001\u0000"+
+ "\u0000\u0000\u00c1\u00be\u0001\u0000\u0000\u0000\u00c1\u00bf\u0001\u0000"+
+ "\u0000\u0000\u00c1\u00c0\u0001\u0000\u0000\u0000\u00c2\u0016\u0001\u0000"+
+ "\u0000\u0000\u00c3\u00c6\u00033\u0019\u0000\u00c4\u00c6\u00035\u001a\u0000"+
+ "\u00c5\u00c3\u0001\u0000\u0000\u0000\u00c5\u00c4\u0001\u0000\u0000\u0000"+
+ "\u00c6\u0018\u0001\u0000\u0000\u0000\u00c7\u00c8\u0005=\u0000\u0000\u00c8"+
+ "\u001a\u0001\u0000\u0000\u0000\u00c9\u00ca\u0005-\u0000\u0000\u00ca\u001c"+
+ "\u0001\u0000\u0000\u0000\u00cb\u00cc\u0005+\u0000\u0000\u00cc\u001e\u0001"+
+ "\u0000\u0000\u0000\u00cd\u00ce\u0005*\u0000\u0000\u00ce \u0001\u0000\u0000"+
+ "\u0000\u00cf\u00d0\u0005/\u0000\u0000\u00d0\"\u0001\u0000\u0000\u0000"+
+ "\u00d1\u00d2\u0005%\u0000\u0000\u00d2$\u0001\u0000\u0000\u0000\u00d3\u00d4"+
+ "\u0005>\u0000\u0000\u00d4&\u0001\u0000\u0000\u0000\u00d5\u00d6\u0005<"+
+ "\u0000\u0000\u00d6(\u0001\u0000\u0000\u0000\u00d7\u00d8\u0005>\u0000\u0000"+
+ "\u00d8\u00d9\u0005=\u0000\u0000\u00d9*\u0001\u0000\u0000\u0000\u00da\u00db"+
+ "\u0005<\u0000\u0000\u00db\u00dc\u0005=\u0000\u0000\u00dc,\u0001\u0000"+
+ "\u0000\u0000\u00dd\u00de\u0005=\u0000\u0000\u00de\u00df\u0005=\u0000\u0000"+
+ "\u00df.\u0001\u0000\u0000\u0000\u00e0\u00e1\u0005!\u0000\u0000\u00e1\u00e2"+
+ "\u0005=\u0000\u0000\u00e20\u0001\u0000\u0000\u0000\u00e3\u00e4\u0005!"+
+ "\u0000\u0000\u00e42\u0001\u0000\u0000\u0000\u00e5\u00e6\u0005&\u0000\u0000"+
+ "\u00e6\u00e7\u0005&\u0000\u0000\u00e74\u0001\u0000\u0000\u0000\u00e8\u00e9"+
+ "\u0005|\u0000\u0000\u00e9\u00ea\u0005|\u0000\u0000\u00ea6\u0001\u0000"+
+ "\u0000\u0000\u00eb\u00ec\u0005.\u0000\u0000\u00ec8\u0001\u0000\u0000\u0000"+
+ "\u00ed\u00ee\u0005(\u0000\u0000\u00ee:\u0001\u0000\u0000\u0000\u00ef\u00f0"+
+ "\u0005)\u0000\u0000\u00f0<\u0001\u0000\u0000\u0000\u00f1\u00f2\u0005{"+
+ "\u0000\u0000\u00f2>\u0001\u0000\u0000\u0000\u00f3\u00f4\u0005}\u0000\u0000"+
+ "\u00f4@\u0001\u0000\u0000\u0000\u00f5\u00f6\u0005;\u0000\u0000\u00f6B"+
+ "\u0001\u0000\u0000\u0000\u00f7\u00f8\u0005,\u0000\u0000\u00f8D\u0001\u0000"+
+ "\u0000\u0000\u00f9\u00fa\u0005c\u0000\u0000\u00fa\u00fb\u0005l\u0000\u0000"+
+ "\u00fb\u00fc\u0005a\u0000\u0000\u00fc\u00fd\u0005s\u0000\u0000\u00fd\u00fe"+
+ "\u0005s\u0000\u0000\u00feF\u0001\u0000\u0000\u0000\u00ff\u0100\u0005t"+
+ "\u0000\u0000\u0100\u0101\u0005h\u0000\u0000\u0101\u0102\u0005i\u0000\u0000"+
+ "\u0102\u0103\u0005s\u0000\u0000\u0103H\u0001\u0000\u0000\u0000\u0104\u0105"+
+ "\u0005w\u0000\u0000\u0105\u0106\u0005h\u0000\u0000\u0106\u0107\u0005i"+
+ "\u0000\u0000\u0107\u0108\u0005l\u0000\u0000\u0108\u0109\u0005e\u0000\u0000"+
+ "\u0109J\u0001\u0000\u0000\u0000\u010a\u010b\u0005i\u0000\u0000\u010b\u010c"+
+ "\u0005f\u0000\u0000\u010cL\u0001\u0000\u0000\u0000\u010d\u010e\u0005e"+
+ "\u0000\u0000\u010e\u010f\u0005l\u0000\u0000\u010f\u0110\u0005s\u0000\u0000"+
+ "\u0110\u0111\u0005e\u0000\u0000\u0111N\u0001\u0000\u0000\u0000\u0112\u0113"+
+ "\u0005r\u0000\u0000\u0113\u0114\u0005e\u0000\u0000\u0114\u0115\u0005t"+
+ "\u0000\u0000\u0115\u0116\u0005u\u0000\u0000\u0116\u0117\u0005r\u0000\u0000"+
+ "\u0117\u0118\u0005n\u0000\u0000\u0118P\u0001\u0000\u0000\u0000\u0119\u011a"+
+ "\u0005n\u0000\u0000\u011a\u011b\u0005e\u0000\u0000\u011b\u011c\u0005w"+
+ "\u0000\u0000\u011cR\u0001\u0000\u0000\u0000\u011d\u011f\u0007\u0000\u0000"+
+ "\u0000\u011e\u011d\u0001\u0000\u0000\u0000\u011f\u0122\u0001\u0000\u0000"+
+ "\u0000\u0120\u011e\u0001\u0000\u0000\u0000\u0120\u0121\u0001\u0000\u0000"+
+ "\u0000\u0121\u0124\u0001\u0000\u0000\u0000\u0122\u0120\u0001\u0000\u0000"+
+ "\u0000\u0123\u0125\u0007\u0001\u0000\u0000\u0124\u0123\u0001\u0000\u0000"+
+ "\u0000\u0125\u0126\u0001\u0000\u0000\u0000\u0126\u0124\u0001\u0000\u0000"+
+ "\u0000\u0126\u0127\u0001\u0000\u0000\u0000\u0127T\u0001\u0000\u0000\u0000"+
+ "\u0128\u012a\u0005\'\u0000\u0000\u0129\u012b\b\u0002\u0000\u0000\u012a"+
+ "\u0129\u0001\u0000\u0000\u0000\u012a\u012b\u0001\u0000\u0000\u0000\u012b"+
+ "\u012c\u0001\u0000\u0000\u0000\u012c\u012d\u0005\'\u0000\u0000\u012dV"+
+ "\u0001\u0000\u0000\u0000\u012e\u012f\u0007\u0003\u0000\u0000\u012fX\u0001"+
+ "\u0000\u0000\u0000\u0130\u0131\u0007\u0001\u0000\u0000\u0131Z\u0001\u0000"+
+ "\u0000\u0000\u0132\u0136\u0003W+\u0000\u0133\u0136\u0003Y,\u0000\u0134"+
+ "\u0136\u0007\u0004\u0000\u0000\u0135\u0132\u0001\u0000\u0000\u0000\u0135"+
+ "\u0133\u0001\u0000\u0000\u0000\u0135\u0134\u0001\u0000\u0000\u0000\u0136"+
+ "\\\u0001\u0000\u0000\u0000\u0137\u013b\u0003W+\u0000\u0138\u013a\u0003"+
+ "[-\u0000\u0139\u0138\u0001\u0000\u0000\u0000\u013a\u013d\u0001\u0000\u0000"+
+ "\u0000\u013b\u0139\u0001\u0000\u0000\u0000\u013b\u013c\u0001\u0000\u0000"+
+ "\u0000\u013c^\u0001\u0000\u0000\u0000\u013d\u013b\u0001\u0000\u0000\u0000"+
+ "\u013e\u013f\u0007\u0005\u0000\u0000\u013f\u0140\u0001\u0000\u0000\u0000"+
+ "\u0140\u0141\u0006/\u0000\u0000\u0141`\u0001\u0000\u0000\u0000\u000b\u0000"+
+ "j\u00b5\u00b9\u00c1\u00c5\u0120\u0126\u012a\u0135\u013b\u0001\u0006\u0000"+
+ "\u0000";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
diff --git a/src/main/java/gen/DecafLexer.tokens b/src/main/java/gen/DecafLexer.tokens
index 6873c36..bd7816d 100644
--- a/src/main/java/gen/DecafLexer.tokens
+++ b/src/main/java/gen/DecafLexer.tokens
@@ -1,81 +1,81 @@
-AccessModifierPublic=1
-MainMethodDecl=2
-DotOperator=3
-LineOperator=4
-ComparisonOperator=5
-LogicalOpertor=6
-Assign=7
-Minus=8
-Plus=9
-Multipilkation=10
-Division=11
-Modulo=12
-Greater=13
-Less=14
-GreaterEqual=15
-LessEqual=16
-Equal=17
-NotEqual=18
-Not=19
-And=20
-Or=21
-Dot=22
-OpenRoundBracket=23
-ClosedRoundBracket=24
-OpenCurlyBracket=25
-ClosedCurlyBracket=26
-Semicolon=27
-Comma=28
-Class=29
-This=30
-While=31
-If=32
-Else=33
-Return=34
-New=35
-Identifier=36
-Void=37
-Int=38
-Boolean=39
-Char=40
-IntValue=41
-CharValue=42
-BooleanValue=43
-NullValue=44
+BooleanValue=1
+NullValue=2
+AccessModifierPublic=3
+MainMethodDecl=4
+Void=5
+Int=6
+Boolean=7
+Char=8
+DotOperator=9
+LineOperator=10
+ComparisonOperator=11
+LogicalOpertor=12
+Assign=13
+Minus=14
+Plus=15
+Multipilkation=16
+Division=17
+Modulo=18
+Greater=19
+Less=20
+GreaterEqual=21
+LessEqual=22
+Equal=23
+NotEqual=24
+Not=25
+And=26
+Or=27
+Dot=28
+OpenRoundBracket=29
+ClosedRoundBracket=30
+OpenCurlyBracket=31
+ClosedCurlyBracket=32
+Semicolon=33
+Comma=34
+Class=35
+This=36
+While=37
+If=38
+Else=39
+Return=40
+New=41
+IntValue=42
+CharValue=43
+Identifier=44
WS=45
-'public'=1
-'public static void main(String[] args)'=2
-'='=7
-'-'=8
-'+'=9
-'*'=10
-'/'=11
-'%'=12
-'>'=13
-'<'=14
-'>='=15
-'<='=16
-'=='=17
-'!='=18
-'!'=19
-'&&'=20
-'||'=21
-'.'=22
-'('=23
-')'=24
-'{'=25
-'}'=26
-';'=27
-','=28
-'class'=29
-'this'=30
-'while'=31
-'if'=32
-'else'=33
-'return'=34
-'new'=35
-'void'=37
-'int'=38
-'bool'=39
-'char'=40
-'null'=44
+'null'=2
+'public'=3
+'public static void main(String[] args)'=4
+'void'=5
+'int'=6
+'bool'=7
+'char'=8
+'='=13
+'-'=14
+'+'=15
+'*'=16
+'/'=17
+'%'=18
+'>'=19
+'<'=20
+'>='=21
+'<='=22
+'=='=23
+'!='=24
+'!'=25
+'&&'=26
+'||'=27
+'.'=28
+'('=29
+')'=30
+'{'=31
+'}'=32
+';'=33
+','=34
+'class'=35
+'this'=36
+'while'=37
+'if'=38
+'else'=39
+'return'=40
+'new'=41
diff --git a/src/main/java/gen/DecafListener.java b/src/main/java/gen/DecafListener.java
index 4e2702f..5e24f01 100644
--- a/src/main/java/gen/DecafListener.java
+++ b/src/main/java/gen/DecafListener.java
@@ -1,4 +1,5 @@
-package gen;// Generated from C:/Users/dh10krj/OneDrive - Durr Group/Dokumente/S4/Compilerbau/projekt/NichtHaskell/Source/Decaf.g4 by ANTLR 4.13.1
+// Generated from C:/Users/User/DHBW/Compiler/src/main/java/Decaf.g4 by ANTLR 4.13.1
+package gen;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
@@ -46,16 +47,6 @@ public interface DecafListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitMethodDecl(DecafParser.MethodDeclContext ctx);
- /**
- * Enter a parse tree produced by {@link DecafParser#fieldDecl}.
- * @param ctx the parse tree
- */
- void enterFieldDecl(DecafParser.FieldDeclContext ctx);
- /**
- * Exit a parse tree produced by {@link DecafParser#fieldDecl}.
- * @param ctx the parse tree
- */
- void exitFieldDecl(DecafParser.FieldDeclContext ctx);
/**
* Enter a parse tree produced by {@link DecafParser#parameterList}.
* @param ctx the parse tree
@@ -76,6 +67,16 @@ public interface DecafListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitParameter(DecafParser.ParameterContext ctx);
+ /**
+ * Enter a parse tree produced by {@link DecafParser#argumentList}.
+ * @param ctx the parse tree
+ */
+ void enterArgumentList(DecafParser.ArgumentListContext ctx);
+ /**
+ * Exit a parse tree produced by {@link DecafParser#argumentList}.
+ * @param ctx the parse tree
+ */
+ void exitArgumentList(DecafParser.ArgumentListContext ctx);
/**
* Enter a parse tree produced by {@link DecafParser#expression}.
* @param ctx the parse tree
@@ -96,26 +97,6 @@ public interface DecafListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitSubExpression(DecafParser.SubExpressionContext ctx);
- /**
- * Enter a parse tree produced by {@link DecafParser#assignableExpr}.
- * @param ctx the parse tree
- */
- void enterAssignableExpr(DecafParser.AssignableExprContext ctx);
- /**
- * Exit a parse tree produced by {@link DecafParser#assignableExpr}.
- * @param ctx the parse tree
- */
- void exitAssignableExpr(DecafParser.AssignableExprContext ctx);
- /**
- * Enter a parse tree produced by {@link DecafParser#instVar}.
- * @param ctx the parse tree
- */
- void enterInstVar(DecafParser.InstVarContext ctx);
- /**
- * Exit a parse tree produced by {@link DecafParser#instVar}.
- * @param ctx the parse tree
- */
- void exitInstVar(DecafParser.InstVarContext ctx);
/**
* Enter a parse tree produced by {@link DecafParser#methodCall}.
* @param ctx the parse tree
@@ -127,15 +108,35 @@ public interface DecafListener extends ParseTreeListener {
*/
void exitMethodCall(DecafParser.MethodCallContext ctx);
/**
- * Enter a parse tree produced by {@link DecafParser#argumentList}.
+ * Enter a parse tree produced by {@link DecafParser#statement}.
* @param ctx the parse tree
*/
- void enterArgumentList(DecafParser.ArgumentListContext ctx);
+ void enterStatement(DecafParser.StatementContext ctx);
/**
- * Exit a parse tree produced by {@link DecafParser#argumentList}.
+ * Exit a parse tree produced by {@link DecafParser#statement}.
* @param ctx the parse tree
*/
- void exitArgumentList(DecafParser.ArgumentListContext ctx);
+ void exitStatement(DecafParser.StatementContext ctx);
+ /**
+ * Enter a parse tree produced by {@link DecafParser#stmtExpr}.
+ * @param ctx the parse tree
+ */
+ void enterStmtExpr(DecafParser.StmtExprContext ctx);
+ /**
+ * Exit a parse tree produced by {@link DecafParser#stmtExpr}.
+ * @param ctx the parse tree
+ */
+ void exitStmtExpr(DecafParser.StmtExprContext ctx);
+ /**
+ * Enter a parse tree produced by {@link DecafParser#assignableExpr}.
+ * @param ctx the parse tree
+ */
+ void enterAssignableExpr(DecafParser.AssignableExprContext ctx);
+ /**
+ * Exit a parse tree produced by {@link DecafParser#assignableExpr}.
+ * @param ctx the parse tree
+ */
+ void exitAssignableExpr(DecafParser.AssignableExprContext ctx);
/**
* Enter a parse tree produced by {@link DecafParser#subReceiver}.
* @param ctx the parse tree
@@ -147,25 +148,15 @@ public interface DecafListener extends ParseTreeListener {
*/
void exitSubReceiver(DecafParser.SubReceiverContext ctx);
/**
- * Enter a parse tree produced by {@link DecafParser#receiver}.
+ * Enter a parse tree produced by {@link DecafParser#instVar}.
* @param ctx the parse tree
*/
- void enterReceiver(DecafParser.ReceiverContext ctx);
+ void enterInstVar(DecafParser.InstVarContext ctx);
/**
- * Exit a parse tree produced by {@link DecafParser#receiver}.
+ * Exit a parse tree produced by {@link DecafParser#instVar}.
* @param ctx the parse tree
*/
- void exitReceiver(DecafParser.ReceiverContext ctx);
- /**
- * Enter a parse tree produced by {@link DecafParser#receivingMethod}.
- * @param ctx the parse tree
- */
- void enterReceivingMethod(DecafParser.ReceivingMethodContext ctx);
- /**
- * Exit a parse tree produced by {@link DecafParser#receivingMethod}.
- * @param ctx the parse tree
- */
- void exitReceivingMethod(DecafParser.ReceivingMethodContext ctx);
+ void exitInstVar(DecafParser.InstVarContext ctx);
/**
* Enter a parse tree produced by {@link DecafParser#binaryExpr}.
* @param ctx the parse tree
@@ -226,26 +217,6 @@ public interface DecafListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitNonCalcOperator(DecafParser.NonCalcOperatorContext ctx);
- /**
- * Enter a parse tree produced by {@link DecafParser#stmtExpr}.
- * @param ctx the parse tree
- */
- void enterStmtExpr(DecafParser.StmtExprContext ctx);
- /**
- * Exit a parse tree produced by {@link DecafParser#stmtExpr}.
- * @param ctx the parse tree
- */
- void exitStmtExpr(DecafParser.StmtExprContext ctx);
- /**
- * Enter a parse tree produced by {@link DecafParser#statement}.
- * @param ctx the parse tree
- */
- void enterStatement(DecafParser.StatementContext ctx);
- /**
- * Exit a parse tree produced by {@link DecafParser#statement}.
- * @param ctx the parse tree
- */
- void exitStatement(DecafParser.StatementContext ctx);
/**
* Enter a parse tree produced by {@link DecafParser#returnStmt}.
* @param ctx the parse tree
@@ -336,6 +307,26 @@ public interface DecafListener extends ParseTreeListener {
* @param ctx the parse tree
*/
void exitNewDecl(DecafParser.NewDeclContext ctx);
+ /**
+ * Enter a parse tree produced by {@link DecafParser#receiver}.
+ * @param ctx the parse tree
+ */
+ void enterReceiver(DecafParser.ReceiverContext ctx);
+ /**
+ * Exit a parse tree produced by {@link DecafParser#receiver}.
+ * @param ctx the parse tree
+ */
+ void exitReceiver(DecafParser.ReceiverContext ctx);
+ /**
+ * Enter a parse tree produced by {@link DecafParser#receivingMethod}.
+ * @param ctx the parse tree
+ */
+ void enterReceivingMethod(DecafParser.ReceivingMethodContext ctx);
+ /**
+ * Exit a parse tree produced by {@link DecafParser#receivingMethod}.
+ * @param ctx the parse tree
+ */
+ void exitReceivingMethod(DecafParser.ReceivingMethodContext ctx);
/**
* Enter a parse tree produced by {@link DecafParser#type}.
* @param ctx the parse tree
diff --git a/src/main/java/gen/DecafParser.java b/src/main/java/gen/DecafParser.java
index f46dc11..240e011 100644
--- a/src/main/java/gen/DecafParser.java
+++ b/src/main/java/gen/DecafParser.java
@@ -1,4 +1,5 @@
-package gen;// Generated from C:/Users/dh10krj/OneDrive - Durr Group/Dokumente/S4/Compilerbau/projekt/NichtHaskell/Source/Decaf.g4 by ANTLR 4.13.1
+// Generated from C:/Users/User/DHBW/Compiler/src/main/java/Decaf.g4 by ANTLR 4.13.1
+package gen;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
@@ -16,57 +17,58 @@ public class DecafParser extends Parser {
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
- AccessModifierPublic=1, MainMethodDecl=2, DotOperator=3, LineOperator=4,
- ComparisonOperator=5, LogicalOpertor=6, Assign=7, Minus=8, Plus=9, Multipilkation=10,
- Division=11, Modulo=12, Greater=13, Less=14, GreaterEqual=15, LessEqual=16,
- Equal=17, NotEqual=18, Not=19, And=20, Or=21, Dot=22, OpenRoundBracket=23,
- ClosedRoundBracket=24, OpenCurlyBracket=25, ClosedCurlyBracket=26, Semicolon=27,
- Comma=28, Class=29, This=30, While=31, If=32, Else=33, Return=34, New=35,
- Identifier=36, Void=37, Int=38, Boolean=39, Char=40, IntValue=41, CharValue=42,
- BooleanValue=43, NullValue=44, WS=45;
+ BooleanValue=1, NullValue=2, AccessModifierPublic=3, MainMethodDecl=4,
+ Void=5, Int=6, Boolean=7, Char=8, DotOperator=9, LineOperator=10, ComparisonOperator=11,
+ LogicalOpertor=12, Assign=13, Minus=14, Plus=15, Multipilkation=16, Division=17,
+ Modulo=18, Greater=19, Less=20, GreaterEqual=21, LessEqual=22, Equal=23,
+ NotEqual=24, Not=25, And=26, Or=27, Dot=28, OpenRoundBracket=29, ClosedRoundBracket=30,
+ OpenCurlyBracket=31, ClosedCurlyBracket=32, Semicolon=33, Comma=34, Class=35,
+ This=36, While=37, If=38, Else=39, Return=40, New=41, IntValue=42, CharValue=43,
+ Identifier=44, WS=45;
public static final int
RULE_program = 0, RULE_classdecl = 1, RULE_constuctorDecl = 2, RULE_methodDecl = 3,
- RULE_fieldDecl = 4, RULE_parameterList = 5, RULE_parameter = 6, RULE_expression = 7,
- RULE_subExpression = 8, RULE_assignableExpr = 9, RULE_instVar = 10, RULE_methodCall = 11,
- RULE_argumentList = 12, RULE_subReceiver = 13, RULE_receiver = 14, RULE_receivingMethod = 15,
- RULE_binaryExpr = 16, RULE_calcExpr = 17, RULE_dotExpr = 18, RULE_dotSubExpr = 19,
- RULE_nonCalcExpr = 20, RULE_nonCalcOperator = 21, RULE_stmtExpr = 22,
- RULE_statement = 23, RULE_returnStmt = 24, RULE_localVarDecl = 25, RULE_block = 26,
- RULE_whileStmt = 27, RULE_ifElseStmt = 28, RULE_ifStmt = 29, RULE_elseStmt = 30,
- RULE_assign = 31, RULE_newDecl = 32, RULE_type = 33, RULE_value = 34;
+ RULE_parameterList = 4, RULE_parameter = 5, RULE_argumentList = 6, RULE_expression = 7,
+ RULE_subExpression = 8, RULE_methodCall = 9, RULE_statement = 10, RULE_stmtExpr = 11,
+ RULE_assignableExpr = 12, RULE_subReceiver = 13, RULE_instVar = 14, RULE_binaryExpr = 15,
+ RULE_calcExpr = 16, RULE_dotExpr = 17, RULE_dotSubExpr = 18, RULE_nonCalcExpr = 19,
+ RULE_nonCalcOperator = 20, RULE_returnStmt = 21, RULE_localVarDecl = 22,
+ RULE_block = 23, RULE_whileStmt = 24, RULE_ifElseStmt = 25, RULE_ifStmt = 26,
+ RULE_elseStmt = 27, RULE_assign = 28, RULE_newDecl = 29, RULE_receiver = 30,
+ RULE_receivingMethod = 31, RULE_type = 32, RULE_value = 33;
private static String[] makeRuleNames() {
return new String[] {
- "program", "classdecl", "constuctorDecl", "methodDecl", "fieldDecl",
- "parameterList", "parameter", "expression", "subExpression", "assignableExpr",
- "instVar", "methodCall", "argumentList", "subReceiver", "receiver", "receivingMethod",
+ "program", "classdecl", "constuctorDecl", "methodDecl", "parameterList",
+ "parameter", "argumentList", "expression", "subExpression", "methodCall",
+ "statement", "stmtExpr", "assignableExpr", "subReceiver", "instVar",
"binaryExpr", "calcExpr", "dotExpr", "dotSubExpr", "nonCalcExpr", "nonCalcOperator",
- "stmtExpr", "statement", "returnStmt", "localVarDecl", "block", "whileStmt",
- "ifElseStmt", "ifStmt", "elseStmt", "assign", "newDecl", "type", "value"
+ "returnStmt", "localVarDecl", "block", "whileStmt", "ifElseStmt", "ifStmt",
+ "elseStmt", "assign", "newDecl", "receiver", "receivingMethod", "type",
+ "value"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
- null, "'public'", "'public static void main(String[] args)'", null, null,
- null, null, "'='", "'-'", "'+'", "'*'", "'/'", "'%'", "'>'", "'<'", "'>='",
- "'<='", "'=='", "'!='", "'!'", "'&&'", "'||'", "'.'", "'('", "')'", "'{'",
- "'}'", "';'", "','", "'class'", "'this'", "'while'", "'if'", "'else'",
- "'return'", "'new'", null, "'void'", "'int'", "'bool'", "'char'", null,
- null, null, "'null'"
+ null, null, "'null'", "'public'", "'public static void main(String[] args)'",
+ "'void'", "'int'", "'bool'", "'char'", null, null, null, null, "'='",
+ "'-'", "'+'", "'*'", "'/'", "'%'", "'>'", "'<'", "'>='", "'<='", "'=='",
+ "'!='", "'!'", "'&&'", "'||'", "'.'", "'('", "')'", "'{'", "'}'", "';'",
+ "','", "'class'", "'this'", "'while'", "'if'", "'else'", "'return'",
+ "'new'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
- null, "AccessModifierPublic", "MainMethodDecl", "DotOperator", "LineOperator",
- "ComparisonOperator", "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation",
- "Division", "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual",
- "Equal", "NotEqual", "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket",
+ null, "BooleanValue", "NullValue", "AccessModifierPublic", "MainMethodDecl",
+ "Void", "Int", "Boolean", "Char", "DotOperator", "LineOperator", "ComparisonOperator",
+ "LogicalOpertor", "Assign", "Minus", "Plus", "Multipilkation", "Division",
+ "Modulo", "Greater", "Less", "GreaterEqual", "LessEqual", "Equal", "NotEqual",
+ "Not", "And", "Or", "Dot", "OpenRoundBracket", "ClosedRoundBracket",
"OpenCurlyBracket", "ClosedCurlyBracket", "Semicolon", "Comma", "Class",
- "This", "While", "If", "Else", "Return", "New", "Identifier", "Void",
- "Int", "Boolean", "Char", "IntValue", "CharValue", "BooleanValue", "NullValue",
- "WS"
+ "This", "While", "If", "Else", "Return", "New", "IntValue", "CharValue",
+ "Identifier", "WS"
};
}
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
@@ -154,17 +156,17 @@ public class DecafParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(71);
+ setState(69);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
- setState(70);
+ setState(68);
classdecl();
}
}
- setState(73);
+ setState(71);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==AccessModifierPublic || _la==Class );
@@ -194,11 +196,11 @@ public class DecafParser extends Parser {
public ConstuctorDeclContext constuctorDecl(int i) {
return getRuleContext(ConstuctorDeclContext.class,i);
}
- public List fieldDecl() {
- return getRuleContexts(FieldDeclContext.class);
+ public List localVarDecl() {
+ return getRuleContexts(LocalVarDeclContext.class);
}
- public FieldDeclContext fieldDecl(int i) {
- return getRuleContext(FieldDeclContext.class,i);
+ public LocalVarDeclContext localVarDecl(int i) {
+ return getRuleContext(LocalVarDeclContext.class,i);
}
public List methodDecl() {
return getRuleContexts(MethodDeclContext.class);
@@ -236,67 +238,67 @@ public class DecafParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(76);
+ setState(74);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==AccessModifierPublic) {
{
- setState(75);
+ setState(73);
match(AccessModifierPublic);
}
}
- setState(78);
+ setState(76);
match(Class);
- setState(79);
+ setState(77);
match(Identifier);
- setState(80);
+ setState(78);
match(OpenCurlyBracket);
- setState(86);
+ setState(84);
_errHandler.sync(this);
_la = _input.LA(1);
- while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 2130303778818L) != 0)) {
+ while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044904L) != 0)) {
{
- setState(84);
+ setState(82);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) {
case 1:
{
- setState(81);
+ setState(79);
constuctorDecl();
}
break;
case 2:
{
- setState(82);
- fieldDecl();
+ setState(80);
+ localVarDecl();
}
break;
case 3:
{
- setState(83);
+ setState(81);
methodDecl();
}
break;
}
}
- setState(88);
+ setState(86);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(91);
+ setState(89);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==MainMethodDecl) {
{
- setState(89);
+ setState(87);
match(MainMethodDecl);
- setState(90);
+ setState(88);
block();
}
}
- setState(93);
+ setState(91);
match(ClosedCurlyBracket);
}
}
@@ -349,33 +351,33 @@ public class DecafParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(96);
+ setState(94);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==AccessModifierPublic) {
{
- setState(95);
+ setState(93);
match(AccessModifierPublic);
}
}
- setState(98);
+ setState(96);
match(Identifier);
- setState(99);
+ setState(97);
match(OpenRoundBracket);
- setState(101);
+ setState(99);
_errHandler.sync(this);
_la = _input.LA(1);
- if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 1992864825344L) != 0)) {
+ if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) {
{
- setState(100);
+ setState(98);
parameterList();
}
}
- setState(103);
+ setState(101);
match(ClosedRoundBracket);
- setState(104);
+ setState(102);
block();
}
}
@@ -432,54 +434,54 @@ public class DecafParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(107);
+ setState(105);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==AccessModifierPublic) {
{
- setState(106);
+ setState(104);
match(AccessModifierPublic);
}
}
- setState(111);
+ setState(109);
_errHandler.sync(this);
switch (_input.LA(1)) {
- case Identifier:
case Int:
case Boolean:
case Char:
+ case Identifier:
{
- setState(109);
+ setState(107);
type();
}
break;
case Void:
{
- setState(110);
+ setState(108);
match(Void);
}
break;
default:
throw new NoViableAltException(this);
}
- setState(113);
+ setState(111);
match(Identifier);
- setState(114);
+ setState(112);
match(OpenRoundBracket);
- setState(116);
+ setState(114);
_errHandler.sync(this);
_la = _input.LA(1);
- if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 1992864825344L) != 0)) {
+ if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) {
{
- setState(115);
+ setState(113);
parameterList();
}
}
- setState(118);
+ setState(116);
match(ClosedRoundBracket);
- setState(119);
+ setState(117);
block();
}
}
@@ -494,69 +496,6 @@ public class DecafParser extends Parser {
return _localctx;
}
- @SuppressWarnings("CheckReturnValue")
- public static class FieldDeclContext extends ParserRuleContext {
- public TypeContext type() {
- return getRuleContext(TypeContext.class,0);
- }
- public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
- public TerminalNode Semicolon() { return getToken(DecafParser.Semicolon, 0); }
- public TerminalNode AccessModifierPublic() { return getToken(DecafParser.AccessModifierPublic, 0); }
- public FieldDeclContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_fieldDecl; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterFieldDecl(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitFieldDecl(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitFieldDecl(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final FieldDeclContext fieldDecl() throws RecognitionException {
- FieldDeclContext _localctx = new FieldDeclContext(_ctx, getState());
- enterRule(_localctx, 8, RULE_fieldDecl);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(122);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if (_la==AccessModifierPublic) {
- {
- setState(121);
- match(AccessModifierPublic);
- }
- }
-
- setState(124);
- type();
- setState(125);
- match(Identifier);
- setState(126);
- match(Semicolon);
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
@SuppressWarnings("CheckReturnValue")
public static class ParameterListContext extends ParserRuleContext {
public List parameter() {
@@ -590,26 +529,26 @@ public class DecafParser extends Parser {
public final ParameterListContext parameterList() throws RecognitionException {
ParameterListContext _localctx = new ParameterListContext(_ctx, getState());
- enterRule(_localctx, 10, RULE_parameterList);
+ enterRule(_localctx, 8, RULE_parameterList);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(128);
+ setState(119);
parameter();
- setState(133);
+ setState(124);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==Comma) {
{
{
- setState(129);
+ setState(120);
match(Comma);
- setState(130);
+ setState(121);
parameter();
}
}
- setState(135);
+ setState(126);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -653,13 +592,13 @@ public class DecafParser extends Parser {
public final ParameterContext parameter() throws RecognitionException {
ParameterContext _localctx = new ParameterContext(_ctx, getState());
- enterRule(_localctx, 12, RULE_parameter);
+ enterRule(_localctx, 10, RULE_parameter);
try {
enterOuterAlt(_localctx, 1);
{
- setState(136);
+ setState(127);
type();
- setState(137);
+ setState(128);
match(Identifier);
}
}
@@ -674,6 +613,96 @@ public class DecafParser extends Parser {
return _localctx;
}
+ @SuppressWarnings("CheckReturnValue")
+ public static class ArgumentListContext extends ParserRuleContext {
+ public List expression() {
+ return getRuleContexts(ExpressionContext.class);
+ }
+ public ExpressionContext expression(int i) {
+ return getRuleContext(ExpressionContext.class,i);
+ }
+ public List Comma() { return getTokens(DecafParser.Comma); }
+ public TerminalNode Comma(int i) {
+ return getToken(DecafParser.Comma, i);
+ }
+ public ArgumentListContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_argumentList; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterArgumentList(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitArgumentList(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitArgumentList(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ArgumentListContext argumentList() throws RecognitionException {
+ ArgumentListContext _localctx = new ArgumentListContext(_ctx, getState());
+ enterRule(_localctx, 12, RULE_argumentList);
+ int _la;
+ try {
+ setState(140);
+ _errHandler.sync(this);
+ switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) {
+ case 1:
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(131);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 33054638735366L) != 0)) {
+ {
+ setState(130);
+ expression();
+ }
+ }
+
+ }
+ break;
+ case 2:
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(133);
+ expression();
+ setState(136);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ do {
+ {
+ {
+ setState(134);
+ match(Comma);
+ setState(135);
+ expression();
+ }
+ }
+ setState(138);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ } while ( _la==Comma );
+ }
+ break;
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
@SuppressWarnings("CheckReturnValue")
public static class ExpressionContext extends ParserRuleContext {
public SubExpressionContext subExpression() {
@@ -705,20 +734,20 @@ public class DecafParser extends Parser {
ExpressionContext _localctx = new ExpressionContext(_ctx, getState());
enterRule(_localctx, 14, RULE_expression);
try {
- setState(141);
+ setState(144);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
- setState(139);
+ setState(142);
subExpression();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
- setState(140);
+ setState(143);
binaryExpr();
}
break;
@@ -772,38 +801,38 @@ public class DecafParser extends Parser {
SubExpressionContext _localctx = new SubExpressionContext(_ctx, getState());
enterRule(_localctx, 16, RULE_subExpression);
try {
- setState(150);
+ setState(153);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
- setState(143);
+ setState(146);
match(This);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
- setState(144);
+ setState(147);
assignableExpr();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
- setState(145);
+ setState(148);
stmtExpr();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
- setState(146);
+ setState(149);
match(OpenRoundBracket);
- setState(147);
+ setState(150);
subExpression();
- setState(148);
+ setState(151);
match(ClosedRoundBracket);
}
break;
@@ -820,144 +849,6 @@ public class DecafParser extends Parser {
return _localctx;
}
- @SuppressWarnings("CheckReturnValue")
- public static class AssignableExprContext extends ParserRuleContext {
- public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
- public InstVarContext instVar() {
- return getRuleContext(InstVarContext.class,0);
- }
- public AssignableExprContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_assignableExpr; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterAssignableExpr(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitAssignableExpr(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitAssignableExpr(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final AssignableExprContext assignableExpr() throws RecognitionException {
- AssignableExprContext _localctx = new AssignableExprContext(_ctx, getState());
- enterRule(_localctx, 18, RULE_assignableExpr);
- try {
- setState(154);
- _errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) {
- case 1:
- enterOuterAlt(_localctx, 1);
- {
- setState(152);
- match(Identifier);
- }
- break;
- case 2:
- enterOuterAlt(_localctx, 2);
- {
- setState(153);
- instVar();
- }
- break;
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class InstVarContext extends ParserRuleContext {
- public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
- public SubReceiverContext subReceiver() {
- return getRuleContext(SubReceiverContext.class,0);
- }
- public List receivingMethod() {
- return getRuleContexts(ReceivingMethodContext.class);
- }
- public ReceivingMethodContext receivingMethod(int i) {
- return getRuleContext(ReceivingMethodContext.class,i);
- }
- public InstVarContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_instVar; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterInstVar(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitInstVar(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitInstVar(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final InstVarContext instVar() throws RecognitionException {
- InstVarContext _localctx = new InstVarContext(_ctx, getState());
- enterRule(_localctx, 20, RULE_instVar);
- try {
- int _alt;
- enterOuterAlt(_localctx, 1);
- {
- setState(157);
- _errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) {
- case 1:
- {
- setState(156);
- subReceiver();
- }
- break;
- }
- setState(162);
- _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 ) {
- {
- {
- setState(159);
- receivingMethod();
- }
- }
- }
- setState(164);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,16,_ctx);
- }
- setState(165);
- match(Identifier);
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
@SuppressWarnings("CheckReturnValue")
public static class MethodCallContext extends ParserRuleContext {
public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
@@ -996,44 +887,44 @@ public class DecafParser extends Parser {
public final MethodCallContext methodCall() throws RecognitionException {
MethodCallContext _localctx = new MethodCallContext(_ctx, getState());
- enterRule(_localctx, 22, RULE_methodCall);
+ enterRule(_localctx, 18, RULE_methodCall);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
- setState(168);
+ setState(156);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,17,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,16,_ctx) ) {
case 1:
{
- setState(167);
+ setState(155);
receiver();
}
break;
}
- setState(173);
+ setState(161);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,18,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,17,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
- setState(170);
+ setState(158);
receivingMethod();
}
}
}
- setState(175);
+ setState(163);
_errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,18,_ctx);
+ _alt = getInterpreter().adaptivePredict(_input,17,_ctx);
}
- setState(176);
+ setState(164);
match(Identifier);
- setState(177);
+ setState(165);
match(OpenRoundBracket);
- setState(178);
+ setState(166);
argumentList();
- setState(179);
+ setState(167);
match(ClosedRoundBracket);
}
}
@@ -1048,834 +939,6 @@ public class DecafParser extends Parser {
return _localctx;
}
- @SuppressWarnings("CheckReturnValue")
- public static class ArgumentListContext extends ParserRuleContext {
- public List expression() {
- return getRuleContexts(ExpressionContext.class);
- }
- public ExpressionContext expression(int i) {
- return getRuleContext(ExpressionContext.class,i);
- }
- public List Comma() { return getTokens(DecafParser.Comma); }
- public TerminalNode Comma(int i) {
- return getToken(DecafParser.Comma, i);
- }
- public ArgumentListContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_argumentList; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterArgumentList(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitArgumentList(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitArgumentList(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final ArgumentListContext argumentList() throws RecognitionException {
- ArgumentListContext _localctx = new ArgumentListContext(_ctx, getState());
- enterRule(_localctx, 24, RULE_argumentList);
- int _la;
- try {
- setState(191);
- _errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,21,_ctx) ) {
- case 1:
- enterOuterAlt(_localctx, 1);
- {
- setState(182);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 33089510703104L) != 0)) {
- {
- setState(181);
- expression();
- }
- }
-
- }
- break;
- case 2:
- enterOuterAlt(_localctx, 2);
- {
- setState(184);
- expression();
- setState(187);
- _errHandler.sync(this);
- _la = _input.LA(1);
- do {
- {
- {
- setState(185);
- match(Comma);
- setState(186);
- expression();
- }
- }
- setState(189);
- _errHandler.sync(this);
- _la = _input.LA(1);
- } while ( _la==Comma );
- }
- break;
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class SubReceiverContext extends ParserRuleContext {
- public TerminalNode Dot() { return getToken(DecafParser.Dot, 0); }
- public TerminalNode This() { return getToken(DecafParser.This, 0); }
- public NewDeclContext newDecl() {
- return getRuleContext(NewDeclContext.class,0);
- }
- public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
- public SubReceiverContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_subReceiver; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterSubReceiver(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitSubReceiver(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitSubReceiver(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final SubReceiverContext subReceiver() throws RecognitionException {
- SubReceiverContext _localctx = new SubReceiverContext(_ctx, getState());
- enterRule(_localctx, 26, RULE_subReceiver);
- try {
- enterOuterAlt(_localctx, 1);
- {
- {
- setState(196);
- _errHandler.sync(this);
- switch (_input.LA(1)) {
- case This:
- {
- setState(193);
- match(This);
- }
- break;
- case New:
- {
- setState(194);
- newDecl();
- }
- break;
- case Identifier:
- {
- setState(195);
- match(Identifier);
- }
- break;
- default:
- throw new NoViableAltException(this);
- }
- setState(198);
- match(Dot);
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class ReceiverContext extends ParserRuleContext {
- public TerminalNode Dot() { return getToken(DecafParser.Dot, 0); }
- public TerminalNode This() { return getToken(DecafParser.This, 0); }
- public InstVarContext instVar() {
- return getRuleContext(InstVarContext.class,0);
- }
- public NewDeclContext newDecl() {
- return getRuleContext(NewDeclContext.class,0);
- }
- public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
- public ReceiverContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_receiver; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterReceiver(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitReceiver(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitReceiver(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final ReceiverContext receiver() throws RecognitionException {
- ReceiverContext _localctx = new ReceiverContext(_ctx, getState());
- enterRule(_localctx, 28, RULE_receiver);
- try {
- enterOuterAlt(_localctx, 1);
- {
- {
- setState(204);
- _errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,23,_ctx) ) {
- case 1:
- {
- setState(200);
- match(This);
- }
- break;
- case 2:
- {
- setState(201);
- instVar();
- }
- break;
- case 3:
- {
- setState(202);
- newDecl();
- }
- break;
- case 4:
- {
- setState(203);
- match(Identifier);
- }
- break;
- }
- setState(206);
- match(Dot);
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class ReceivingMethodContext extends ParserRuleContext {
- public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
- public TerminalNode OpenRoundBracket() { return getToken(DecafParser.OpenRoundBracket, 0); }
- public ArgumentListContext argumentList() {
- return getRuleContext(ArgumentListContext.class,0);
- }
- public TerminalNode ClosedRoundBracket() { return getToken(DecafParser.ClosedRoundBracket, 0); }
- public TerminalNode Dot() { return getToken(DecafParser.Dot, 0); }
- public ReceivingMethodContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_receivingMethod; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterReceivingMethod(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitReceivingMethod(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitReceivingMethod(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final ReceivingMethodContext receivingMethod() throws RecognitionException {
- ReceivingMethodContext _localctx = new ReceivingMethodContext(_ctx, getState());
- enterRule(_localctx, 30, RULE_receivingMethod);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(208);
- match(Identifier);
- setState(209);
- match(OpenRoundBracket);
- setState(210);
- argumentList();
- setState(211);
- match(ClosedRoundBracket);
- setState(212);
- match(Dot);
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class BinaryExprContext extends ParserRuleContext {
- public CalcExprContext calcExpr() {
- return getRuleContext(CalcExprContext.class,0);
- }
- public NonCalcExprContext nonCalcExpr() {
- return getRuleContext(NonCalcExprContext.class,0);
- }
- public ValueContext value() {
- return getRuleContext(ValueContext.class,0);
- }
- public TerminalNode Not() { return getToken(DecafParser.Not, 0); }
- public BinaryExprContext binaryExpr() {
- return getRuleContext(BinaryExprContext.class,0);
- }
- public BinaryExprContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_binaryExpr; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterBinaryExpr(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitBinaryExpr(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitBinaryExpr(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final BinaryExprContext binaryExpr() throws RecognitionException {
- BinaryExprContext _localctx = new BinaryExprContext(_ctx, getState());
- enterRule(_localctx, 32, RULE_binaryExpr);
- try {
- setState(219);
- _errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) {
- case 1:
- enterOuterAlt(_localctx, 1);
- {
- setState(214);
- calcExpr(0);
- }
- break;
- case 2:
- enterOuterAlt(_localctx, 2);
- {
- setState(215);
- nonCalcExpr();
- }
- break;
- case 3:
- enterOuterAlt(_localctx, 3);
- {
- setState(216);
- value();
- }
- break;
- case 4:
- enterOuterAlt(_localctx, 4);
- {
- setState(217);
- match(Not);
- setState(218);
- binaryExpr();
- }
- break;
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class CalcExprContext extends ParserRuleContext {
- public DotExprContext dotExpr() {
- return getRuleContext(DotExprContext.class,0);
- }
- public CalcExprContext calcExpr() {
- return getRuleContext(CalcExprContext.class,0);
- }
- public TerminalNode LineOperator() { return getToken(DecafParser.LineOperator, 0); }
- public CalcExprContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_calcExpr; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterCalcExpr(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitCalcExpr(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitCalcExpr(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final CalcExprContext calcExpr() throws RecognitionException {
- return calcExpr(0);
- }
-
- private CalcExprContext calcExpr(int _p) throws RecognitionException {
- ParserRuleContext _parentctx = _ctx;
- int _parentState = getState();
- CalcExprContext _localctx = new CalcExprContext(_ctx, _parentState);
- CalcExprContext _prevctx = _localctx;
- int _startState = 34;
- enterRecursionRule(_localctx, 34, RULE_calcExpr, _p);
- try {
- int _alt;
- enterOuterAlt(_localctx, 1);
- {
- {
- setState(222);
- dotExpr(0);
- }
- _ctx.stop = _input.LT(-1);
- setState(229);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,25,_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 CalcExprContext(_parentctx, _parentState);
- pushNewRecursionContext(_localctx, _startState, RULE_calcExpr);
- setState(224);
- if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)");
- setState(225);
- match(LineOperator);
- setState(226);
- dotExpr(0);
- }
- }
- }
- setState(231);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,25,_ctx);
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- unrollRecursionContexts(_parentctx);
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class DotExprContext extends ParserRuleContext {
- public DotSubExprContext dotSubExpr() {
- return getRuleContext(DotSubExprContext.class,0);
- }
- public DotExprContext dotExpr() {
- return getRuleContext(DotExprContext.class,0);
- }
- public TerminalNode DotOperator() { return getToken(DecafParser.DotOperator, 0); }
- public DotExprContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_dotExpr; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterDotExpr(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitDotExpr(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitDotExpr(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final DotExprContext dotExpr() throws RecognitionException {
- return dotExpr(0);
- }
-
- private DotExprContext dotExpr(int _p) throws RecognitionException {
- ParserRuleContext _parentctx = _ctx;
- int _parentState = getState();
- DotExprContext _localctx = new DotExprContext(_ctx, _parentState);
- DotExprContext _prevctx = _localctx;
- int _startState = 36;
- enterRecursionRule(_localctx, 36, RULE_dotExpr, _p);
- try {
- int _alt;
- enterOuterAlt(_localctx, 1);
- {
- {
- setState(233);
- dotSubExpr();
- }
- _ctx.stop = _input.LT(-1);
- setState(240);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,26,_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 DotExprContext(_parentctx, _parentState);
- pushNewRecursionContext(_localctx, _startState, RULE_dotExpr);
- setState(235);
- if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)");
- setState(236);
- match(DotOperator);
- setState(237);
- dotSubExpr();
- }
- }
- }
- setState(242);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,26,_ctx);
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- unrollRecursionContexts(_parentctx);
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class DotSubExprContext extends ParserRuleContext {
- public TerminalNode IntValue() { return getToken(DecafParser.IntValue, 0); }
- public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
- public InstVarContext instVar() {
- return getRuleContext(InstVarContext.class,0);
- }
- public MethodCallContext methodCall() {
- return getRuleContext(MethodCallContext.class,0);
- }
- public TerminalNode OpenRoundBracket() { return getToken(DecafParser.OpenRoundBracket, 0); }
- public CalcExprContext calcExpr() {
- return getRuleContext(CalcExprContext.class,0);
- }
- public TerminalNode ClosedRoundBracket() { return getToken(DecafParser.ClosedRoundBracket, 0); }
- public DotSubExprContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_dotSubExpr; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterDotSubExpr(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitDotSubExpr(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitDotSubExpr(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final DotSubExprContext dotSubExpr() throws RecognitionException {
- DotSubExprContext _localctx = new DotSubExprContext(_ctx, getState());
- enterRule(_localctx, 38, RULE_dotSubExpr);
- try {
- setState(251);
- _errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,27,_ctx) ) {
- case 1:
- enterOuterAlt(_localctx, 1);
- {
- setState(243);
- match(IntValue);
- }
- break;
- case 2:
- enterOuterAlt(_localctx, 2);
- {
- setState(244);
- match(Identifier);
- }
- break;
- case 3:
- enterOuterAlt(_localctx, 3);
- {
- setState(245);
- instVar();
- }
- break;
- case 4:
- enterOuterAlt(_localctx, 4);
- {
- setState(246);
- methodCall();
- }
- break;
- case 5:
- enterOuterAlt(_localctx, 5);
- {
- setState(247);
- match(OpenRoundBracket);
- setState(248);
- calcExpr(0);
- setState(249);
- match(ClosedRoundBracket);
- }
- break;
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class NonCalcExprContext extends ParserRuleContext {
- public SubExpressionContext subExpression() {
- return getRuleContext(SubExpressionContext.class,0);
- }
- public NonCalcOperatorContext nonCalcOperator() {
- return getRuleContext(NonCalcOperatorContext.class,0);
- }
- public ExpressionContext expression() {
- return getRuleContext(ExpressionContext.class,0);
- }
- public NonCalcExprContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_nonCalcExpr; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterNonCalcExpr(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitNonCalcExpr(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitNonCalcExpr(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final NonCalcExprContext nonCalcExpr() throws RecognitionException {
- NonCalcExprContext _localctx = new NonCalcExprContext(_ctx, getState());
- enterRule(_localctx, 40, RULE_nonCalcExpr);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(253);
- subExpression();
- setState(254);
- nonCalcOperator();
- setState(255);
- expression();
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class NonCalcOperatorContext extends ParserRuleContext {
- public TerminalNode LogicalOpertor() { return getToken(DecafParser.LogicalOpertor, 0); }
- public TerminalNode ComparisonOperator() { return getToken(DecafParser.ComparisonOperator, 0); }
- public NonCalcOperatorContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_nonCalcOperator; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterNonCalcOperator(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitNonCalcOperator(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitNonCalcOperator(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final NonCalcOperatorContext nonCalcOperator() throws RecognitionException {
- NonCalcOperatorContext _localctx = new NonCalcOperatorContext(_ctx, getState());
- enterRule(_localctx, 42, RULE_nonCalcOperator);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(257);
- _la = _input.LA(1);
- if ( !(_la==ComparisonOperator || _la==LogicalOpertor) ) {
- _errHandler.recoverInline(this);
- }
- else {
- if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
- _errHandler.reportMatch(this);
- consume();
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class StmtExprContext extends ParserRuleContext {
- public AssignContext assign() {
- return getRuleContext(AssignContext.class,0);
- }
- public NewDeclContext newDecl() {
- return getRuleContext(NewDeclContext.class,0);
- }
- public MethodCallContext methodCall() {
- return getRuleContext(MethodCallContext.class,0);
- }
- public StmtExprContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_stmtExpr; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).enterStmtExpr(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof DecafListener ) ((DecafListener)listener).exitStmtExpr(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitStmtExpr(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final StmtExprContext stmtExpr() throws RecognitionException {
- StmtExprContext _localctx = new StmtExprContext(_ctx, getState());
- enterRule(_localctx, 44, RULE_stmtExpr);
- try {
- setState(262);
- _errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,28,_ctx) ) {
- case 1:
- enterOuterAlt(_localctx, 1);
- {
- setState(259);
- assign();
- }
- break;
- case 2:
- enterOuterAlt(_localctx, 2);
- {
- setState(260);
- newDecl();
- }
- break;
- case 3:
- enterOuterAlt(_localctx, 3);
- {
- setState(261);
- methodCall();
- }
- break;
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
@SuppressWarnings("CheckReturnValue")
public static class StatementContext extends ParserRuleContext {
public ReturnStmtContext returnStmt() {
@@ -1918,56 +981,56 @@ public class DecafParser extends Parser {
public final StatementContext statement() throws RecognitionException {
StatementContext _localctx = new StatementContext(_ctx, getState());
- enterRule(_localctx, 46, RULE_statement);
+ enterRule(_localctx, 20, RULE_statement);
try {
- setState(276);
+ setState(181);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,29,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,18,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
- setState(264);
+ setState(169);
returnStmt();
- setState(265);
+ setState(170);
match(Semicolon);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
- setState(267);
+ setState(172);
localVarDecl();
- setState(268);
+ setState(173);
match(Semicolon);
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
- setState(270);
+ setState(175);
block();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
- setState(271);
+ setState(176);
whileStmt();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
- setState(272);
+ setState(177);
ifElseStmt();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
- setState(273);
+ setState(178);
stmtExpr();
- setState(274);
+ setState(179);
match(Semicolon);
}
break;
@@ -1984,6 +1047,744 @@ public class DecafParser extends Parser {
return _localctx;
}
+ @SuppressWarnings("CheckReturnValue")
+ public static class StmtExprContext extends ParserRuleContext {
+ public AssignContext assign() {
+ return getRuleContext(AssignContext.class,0);
+ }
+ public NewDeclContext newDecl() {
+ return getRuleContext(NewDeclContext.class,0);
+ }
+ public MethodCallContext methodCall() {
+ return getRuleContext(MethodCallContext.class,0);
+ }
+ public StmtExprContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_stmtExpr; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterStmtExpr(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitStmtExpr(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitStmtExpr(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final StmtExprContext stmtExpr() throws RecognitionException {
+ StmtExprContext _localctx = new StmtExprContext(_ctx, getState());
+ enterRule(_localctx, 22, RULE_stmtExpr);
+ try {
+ setState(186);
+ _errHandler.sync(this);
+ switch ( getInterpreter().adaptivePredict(_input,19,_ctx) ) {
+ case 1:
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(183);
+ assign();
+ }
+ break;
+ case 2:
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(184);
+ newDecl();
+ }
+ break;
+ case 3:
+ enterOuterAlt(_localctx, 3);
+ {
+ setState(185);
+ methodCall();
+ }
+ break;
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class AssignableExprContext extends ParserRuleContext {
+ public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
+ public InstVarContext instVar() {
+ return getRuleContext(InstVarContext.class,0);
+ }
+ public AssignableExprContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_assignableExpr; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterAssignableExpr(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitAssignableExpr(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitAssignableExpr(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final AssignableExprContext assignableExpr() throws RecognitionException {
+ AssignableExprContext _localctx = new AssignableExprContext(_ctx, getState());
+ enterRule(_localctx, 24, RULE_assignableExpr);
+ try {
+ setState(190);
+ _errHandler.sync(this);
+ switch ( getInterpreter().adaptivePredict(_input,20,_ctx) ) {
+ case 1:
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(188);
+ match(Identifier);
+ }
+ break;
+ case 2:
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(189);
+ instVar();
+ }
+ break;
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class SubReceiverContext extends ParserRuleContext {
+ public TerminalNode Dot() { return getToken(DecafParser.Dot, 0); }
+ public TerminalNode This() { return getToken(DecafParser.This, 0); }
+ public NewDeclContext newDecl() {
+ return getRuleContext(NewDeclContext.class,0);
+ }
+ public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
+ public SubReceiverContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_subReceiver; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterSubReceiver(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitSubReceiver(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitSubReceiver(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final SubReceiverContext subReceiver() throws RecognitionException {
+ SubReceiverContext _localctx = new SubReceiverContext(_ctx, getState());
+ enterRule(_localctx, 26, RULE_subReceiver);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ {
+ setState(195);
+ _errHandler.sync(this);
+ switch (_input.LA(1)) {
+ case This:
+ {
+ setState(192);
+ match(This);
+ }
+ break;
+ case New:
+ {
+ setState(193);
+ newDecl();
+ }
+ break;
+ case Identifier:
+ {
+ setState(194);
+ match(Identifier);
+ }
+ break;
+ default:
+ throw new NoViableAltException(this);
+ }
+ setState(197);
+ match(Dot);
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class InstVarContext extends ParserRuleContext {
+ public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
+ public SubReceiverContext subReceiver() {
+ return getRuleContext(SubReceiverContext.class,0);
+ }
+ public List receivingMethod() {
+ return getRuleContexts(ReceivingMethodContext.class);
+ }
+ public ReceivingMethodContext receivingMethod(int i) {
+ return getRuleContext(ReceivingMethodContext.class,i);
+ }
+ public InstVarContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_instVar; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterInstVar(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitInstVar(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitInstVar(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final InstVarContext instVar() throws RecognitionException {
+ InstVarContext _localctx = new InstVarContext(_ctx, getState());
+ enterRule(_localctx, 28, RULE_instVar);
+ try {
+ int _alt;
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(200);
+ _errHandler.sync(this);
+ switch ( getInterpreter().adaptivePredict(_input,22,_ctx) ) {
+ case 1:
+ {
+ setState(199);
+ subReceiver();
+ }
+ break;
+ }
+ setState(205);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input,23,_ctx);
+ while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
+ if ( _alt==1 ) {
+ {
+ {
+ setState(202);
+ receivingMethod();
+ }
+ }
+ }
+ setState(207);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input,23,_ctx);
+ }
+ setState(208);
+ match(Identifier);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class BinaryExprContext extends ParserRuleContext {
+ public CalcExprContext calcExpr() {
+ return getRuleContext(CalcExprContext.class,0);
+ }
+ public NonCalcExprContext nonCalcExpr() {
+ return getRuleContext(NonCalcExprContext.class,0);
+ }
+ public ValueContext value() {
+ return getRuleContext(ValueContext.class,0);
+ }
+ public TerminalNode Not() { return getToken(DecafParser.Not, 0); }
+ public BinaryExprContext binaryExpr() {
+ return getRuleContext(BinaryExprContext.class,0);
+ }
+ public BinaryExprContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_binaryExpr; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterBinaryExpr(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitBinaryExpr(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitBinaryExpr(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final BinaryExprContext binaryExpr() throws RecognitionException {
+ BinaryExprContext _localctx = new BinaryExprContext(_ctx, getState());
+ enterRule(_localctx, 30, RULE_binaryExpr);
+ try {
+ setState(215);
+ _errHandler.sync(this);
+ switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) {
+ case 1:
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(210);
+ calcExpr(0);
+ }
+ break;
+ case 2:
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(211);
+ nonCalcExpr();
+ }
+ break;
+ case 3:
+ enterOuterAlt(_localctx, 3);
+ {
+ setState(212);
+ value();
+ }
+ break;
+ case 4:
+ enterOuterAlt(_localctx, 4);
+ {
+ setState(213);
+ match(Not);
+ setState(214);
+ binaryExpr();
+ }
+ break;
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class CalcExprContext extends ParserRuleContext {
+ public DotExprContext dotExpr() {
+ return getRuleContext(DotExprContext.class,0);
+ }
+ public CalcExprContext calcExpr() {
+ return getRuleContext(CalcExprContext.class,0);
+ }
+ public TerminalNode LineOperator() { return getToken(DecafParser.LineOperator, 0); }
+ public CalcExprContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_calcExpr; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterCalcExpr(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitCalcExpr(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitCalcExpr(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final CalcExprContext calcExpr() throws RecognitionException {
+ return calcExpr(0);
+ }
+
+ private CalcExprContext calcExpr(int _p) throws RecognitionException {
+ ParserRuleContext _parentctx = _ctx;
+ int _parentState = getState();
+ CalcExprContext _localctx = new CalcExprContext(_ctx, _parentState);
+ CalcExprContext _prevctx = _localctx;
+ int _startState = 32;
+ enterRecursionRule(_localctx, 32, RULE_calcExpr, _p);
+ try {
+ int _alt;
+ enterOuterAlt(_localctx, 1);
+ {
+ {
+ setState(218);
+ dotExpr(0);
+ }
+ _ctx.stop = _input.LT(-1);
+ setState(225);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input,25,_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 CalcExprContext(_parentctx, _parentState);
+ pushNewRecursionContext(_localctx, _startState, RULE_calcExpr);
+ setState(220);
+ if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)");
+ setState(221);
+ match(LineOperator);
+ setState(222);
+ dotExpr(0);
+ }
+ }
+ }
+ setState(227);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input,25,_ctx);
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ unrollRecursionContexts(_parentctx);
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class DotExprContext extends ParserRuleContext {
+ public DotSubExprContext dotSubExpr() {
+ return getRuleContext(DotSubExprContext.class,0);
+ }
+ public DotExprContext dotExpr() {
+ return getRuleContext(DotExprContext.class,0);
+ }
+ public TerminalNode DotOperator() { return getToken(DecafParser.DotOperator, 0); }
+ public DotExprContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_dotExpr; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterDotExpr(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitDotExpr(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitDotExpr(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final DotExprContext dotExpr() throws RecognitionException {
+ return dotExpr(0);
+ }
+
+ private DotExprContext dotExpr(int _p) throws RecognitionException {
+ ParserRuleContext _parentctx = _ctx;
+ int _parentState = getState();
+ DotExprContext _localctx = new DotExprContext(_ctx, _parentState);
+ DotExprContext _prevctx = _localctx;
+ int _startState = 34;
+ enterRecursionRule(_localctx, 34, RULE_dotExpr, _p);
+ try {
+ int _alt;
+ enterOuterAlt(_localctx, 1);
+ {
+ {
+ setState(229);
+ dotSubExpr();
+ }
+ _ctx.stop = _input.LT(-1);
+ setState(236);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input,26,_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 DotExprContext(_parentctx, _parentState);
+ pushNewRecursionContext(_localctx, _startState, RULE_dotExpr);
+ setState(231);
+ if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)");
+ setState(232);
+ match(DotOperator);
+ setState(233);
+ dotSubExpr();
+ }
+ }
+ }
+ setState(238);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input,26,_ctx);
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ unrollRecursionContexts(_parentctx);
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class DotSubExprContext extends ParserRuleContext {
+ public TerminalNode IntValue() { return getToken(DecafParser.IntValue, 0); }
+ public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
+ public InstVarContext instVar() {
+ return getRuleContext(InstVarContext.class,0);
+ }
+ public MethodCallContext methodCall() {
+ return getRuleContext(MethodCallContext.class,0);
+ }
+ public TerminalNode OpenRoundBracket() { return getToken(DecafParser.OpenRoundBracket, 0); }
+ public CalcExprContext calcExpr() {
+ return getRuleContext(CalcExprContext.class,0);
+ }
+ public TerminalNode ClosedRoundBracket() { return getToken(DecafParser.ClosedRoundBracket, 0); }
+ public DotSubExprContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_dotSubExpr; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterDotSubExpr(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitDotSubExpr(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitDotSubExpr(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final DotSubExprContext dotSubExpr() throws RecognitionException {
+ DotSubExprContext _localctx = new DotSubExprContext(_ctx, getState());
+ enterRule(_localctx, 36, RULE_dotSubExpr);
+ try {
+ setState(247);
+ _errHandler.sync(this);
+ switch ( getInterpreter().adaptivePredict(_input,27,_ctx) ) {
+ case 1:
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(239);
+ match(IntValue);
+ }
+ break;
+ case 2:
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(240);
+ match(Identifier);
+ }
+ break;
+ case 3:
+ enterOuterAlt(_localctx, 3);
+ {
+ setState(241);
+ instVar();
+ }
+ break;
+ case 4:
+ enterOuterAlt(_localctx, 4);
+ {
+ setState(242);
+ methodCall();
+ }
+ break;
+ case 5:
+ enterOuterAlt(_localctx, 5);
+ {
+ setState(243);
+ match(OpenRoundBracket);
+ setState(244);
+ calcExpr(0);
+ setState(245);
+ match(ClosedRoundBracket);
+ }
+ break;
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class NonCalcExprContext extends ParserRuleContext {
+ public SubExpressionContext subExpression() {
+ return getRuleContext(SubExpressionContext.class,0);
+ }
+ public NonCalcOperatorContext nonCalcOperator() {
+ return getRuleContext(NonCalcOperatorContext.class,0);
+ }
+ public ExpressionContext expression() {
+ return getRuleContext(ExpressionContext.class,0);
+ }
+ public NonCalcExprContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_nonCalcExpr; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterNonCalcExpr(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitNonCalcExpr(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitNonCalcExpr(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final NonCalcExprContext nonCalcExpr() throws RecognitionException {
+ NonCalcExprContext _localctx = new NonCalcExprContext(_ctx, getState());
+ enterRule(_localctx, 38, RULE_nonCalcExpr);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(249);
+ subExpression();
+ setState(250);
+ nonCalcOperator();
+ setState(251);
+ expression();
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class NonCalcOperatorContext extends ParserRuleContext {
+ public TerminalNode LogicalOpertor() { return getToken(DecafParser.LogicalOpertor, 0); }
+ public TerminalNode ComparisonOperator() { return getToken(DecafParser.ComparisonOperator, 0); }
+ public NonCalcOperatorContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_nonCalcOperator; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterNonCalcOperator(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitNonCalcOperator(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitNonCalcOperator(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final NonCalcOperatorContext nonCalcOperator() throws RecognitionException {
+ NonCalcOperatorContext _localctx = new NonCalcOperatorContext(_ctx, getState());
+ enterRule(_localctx, 40, RULE_nonCalcOperator);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(253);
+ _la = _input.LA(1);
+ if ( !(_la==ComparisonOperator || _la==LogicalOpertor) ) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
@SuppressWarnings("CheckReturnValue")
public static class ReturnStmtContext extends ParserRuleContext {
public TerminalNode Return() { return getToken(DecafParser.Return, 0); }
@@ -2011,19 +1812,19 @@ public class DecafParser extends Parser {
public final ReturnStmtContext returnStmt() throws RecognitionException {
ReturnStmtContext _localctx = new ReturnStmtContext(_ctx, getState());
- enterRule(_localctx, 48, RULE_returnStmt);
+ enterRule(_localctx, 42, RULE_returnStmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(278);
+ setState(255);
match(Return);
- setState(280);
+ setState(257);
_errHandler.sync(this);
_la = _input.LA(1);
- if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 33089510703104L) != 0)) {
+ if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 33054638735366L) != 0)) {
{
- setState(279);
+ setState(256);
expression();
}
}
@@ -2047,6 +1848,8 @@ public class DecafParser extends Parser {
return getRuleContext(TypeContext.class,0);
}
public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
+ public TerminalNode Semicolon() { return getToken(DecafParser.Semicolon, 0); }
+ public TerminalNode AccessModifierPublic() { return getToken(DecafParser.AccessModifierPublic, 0); }
public TerminalNode Assign() { return getToken(DecafParser.Assign, 0); }
public ExpressionContext expression() {
return getRuleContext(ExpressionContext.class,0);
@@ -2072,27 +1875,39 @@ public class DecafParser extends Parser {
public final LocalVarDeclContext localVarDecl() throws RecognitionException {
LocalVarDeclContext _localctx = new LocalVarDeclContext(_ctx, getState());
- enterRule(_localctx, 50, RULE_localVarDecl);
+ enterRule(_localctx, 44, RULE_localVarDecl);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(282);
+ setState(260);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==AccessModifierPublic) {
+ {
+ setState(259);
+ match(AccessModifierPublic);
+ }
+ }
+
+ setState(262);
type();
- setState(283);
+ setState(263);
match(Identifier);
- setState(286);
+ setState(266);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==Assign) {
{
- setState(284);
+ setState(264);
match(Assign);
- setState(285);
+ setState(265);
expression();
}
}
+ setState(268);
+ match(Semicolon);
}
}
catch (RecognitionException re) {
@@ -2137,28 +1952,28 @@ public class DecafParser extends Parser {
public final BlockContext block() throws RecognitionException {
BlockContext _localctx = new BlockContext(_ctx, getState());
- enterRule(_localctx, 52, RULE_block);
+ enterRule(_localctx, 46, RULE_block);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(288);
+ setState(270);
match(OpenCurlyBracket);
- setState(292);
+ setState(274);
_errHandler.sync(this);
_la = _input.LA(1);
- while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 2051954180096L) != 0)) {
+ while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 21373904749000L) != 0)) {
{
{
- setState(289);
+ setState(271);
statement();
}
}
- setState(294);
+ setState(276);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(295);
+ setState(277);
match(ClosedCurlyBracket);
}
}
@@ -2205,19 +2020,19 @@ public class DecafParser extends Parser {
public final WhileStmtContext whileStmt() throws RecognitionException {
WhileStmtContext _localctx = new WhileStmtContext(_ctx, getState());
- enterRule(_localctx, 54, RULE_whileStmt);
+ enterRule(_localctx, 48, RULE_whileStmt);
try {
enterOuterAlt(_localctx, 1);
{
- setState(297);
+ setState(279);
match(While);
- setState(298);
+ setState(280);
match(OpenRoundBracket);
- setState(299);
+ setState(281);
expression();
- setState(300);
+ setState(282);
match(ClosedRoundBracket);
- setState(301);
+ setState(283);
statement();
}
}
@@ -2261,18 +2076,18 @@ public class DecafParser extends Parser {
public final IfElseStmtContext ifElseStmt() throws RecognitionException {
IfElseStmtContext _localctx = new IfElseStmtContext(_ctx, getState());
- enterRule(_localctx, 56, RULE_ifElseStmt);
+ enterRule(_localctx, 50, RULE_ifElseStmt);
try {
enterOuterAlt(_localctx, 1);
{
- setState(303);
+ setState(285);
ifStmt();
- setState(305);
+ setState(287);
_errHandler.sync(this);
- switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) {
+ switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) {
case 1:
{
- setState(304);
+ setState(286);
elseStmt();
}
break;
@@ -2322,19 +2137,19 @@ public class DecafParser extends Parser {
public final IfStmtContext ifStmt() throws RecognitionException {
IfStmtContext _localctx = new IfStmtContext(_ctx, getState());
- enterRule(_localctx, 58, RULE_ifStmt);
+ enterRule(_localctx, 52, RULE_ifStmt);
try {
enterOuterAlt(_localctx, 1);
{
- setState(307);
+ setState(289);
match(If);
- setState(308);
+ setState(290);
match(OpenRoundBracket);
- setState(309);
+ setState(291);
expression();
- setState(310);
+ setState(292);
match(ClosedRoundBracket);
- setState(311);
+ setState(293);
statement();
}
}
@@ -2376,13 +2191,13 @@ public class DecafParser extends Parser {
public final ElseStmtContext elseStmt() throws RecognitionException {
ElseStmtContext _localctx = new ElseStmtContext(_ctx, getState());
- enterRule(_localctx, 60, RULE_elseStmt);
+ enterRule(_localctx, 54, RULE_elseStmt);
try {
enterOuterAlt(_localctx, 1);
{
- setState(313);
+ setState(295);
match(Else);
- setState(314);
+ setState(296);
statement();
}
}
@@ -2427,15 +2242,15 @@ public class DecafParser extends Parser {
public final AssignContext assign() throws RecognitionException {
AssignContext _localctx = new AssignContext(_ctx, getState());
- enterRule(_localctx, 62, RULE_assign);
+ enterRule(_localctx, 56, RULE_assign);
try {
enterOuterAlt(_localctx, 1);
{
- setState(316);
+ setState(298);
assignableExpr();
- setState(317);
+ setState(299);
match(Assign);
- setState(318);
+ setState(300);
expression();
}
}
@@ -2480,19 +2295,19 @@ public class DecafParser extends Parser {
public final NewDeclContext newDecl() throws RecognitionException {
NewDeclContext _localctx = new NewDeclContext(_ctx, getState());
- enterRule(_localctx, 64, RULE_newDecl);
+ enterRule(_localctx, 58, RULE_newDecl);
try {
enterOuterAlt(_localctx, 1);
{
- setState(320);
+ setState(302);
match(New);
- setState(321);
+ setState(303);
match(Identifier);
- setState(322);
+ setState(304);
match(OpenRoundBracket);
- setState(323);
+ setState(305);
argumentList();
- setState(324);
+ setState(306);
match(ClosedRoundBracket);
}
}
@@ -2507,6 +2322,144 @@ public class DecafParser extends Parser {
return _localctx;
}
+ @SuppressWarnings("CheckReturnValue")
+ public static class ReceiverContext extends ParserRuleContext {
+ public TerminalNode Dot() { return getToken(DecafParser.Dot, 0); }
+ public TerminalNode This() { return getToken(DecafParser.This, 0); }
+ public InstVarContext instVar() {
+ return getRuleContext(InstVarContext.class,0);
+ }
+ public NewDeclContext newDecl() {
+ return getRuleContext(NewDeclContext.class,0);
+ }
+ public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
+ public ReceiverContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_receiver; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterReceiver(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitReceiver(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitReceiver(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ReceiverContext receiver() throws RecognitionException {
+ ReceiverContext _localctx = new ReceiverContext(_ctx, getState());
+ enterRule(_localctx, 60, RULE_receiver);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ {
+ setState(312);
+ _errHandler.sync(this);
+ switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) {
+ case 1:
+ {
+ setState(308);
+ match(This);
+ }
+ break;
+ case 2:
+ {
+ setState(309);
+ instVar();
+ }
+ break;
+ case 3:
+ {
+ setState(310);
+ newDecl();
+ }
+ break;
+ case 4:
+ {
+ setState(311);
+ match(Identifier);
+ }
+ break;
+ }
+ setState(314);
+ match(Dot);
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class ReceivingMethodContext extends ParserRuleContext {
+ public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); }
+ public TerminalNode OpenRoundBracket() { return getToken(DecafParser.OpenRoundBracket, 0); }
+ public ArgumentListContext argumentList() {
+ return getRuleContext(ArgumentListContext.class,0);
+ }
+ public TerminalNode ClosedRoundBracket() { return getToken(DecafParser.ClosedRoundBracket, 0); }
+ public TerminalNode Dot() { return getToken(DecafParser.Dot, 0); }
+ public ReceivingMethodContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_receivingMethod; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).enterReceivingMethod(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof DecafListener ) ((DecafListener)listener).exitReceivingMethod(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof DecafVisitor ) return ((DecafVisitor extends T>)visitor).visitReceivingMethod(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ReceivingMethodContext receivingMethod() throws RecognitionException {
+ ReceivingMethodContext _localctx = new ReceivingMethodContext(_ctx, getState());
+ enterRule(_localctx, 62, RULE_receivingMethod);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(316);
+ match(Identifier);
+ setState(317);
+ match(OpenRoundBracket);
+ setState(318);
+ argumentList();
+ setState(319);
+ match(ClosedRoundBracket);
+ setState(320);
+ match(Dot);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
@SuppressWarnings("CheckReturnValue")
public static class TypeContext extends ParserRuleContext {
public TerminalNode Int() { return getToken(DecafParser.Int, 0); }
@@ -2534,14 +2487,14 @@ public class DecafParser extends Parser {
public final TypeContext type() throws RecognitionException {
TypeContext _localctx = new TypeContext(_ctx, getState());
- enterRule(_localctx, 66, RULE_type);
+ enterRule(_localctx, 64, RULE_type);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(326);
+ setState(322);
_la = _input.LA(1);
- if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 1992864825344L) != 0)) ) {
+ if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
@@ -2589,14 +2542,14 @@ public class DecafParser extends Parser {
public final ValueContext value() throws RecognitionException {
ValueContext _localctx = new ValueContext(_ctx, getState());
- enterRule(_localctx, 68, RULE_value);
+ enterRule(_localctx, 66, RULE_value);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(328);
+ setState(324);
_la = _input.LA(1);
- if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 32985348833280L) != 0)) ) {
+ if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 13194139533318L) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
@@ -2619,9 +2572,9 @@ public class DecafParser extends Parser {
public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
switch (ruleIndex) {
- case 17:
+ case 16:
return calcExpr_sempred((CalcExprContext)_localctx, predIndex);
- case 18:
+ case 17:
return dotExpr_sempred((DotExprContext)_localctx, predIndex);
}
return true;
@@ -2642,7 +2595,7 @@ public class DecafParser extends Parser {
}
public static final String _serializedATN =
- "\u0004\u0001-\u014b\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"+
+ "\u0004\u0001-\u0147\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"+
"\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002"+
"\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007\u0007\u0007\u0002"+
"\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002\u000b\u0007\u000b\u0002"+
@@ -2652,207 +2605,204 @@ public class DecafParser extends Parser {
"\u0002\u0016\u0007\u0016\u0002\u0017\u0007\u0017\u0002\u0018\u0007\u0018"+
"\u0002\u0019\u0007\u0019\u0002\u001a\u0007\u001a\u0002\u001b\u0007\u001b"+
"\u0002\u001c\u0007\u001c\u0002\u001d\u0007\u001d\u0002\u001e\u0007\u001e"+
- "\u0002\u001f\u0007\u001f\u0002 \u0007 \u0002!\u0007!\u0002\"\u0007\"\u0001"+
- "\u0000\u0004\u0000H\b\u0000\u000b\u0000\f\u0000I\u0001\u0001\u0003\u0001"+
- "M\b\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
- "\u0001\u0001\u0005\u0001U\b\u0001\n\u0001\f\u0001X\t\u0001\u0001\u0001"+
- "\u0001\u0001\u0003\u0001\\\b\u0001\u0001\u0001\u0001\u0001\u0001\u0002"+
- "\u0003\u0002a\b\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0003\u0002"+
- "f\b\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0003\u0003\u0003"+
- "l\b\u0003\u0001\u0003\u0001\u0003\u0003\u0003p\b\u0003\u0001\u0003\u0001"+
- "\u0003\u0001\u0003\u0003\u0003u\b\u0003\u0001\u0003\u0001\u0003\u0001"+
- "\u0003\u0001\u0004\u0003\u0004{\b\u0004\u0001\u0004\u0001\u0004\u0001"+
- "\u0004\u0001\u0004\u0001\u0005\u0001\u0005\u0001\u0005\u0005\u0005\u0084"+
- "\b\u0005\n\u0005\f\u0005\u0087\t\u0005\u0001\u0006\u0001\u0006\u0001\u0006"+
- "\u0001\u0007\u0001\u0007\u0003\u0007\u008e\b\u0007\u0001\b\u0001\b\u0001"+
- "\b\u0001\b\u0001\b\u0001\b\u0001\b\u0003\b\u0097\b\b\u0001\t\u0001\t\u0003"+
- "\t\u009b\b\t\u0001\n\u0003\n\u009e\b\n\u0001\n\u0005\n\u00a1\b\n\n\n\f"+
- "\n\u00a4\t\n\u0001\n\u0001\n\u0001\u000b\u0003\u000b\u00a9\b\u000b\u0001"+
- "\u000b\u0005\u000b\u00ac\b\u000b\n\u000b\f\u000b\u00af\t\u000b\u0001\u000b"+
- "\u0001\u000b\u0001\u000b\u0001\u000b\u0001\u000b\u0001\f\u0003\f\u00b7"+
- "\b\f\u0001\f\u0001\f\u0001\f\u0004\f\u00bc\b\f\u000b\f\f\f\u00bd\u0003"+
- "\f\u00c0\b\f\u0001\r\u0001\r\u0001\r\u0003\r\u00c5\b\r\u0001\r\u0001\r"+
- "\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0003\u000e\u00cd\b\u000e"+
- "\u0001\u000e\u0001\u000e\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f"+
- "\u0001\u000f\u0001\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010"+
- "\u0001\u0010\u0003\u0010\u00dc\b\u0010\u0001\u0011\u0001\u0011\u0001\u0011"+
- "\u0001\u0011\u0001\u0011\u0001\u0011\u0005\u0011\u00e4\b\u0011\n\u0011"+
- "\f\u0011\u00e7\t\u0011\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012"+
- "\u0001\u0012\u0001\u0012\u0005\u0012\u00ef\b\u0012\n\u0012\f\u0012\u00f2"+
- "\t\u0012\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001"+
- "\u0013\u0001\u0013\u0001\u0013\u0003\u0013\u00fc\b\u0013\u0001\u0014\u0001"+
- "\u0014\u0001\u0014\u0001\u0014\u0001\u0015\u0001\u0015\u0001\u0016\u0001"+
- "\u0016\u0001\u0016\u0003\u0016\u0107\b\u0016\u0001\u0017\u0001\u0017\u0001"+
- "\u0017\u0001\u0017\u0001\u0017\u0001\u0017\u0001\u0017\u0001\u0017\u0001"+
- "\u0017\u0001\u0017\u0001\u0017\u0001\u0017\u0003\u0017\u0115\b\u0017\u0001"+
- "\u0018\u0001\u0018\u0003\u0018\u0119\b\u0018\u0001\u0019\u0001\u0019\u0001"+
- "\u0019\u0001\u0019\u0003\u0019\u011f\b\u0019\u0001\u001a\u0001\u001a\u0005"+
- "\u001a\u0123\b\u001a\n\u001a\f\u001a\u0126\t\u001a\u0001\u001a\u0001\u001a"+
- "\u0001\u001b\u0001\u001b\u0001\u001b\u0001\u001b\u0001\u001b\u0001\u001b"+
- "\u0001\u001c\u0001\u001c\u0003\u001c\u0132\b\u001c\u0001\u001d\u0001\u001d"+
+ "\u0002\u001f\u0007\u001f\u0002 \u0007 \u0002!\u0007!\u0001\u0000\u0004"+
+ "\u0000F\b\u0000\u000b\u0000\f\u0000G\u0001\u0001\u0003\u0001K\b\u0001"+
+ "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
+ "\u0005\u0001S\b\u0001\n\u0001\f\u0001V\t\u0001\u0001\u0001\u0001\u0001"+
+ "\u0003\u0001Z\b\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0003\u0002"+
+ "_\b\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0003\u0002d\b\u0002\u0001"+
+ "\u0002\u0001\u0002\u0001\u0002\u0001\u0003\u0003\u0003j\b\u0003\u0001"+
+ "\u0003\u0001\u0003\u0003\u0003n\b\u0003\u0001\u0003\u0001\u0003\u0001"+
+ "\u0003\u0003\u0003s\b\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001"+
+ "\u0004\u0001\u0004\u0001\u0004\u0005\u0004{\b\u0004\n\u0004\f\u0004~\t"+
+ "\u0004\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0006\u0003\u0006\u0084"+
+ "\b\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0004\u0006\u0089\b\u0006"+
+ "\u000b\u0006\f\u0006\u008a\u0003\u0006\u008d\b\u0006\u0001\u0007\u0001"+
+ "\u0007\u0003\u0007\u0091\b\u0007\u0001\b\u0001\b\u0001\b\u0001\b\u0001"+
+ "\b\u0001\b\u0001\b\u0003\b\u009a\b\b\u0001\t\u0003\t\u009d\b\t\u0001\t"+
+ "\u0005\t\u00a0\b\t\n\t\f\t\u00a3\t\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001"+
+ "\t\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001"+
+ "\n\u0001\n\u0001\n\u0001\n\u0003\n\u00b6\b\n\u0001\u000b\u0001\u000b\u0001"+
+ "\u000b\u0003\u000b\u00bb\b\u000b\u0001\f\u0001\f\u0003\f\u00bf\b\f\u0001"+
+ "\r\u0001\r\u0001\r\u0003\r\u00c4\b\r\u0001\r\u0001\r\u0001\u000e\u0003"+
+ "\u000e\u00c9\b\u000e\u0001\u000e\u0005\u000e\u00cc\b\u000e\n\u000e\f\u000e"+
+ "\u00cf\t\u000e\u0001\u000e\u0001\u000e\u0001\u000f\u0001\u000f\u0001\u000f"+
+ "\u0001\u000f\u0001\u000f\u0003\u000f\u00d8\b\u000f\u0001\u0010\u0001\u0010"+
+ "\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0005\u0010\u00e0\b\u0010"+
+ "\n\u0010\f\u0010\u00e3\t\u0010\u0001\u0011\u0001\u0011\u0001\u0011\u0001"+
+ "\u0011\u0001\u0011\u0001\u0011\u0005\u0011\u00eb\b\u0011\n\u0011\f\u0011"+
+ "\u00ee\t\u0011\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012"+
+ "\u0001\u0012\u0001\u0012\u0001\u0012\u0003\u0012\u00f8\b\u0012\u0001\u0013"+
+ "\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0014\u0001\u0014\u0001\u0015"+
+ "\u0001\u0015\u0003\u0015\u0102\b\u0015\u0001\u0016\u0003\u0016\u0105\b"+
+ "\u0016\u0001\u0016\u0001\u0016\u0001\u0016\u0001\u0016\u0003\u0016\u010b"+
+ "\b\u0016\u0001\u0016\u0001\u0016\u0001\u0017\u0001\u0017\u0005\u0017\u0111"+
+ "\b\u0017\n\u0017\f\u0017\u0114\t\u0017\u0001\u0017\u0001\u0017\u0001\u0018"+
+ "\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0019"+
+ "\u0001\u0019\u0003\u0019\u0120\b\u0019\u0001\u001a\u0001\u001a\u0001\u001a"+
+ "\u0001\u001a\u0001\u001a\u0001\u001a\u0001\u001b\u0001\u001b\u0001\u001b"+
+ "\u0001\u001c\u0001\u001c\u0001\u001c\u0001\u001c\u0001\u001d\u0001\u001d"+
"\u0001\u001d\u0001\u001d\u0001\u001d\u0001\u001d\u0001\u001e\u0001\u001e"+
- "\u0001\u001e\u0001\u001f\u0001\u001f\u0001\u001f\u0001\u001f\u0001 \u0001"+
- " \u0001 \u0001 \u0001 \u0001 \u0001!\u0001!\u0001\"\u0001\"\u0001\"\u0000"+
- "\u0002\"$#\u0000\u0002\u0004\u0006\b\n\f\u000e\u0010\u0012\u0014\u0016"+
- "\u0018\u001a\u001c\u001e \"$&(*,.02468:<>@BD\u0000\u0003\u0001\u0000\u0005"+
- "\u0006\u0002\u0000$$&(\u0001\u0000),\u0159\u0000G\u0001\u0000\u0000\u0000"+
- "\u0002L\u0001\u0000\u0000\u0000\u0004`\u0001\u0000\u0000\u0000\u0006k"+
- "\u0001\u0000\u0000\u0000\bz\u0001\u0000\u0000\u0000\n\u0080\u0001\u0000"+
- "\u0000\u0000\f\u0088\u0001\u0000\u0000\u0000\u000e\u008d\u0001\u0000\u0000"+
- "\u0000\u0010\u0096\u0001\u0000\u0000\u0000\u0012\u009a\u0001\u0000\u0000"+
- "\u0000\u0014\u009d\u0001\u0000\u0000\u0000\u0016\u00a8\u0001\u0000\u0000"+
- "\u0000\u0018\u00bf\u0001\u0000\u0000\u0000\u001a\u00c4\u0001\u0000\u0000"+
- "\u0000\u001c\u00cc\u0001\u0000\u0000\u0000\u001e\u00d0\u0001\u0000\u0000"+
- "\u0000 \u00db\u0001\u0000\u0000\u0000\"\u00dd\u0001\u0000\u0000\u0000"+
- "$\u00e8\u0001\u0000\u0000\u0000&\u00fb\u0001\u0000\u0000\u0000(\u00fd"+
- "\u0001\u0000\u0000\u0000*\u0101\u0001\u0000\u0000\u0000,\u0106\u0001\u0000"+
- "\u0000\u0000.\u0114\u0001\u0000\u0000\u00000\u0116\u0001\u0000\u0000\u0000"+
- "2\u011a\u0001\u0000\u0000\u00004\u0120\u0001\u0000\u0000\u00006\u0129"+
- "\u0001\u0000\u0000\u00008\u012f\u0001\u0000\u0000\u0000:\u0133\u0001\u0000"+
- "\u0000\u0000<\u0139\u0001\u0000\u0000\u0000>\u013c\u0001\u0000\u0000\u0000"+
- "@\u0140\u0001\u0000\u0000\u0000B\u0146\u0001\u0000\u0000\u0000D\u0148"+
- "\u0001\u0000\u0000\u0000FH\u0003\u0002\u0001\u0000GF\u0001\u0000\u0000"+
- "\u0000HI\u0001\u0000\u0000\u0000IG\u0001\u0000\u0000\u0000IJ\u0001\u0000"+
- "\u0000\u0000J\u0001\u0001\u0000\u0000\u0000KM\u0005\u0001\u0000\u0000"+
- "LK\u0001\u0000\u0000\u0000LM\u0001\u0000\u0000\u0000MN\u0001\u0000\u0000"+
- "\u0000NO\u0005\u001d\u0000\u0000OP\u0005$\u0000\u0000PV\u0005\u0019\u0000"+
- "\u0000QU\u0003\u0004\u0002\u0000RU\u0003\b\u0004\u0000SU\u0003\u0006\u0003"+
- "\u0000TQ\u0001\u0000\u0000\u0000TR\u0001\u0000\u0000\u0000TS\u0001\u0000"+
- "\u0000\u0000UX\u0001\u0000\u0000\u0000VT\u0001\u0000\u0000\u0000VW\u0001"+
- "\u0000\u0000\u0000W[\u0001\u0000\u0000\u0000XV\u0001\u0000\u0000\u0000"+
- "YZ\u0005\u0002\u0000\u0000Z\\\u00034\u001a\u0000[Y\u0001\u0000\u0000\u0000"+
- "[\\\u0001\u0000\u0000\u0000\\]\u0001\u0000\u0000\u0000]^\u0005\u001a\u0000"+
- "\u0000^\u0003\u0001\u0000\u0000\u0000_a\u0005\u0001\u0000\u0000`_\u0001"+
- "\u0000\u0000\u0000`a\u0001\u0000\u0000\u0000ab\u0001\u0000\u0000\u0000"+
- "bc\u0005$\u0000\u0000ce\u0005\u0017\u0000\u0000df\u0003\n\u0005\u0000"+
- "ed\u0001\u0000\u0000\u0000ef\u0001\u0000\u0000\u0000fg\u0001\u0000\u0000"+
- "\u0000gh\u0005\u0018\u0000\u0000hi\u00034\u001a\u0000i\u0005\u0001\u0000"+
- "\u0000\u0000jl\u0005\u0001\u0000\u0000kj\u0001\u0000\u0000\u0000kl\u0001"+
- "\u0000\u0000\u0000lo\u0001\u0000\u0000\u0000mp\u0003B!\u0000np\u0005%"+
- "\u0000\u0000om\u0001\u0000\u0000\u0000on\u0001\u0000\u0000\u0000pq\u0001"+
- "\u0000\u0000\u0000qr\u0005$\u0000\u0000rt\u0005\u0017\u0000\u0000su\u0003"+
- "\n\u0005\u0000ts\u0001\u0000\u0000\u0000tu\u0001\u0000\u0000\u0000uv\u0001"+
- "\u0000\u0000\u0000vw\u0005\u0018\u0000\u0000wx\u00034\u001a\u0000x\u0007"+
- "\u0001\u0000\u0000\u0000y{\u0005\u0001\u0000\u0000zy\u0001\u0000\u0000"+
- "\u0000z{\u0001\u0000\u0000\u0000{|\u0001\u0000\u0000\u0000|}\u0003B!\u0000"+
- "}~\u0005$\u0000\u0000~\u007f\u0005\u001b\u0000\u0000\u007f\t\u0001\u0000"+
- "\u0000\u0000\u0080\u0085\u0003\f\u0006\u0000\u0081\u0082\u0005\u001c\u0000"+
- "\u0000\u0082\u0084\u0003\f\u0006\u0000\u0083\u0081\u0001\u0000\u0000\u0000"+
- "\u0084\u0087\u0001\u0000\u0000\u0000\u0085\u0083\u0001\u0000\u0000\u0000"+
- "\u0085\u0086\u0001\u0000\u0000\u0000\u0086\u000b\u0001\u0000\u0000\u0000"+
- "\u0087\u0085\u0001\u0000\u0000\u0000\u0088\u0089\u0003B!\u0000\u0089\u008a"+
- "\u0005$\u0000\u0000\u008a\r\u0001\u0000\u0000\u0000\u008b\u008e\u0003"+
- "\u0010\b\u0000\u008c\u008e\u0003 \u0010\u0000\u008d\u008b\u0001\u0000"+
- "\u0000\u0000\u008d\u008c\u0001\u0000\u0000\u0000\u008e\u000f\u0001\u0000"+
- "\u0000\u0000\u008f\u0097\u0005\u001e\u0000\u0000\u0090\u0097\u0003\u0012"+
- "\t\u0000\u0091\u0097\u0003,\u0016\u0000\u0092\u0093\u0005\u0017\u0000"+
- "\u0000\u0093\u0094\u0003\u0010\b\u0000\u0094\u0095\u0005\u0018\u0000\u0000"+
- "\u0095\u0097\u0001\u0000\u0000\u0000\u0096\u008f\u0001\u0000\u0000\u0000"+
- "\u0096\u0090\u0001\u0000\u0000\u0000\u0096\u0091\u0001\u0000\u0000\u0000"+
- "\u0096\u0092\u0001\u0000\u0000\u0000\u0097\u0011\u0001\u0000\u0000\u0000"+
- "\u0098\u009b\u0005$\u0000\u0000\u0099\u009b\u0003\u0014\n\u0000\u009a"+
- "\u0098\u0001\u0000\u0000\u0000\u009a\u0099\u0001\u0000\u0000\u0000\u009b"+
- "\u0013\u0001\u0000\u0000\u0000\u009c\u009e\u0003\u001a\r\u0000\u009d\u009c"+
- "\u0001\u0000\u0000\u0000\u009d\u009e\u0001\u0000\u0000\u0000\u009e\u00a2"+
- "\u0001\u0000\u0000\u0000\u009f\u00a1\u0003\u001e\u000f\u0000\u00a0\u009f"+
- "\u0001\u0000\u0000\u0000\u00a1\u00a4\u0001\u0000\u0000\u0000\u00a2\u00a0"+
- "\u0001\u0000\u0000\u0000\u00a2\u00a3\u0001\u0000\u0000\u0000\u00a3\u00a5"+
- "\u0001\u0000\u0000\u0000\u00a4\u00a2\u0001\u0000\u0000\u0000\u00a5\u00a6"+
- "\u0005$\u0000\u0000\u00a6\u0015\u0001\u0000\u0000\u0000\u00a7\u00a9\u0003"+
- "\u001c\u000e\u0000\u00a8\u00a7\u0001\u0000\u0000\u0000\u00a8\u00a9\u0001"+
- "\u0000\u0000\u0000\u00a9\u00ad\u0001\u0000\u0000\u0000\u00aa\u00ac\u0003"+
- "\u001e\u000f\u0000\u00ab\u00aa\u0001\u0000\u0000\u0000\u00ac\u00af\u0001"+
- "\u0000\u0000\u0000\u00ad\u00ab\u0001\u0000\u0000\u0000\u00ad\u00ae\u0001"+
- "\u0000\u0000\u0000\u00ae\u00b0\u0001\u0000\u0000\u0000\u00af\u00ad\u0001"+
- "\u0000\u0000\u0000\u00b0\u00b1\u0005$\u0000\u0000\u00b1\u00b2\u0005\u0017"+
- "\u0000\u0000\u00b2\u00b3\u0003\u0018\f\u0000\u00b3\u00b4\u0005\u0018\u0000"+
- "\u0000\u00b4\u0017\u0001\u0000\u0000\u0000\u00b5\u00b7\u0003\u000e\u0007"+
- "\u0000\u00b6\u00b5\u0001\u0000\u0000\u0000\u00b6\u00b7\u0001\u0000\u0000"+
- "\u0000\u00b7\u00c0\u0001\u0000\u0000\u0000\u00b8\u00bb\u0003\u000e\u0007"+
- "\u0000\u00b9\u00ba\u0005\u001c\u0000\u0000\u00ba\u00bc\u0003\u000e\u0007"+
- "\u0000\u00bb\u00b9\u0001\u0000\u0000\u0000\u00bc\u00bd\u0001\u0000\u0000"+
- "\u0000\u00bd\u00bb\u0001\u0000\u0000\u0000\u00bd\u00be\u0001\u0000\u0000"+
- "\u0000\u00be\u00c0\u0001\u0000\u0000\u0000\u00bf\u00b6\u0001\u0000\u0000"+
- "\u0000\u00bf\u00b8\u0001\u0000\u0000\u0000\u00c0\u0019\u0001\u0000\u0000"+
- "\u0000\u00c1\u00c5\u0005\u001e\u0000\u0000\u00c2\u00c5\u0003@ \u0000\u00c3"+
- "\u00c5\u0005$\u0000\u0000\u00c4\u00c1\u0001\u0000\u0000\u0000\u00c4\u00c2"+
- "\u0001\u0000\u0000\u0000\u00c4\u00c3\u0001\u0000\u0000\u0000\u00c5\u00c6"+
- "\u0001\u0000\u0000\u0000\u00c6\u00c7\u0005\u0016\u0000\u0000\u00c7\u001b"+
- "\u0001\u0000\u0000\u0000\u00c8\u00cd\u0005\u001e\u0000\u0000\u00c9\u00cd"+
- "\u0003\u0014\n\u0000\u00ca\u00cd\u0003@ \u0000\u00cb\u00cd\u0005$\u0000"+
- "\u0000\u00cc\u00c8\u0001\u0000\u0000\u0000\u00cc\u00c9\u0001\u0000\u0000"+
- "\u0000\u00cc\u00ca\u0001\u0000\u0000\u0000\u00cc\u00cb\u0001\u0000\u0000"+
- "\u0000\u00cd\u00ce\u0001\u0000\u0000\u0000\u00ce\u00cf\u0005\u0016\u0000"+
- "\u0000\u00cf\u001d\u0001\u0000\u0000\u0000\u00d0\u00d1\u0005$\u0000\u0000"+
- "\u00d1\u00d2\u0005\u0017\u0000\u0000\u00d2\u00d3\u0003\u0018\f\u0000\u00d3"+
- "\u00d4\u0005\u0018\u0000\u0000\u00d4\u00d5\u0005\u0016\u0000\u0000\u00d5"+
- "\u001f\u0001\u0000\u0000\u0000\u00d6\u00dc\u0003\"\u0011\u0000\u00d7\u00dc"+
- "\u0003(\u0014\u0000\u00d8\u00dc\u0003D\"\u0000\u00d9\u00da\u0005\u0013"+
- "\u0000\u0000\u00da\u00dc\u0003 \u0010\u0000\u00db\u00d6\u0001\u0000\u0000"+
- "\u0000\u00db\u00d7\u0001\u0000\u0000\u0000\u00db\u00d8\u0001\u0000\u0000"+
- "\u0000\u00db\u00d9\u0001\u0000\u0000\u0000\u00dc!\u0001\u0000\u0000\u0000"+
- "\u00dd\u00de\u0006\u0011\uffff\uffff\u0000\u00de\u00df\u0003$\u0012\u0000"+
- "\u00df\u00e5\u0001\u0000\u0000\u0000\u00e0\u00e1\n\u0002\u0000\u0000\u00e1"+
- "\u00e2\u0005\u0004\u0000\u0000\u00e2\u00e4\u0003$\u0012\u0000\u00e3\u00e0"+
- "\u0001\u0000\u0000\u0000\u00e4\u00e7\u0001\u0000\u0000\u0000\u00e5\u00e3"+
- "\u0001\u0000\u0000\u0000\u00e5\u00e6\u0001\u0000\u0000\u0000\u00e6#\u0001"+
- "\u0000\u0000\u0000\u00e7\u00e5\u0001\u0000\u0000\u0000\u00e8\u00e9\u0006"+
- "\u0012\uffff\uffff\u0000\u00e9\u00ea\u0003&\u0013\u0000\u00ea\u00f0\u0001"+
- "\u0000\u0000\u0000\u00eb\u00ec\n\u0002\u0000\u0000\u00ec\u00ed\u0005\u0003"+
- "\u0000\u0000\u00ed\u00ef\u0003&\u0013\u0000\u00ee\u00eb\u0001\u0000\u0000"+
- "\u0000\u00ef\u00f2\u0001\u0000\u0000\u0000\u00f0\u00ee\u0001\u0000\u0000"+
- "\u0000\u00f0\u00f1\u0001\u0000\u0000\u0000\u00f1%\u0001\u0000\u0000\u0000"+
- "\u00f2\u00f0\u0001\u0000\u0000\u0000\u00f3\u00fc\u0005)\u0000\u0000\u00f4"+
- "\u00fc\u0005$\u0000\u0000\u00f5\u00fc\u0003\u0014\n\u0000\u00f6\u00fc"+
- "\u0003\u0016\u000b\u0000\u00f7\u00f8\u0005\u0017\u0000\u0000\u00f8\u00f9"+
- "\u0003\"\u0011\u0000\u00f9\u00fa\u0005\u0018\u0000\u0000\u00fa\u00fc\u0001"+
- "\u0000\u0000\u0000\u00fb\u00f3\u0001\u0000\u0000\u0000\u00fb\u00f4\u0001"+
- "\u0000\u0000\u0000\u00fb\u00f5\u0001\u0000\u0000\u0000\u00fb\u00f6\u0001"+
- "\u0000\u0000\u0000\u00fb\u00f7\u0001\u0000\u0000\u0000\u00fc\'\u0001\u0000"+
- "\u0000\u0000\u00fd\u00fe\u0003\u0010\b\u0000\u00fe\u00ff\u0003*\u0015"+
- "\u0000\u00ff\u0100\u0003\u000e\u0007\u0000\u0100)\u0001\u0000\u0000\u0000"+
- "\u0101\u0102\u0007\u0000\u0000\u0000\u0102+\u0001\u0000\u0000\u0000\u0103"+
- "\u0107\u0003>\u001f\u0000\u0104\u0107\u0003@ \u0000\u0105\u0107\u0003"+
- "\u0016\u000b\u0000\u0106\u0103\u0001\u0000\u0000\u0000\u0106\u0104\u0001"+
- "\u0000\u0000\u0000\u0106\u0105\u0001\u0000\u0000\u0000\u0107-\u0001\u0000"+
- "\u0000\u0000\u0108\u0109\u00030\u0018\u0000\u0109\u010a\u0005\u001b\u0000"+
- "\u0000\u010a\u0115\u0001\u0000\u0000\u0000\u010b\u010c\u00032\u0019\u0000"+
- "\u010c\u010d\u0005\u001b\u0000\u0000\u010d\u0115\u0001\u0000\u0000\u0000"+
- "\u010e\u0115\u00034\u001a\u0000\u010f\u0115\u00036\u001b\u0000\u0110\u0115"+
- "\u00038\u001c\u0000\u0111\u0112\u0003,\u0016\u0000\u0112\u0113\u0005\u001b"+
- "\u0000\u0000\u0113\u0115\u0001\u0000\u0000\u0000\u0114\u0108\u0001\u0000"+
- "\u0000\u0000\u0114\u010b\u0001\u0000\u0000\u0000\u0114\u010e\u0001\u0000"+
- "\u0000\u0000\u0114\u010f\u0001\u0000\u0000\u0000\u0114\u0110\u0001\u0000"+
- "\u0000\u0000\u0114\u0111\u0001\u0000\u0000\u0000\u0115/\u0001\u0000\u0000"+
- "\u0000\u0116\u0118\u0005\"\u0000\u0000\u0117\u0119\u0003\u000e\u0007\u0000"+
- "\u0118\u0117\u0001\u0000\u0000\u0000\u0118\u0119\u0001\u0000\u0000\u0000"+
- "\u01191\u0001\u0000\u0000\u0000\u011a\u011b\u0003B!\u0000\u011b\u011e"+
- "\u0005$\u0000\u0000\u011c\u011d\u0005\u0007\u0000\u0000\u011d\u011f\u0003"+
- "\u000e\u0007\u0000\u011e\u011c\u0001\u0000\u0000\u0000\u011e\u011f\u0001"+
- "\u0000\u0000\u0000\u011f3\u0001\u0000\u0000\u0000\u0120\u0124\u0005\u0019"+
- "\u0000\u0000\u0121\u0123\u0003.\u0017\u0000\u0122\u0121\u0001\u0000\u0000"+
- "\u0000\u0123\u0126\u0001\u0000\u0000\u0000\u0124\u0122\u0001\u0000\u0000"+
- "\u0000\u0124\u0125\u0001\u0000\u0000\u0000\u0125\u0127\u0001\u0000\u0000"+
- "\u0000\u0126\u0124\u0001\u0000\u0000\u0000\u0127\u0128\u0005\u001a\u0000"+
- "\u0000\u01285\u0001\u0000\u0000\u0000\u0129\u012a\u0005\u001f\u0000\u0000"+
- "\u012a\u012b\u0005\u0017\u0000\u0000\u012b\u012c\u0003\u000e\u0007\u0000"+
- "\u012c\u012d\u0005\u0018\u0000\u0000\u012d\u012e\u0003.\u0017\u0000\u012e"+
- "7\u0001\u0000\u0000\u0000\u012f\u0131\u0003:\u001d\u0000\u0130\u0132\u0003"+
- "<\u001e\u0000\u0131\u0130\u0001\u0000\u0000\u0000\u0131\u0132\u0001\u0000"+
- "\u0000\u0000\u01329\u0001\u0000\u0000\u0000\u0133\u0134\u0005 \u0000\u0000"+
- "\u0134\u0135\u0005\u0017\u0000\u0000\u0135\u0136\u0003\u000e\u0007\u0000"+
- "\u0136\u0137\u0005\u0018\u0000\u0000\u0137\u0138\u0003.\u0017\u0000\u0138"+
- ";\u0001\u0000\u0000\u0000\u0139\u013a\u0005!\u0000\u0000\u013a\u013b\u0003"+
- ".\u0017\u0000\u013b=\u0001\u0000\u0000\u0000\u013c\u013d\u0003\u0012\t"+
- "\u0000\u013d\u013e\u0005\u0007\u0000\u0000\u013e\u013f\u0003\u000e\u0007"+
- "\u0000\u013f?\u0001\u0000\u0000\u0000\u0140\u0141\u0005#\u0000\u0000\u0141"+
- "\u0142\u0005$\u0000\u0000\u0142\u0143\u0005\u0017\u0000\u0000\u0143\u0144"+
- "\u0003\u0018\f\u0000\u0144\u0145\u0005\u0018\u0000\u0000\u0145A\u0001"+
- "\u0000\u0000\u0000\u0146\u0147\u0007\u0001\u0000\u0000\u0147C\u0001\u0000"+
- "\u0000\u0000\u0148\u0149\u0007\u0002\u0000\u0000\u0149E\u0001\u0000\u0000"+
- "\u0000\"ILTV[`ekotz\u0085\u008d\u0096\u009a\u009d\u00a2\u00a8\u00ad\u00b6"+
- "\u00bd\u00bf\u00c4\u00cc\u00db\u00e5\u00f0\u00fb\u0106\u0114\u0118\u011e"+
- "\u0124\u0131";
+ "\u0001\u001e\u0001\u001e\u0003\u001e\u0139\b\u001e\u0001\u001e\u0001\u001e"+
+ "\u0001\u001f\u0001\u001f\u0001\u001f\u0001\u001f\u0001\u001f\u0001\u001f"+
+ "\u0001 \u0001 \u0001!\u0001!\u0001!\u0000\u0002 \"\"\u0000\u0002\u0004"+
+ "\u0006\b\n\f\u000e\u0010\u0012\u0014\u0016\u0018\u001a\u001c\u001e \""+
+ "$&(*,.02468:<>@B\u0000\u0003\u0001\u0000\u000b\f\u0002\u0000\u0006\b,"+
+ ",\u0002\u0000\u0001\u0002*+\u0156\u0000E\u0001\u0000\u0000\u0000\u0002"+
+ "J\u0001\u0000\u0000\u0000\u0004^\u0001\u0000\u0000\u0000\u0006i\u0001"+
+ "\u0000\u0000\u0000\bw\u0001\u0000\u0000\u0000\n\u007f\u0001\u0000\u0000"+
+ "\u0000\f\u008c\u0001\u0000\u0000\u0000\u000e\u0090\u0001\u0000\u0000\u0000"+
+ "\u0010\u0099\u0001\u0000\u0000\u0000\u0012\u009c\u0001\u0000\u0000\u0000"+
+ "\u0014\u00b5\u0001\u0000\u0000\u0000\u0016\u00ba\u0001\u0000\u0000\u0000"+
+ "\u0018\u00be\u0001\u0000\u0000\u0000\u001a\u00c3\u0001\u0000\u0000\u0000"+
+ "\u001c\u00c8\u0001\u0000\u0000\u0000\u001e\u00d7\u0001\u0000\u0000\u0000"+
+ " \u00d9\u0001\u0000\u0000\u0000\"\u00e4\u0001\u0000\u0000\u0000$\u00f7"+
+ "\u0001\u0000\u0000\u0000&\u00f9\u0001\u0000\u0000\u0000(\u00fd\u0001\u0000"+
+ "\u0000\u0000*\u00ff\u0001\u0000\u0000\u0000,\u0104\u0001\u0000\u0000\u0000"+
+ ".\u010e\u0001\u0000\u0000\u00000\u0117\u0001\u0000\u0000\u00002\u011d"+
+ "\u0001\u0000\u0000\u00004\u0121\u0001\u0000\u0000\u00006\u0127\u0001\u0000"+
+ "\u0000\u00008\u012a\u0001\u0000\u0000\u0000:\u012e\u0001\u0000\u0000\u0000"+
+ "<\u0138\u0001\u0000\u0000\u0000>\u013c\u0001\u0000\u0000\u0000@\u0142"+
+ "\u0001\u0000\u0000\u0000B\u0144\u0001\u0000\u0000\u0000DF\u0003\u0002"+
+ "\u0001\u0000ED\u0001\u0000\u0000\u0000FG\u0001\u0000\u0000\u0000GE\u0001"+
+ "\u0000\u0000\u0000GH\u0001\u0000\u0000\u0000H\u0001\u0001\u0000\u0000"+
+ "\u0000IK\u0005\u0003\u0000\u0000JI\u0001\u0000\u0000\u0000JK\u0001\u0000"+
+ "\u0000\u0000KL\u0001\u0000\u0000\u0000LM\u0005#\u0000\u0000MN\u0005,\u0000"+
+ "\u0000NT\u0005\u001f\u0000\u0000OS\u0003\u0004\u0002\u0000PS\u0003,\u0016"+
+ "\u0000QS\u0003\u0006\u0003\u0000RO\u0001\u0000\u0000\u0000RP\u0001\u0000"+
+ "\u0000\u0000RQ\u0001\u0000\u0000\u0000SV\u0001\u0000\u0000\u0000TR\u0001"+
+ "\u0000\u0000\u0000TU\u0001\u0000\u0000\u0000UY\u0001\u0000\u0000\u0000"+
+ "VT\u0001\u0000\u0000\u0000WX\u0005\u0004\u0000\u0000XZ\u0003.\u0017\u0000"+
+ "YW\u0001\u0000\u0000\u0000YZ\u0001\u0000\u0000\u0000Z[\u0001\u0000\u0000"+
+ "\u0000[\\\u0005 \u0000\u0000\\\u0003\u0001\u0000\u0000\u0000]_\u0005\u0003"+
+ "\u0000\u0000^]\u0001\u0000\u0000\u0000^_\u0001\u0000\u0000\u0000_`\u0001"+
+ "\u0000\u0000\u0000`a\u0005,\u0000\u0000ac\u0005\u001d\u0000\u0000bd\u0003"+
+ "\b\u0004\u0000cb\u0001\u0000\u0000\u0000cd\u0001\u0000\u0000\u0000de\u0001"+
+ "\u0000\u0000\u0000ef\u0005\u001e\u0000\u0000fg\u0003.\u0017\u0000g\u0005"+
+ "\u0001\u0000\u0000\u0000hj\u0005\u0003\u0000\u0000ih\u0001\u0000\u0000"+
+ "\u0000ij\u0001\u0000\u0000\u0000jm\u0001\u0000\u0000\u0000kn\u0003@ \u0000"+
+ "ln\u0005\u0005\u0000\u0000mk\u0001\u0000\u0000\u0000ml\u0001\u0000\u0000"+
+ "\u0000no\u0001\u0000\u0000\u0000op\u0005,\u0000\u0000pr\u0005\u001d\u0000"+
+ "\u0000qs\u0003\b\u0004\u0000rq\u0001\u0000\u0000\u0000rs\u0001\u0000\u0000"+
+ "\u0000st\u0001\u0000\u0000\u0000tu\u0005\u001e\u0000\u0000uv\u0003.\u0017"+
+ "\u0000v\u0007\u0001\u0000\u0000\u0000w|\u0003\n\u0005\u0000xy\u0005\""+
+ "\u0000\u0000y{\u0003\n\u0005\u0000zx\u0001\u0000\u0000\u0000{~\u0001\u0000"+
+ "\u0000\u0000|z\u0001\u0000\u0000\u0000|}\u0001\u0000\u0000\u0000}\t\u0001"+
+ "\u0000\u0000\u0000~|\u0001\u0000\u0000\u0000\u007f\u0080\u0003@ \u0000"+
+ "\u0080\u0081\u0005,\u0000\u0000\u0081\u000b\u0001\u0000\u0000\u0000\u0082"+
+ "\u0084\u0003\u000e\u0007\u0000\u0083\u0082\u0001\u0000\u0000\u0000\u0083"+
+ "\u0084\u0001\u0000\u0000\u0000\u0084\u008d\u0001\u0000\u0000\u0000\u0085"+
+ "\u0088\u0003\u000e\u0007\u0000\u0086\u0087\u0005\"\u0000\u0000\u0087\u0089"+
+ "\u0003\u000e\u0007\u0000\u0088\u0086\u0001\u0000\u0000\u0000\u0089\u008a"+
+ "\u0001\u0000\u0000\u0000\u008a\u0088\u0001\u0000\u0000\u0000\u008a\u008b"+
+ "\u0001\u0000\u0000\u0000\u008b\u008d\u0001\u0000\u0000\u0000\u008c\u0083"+
+ "\u0001\u0000\u0000\u0000\u008c\u0085\u0001\u0000\u0000\u0000\u008d\r\u0001"+
+ "\u0000\u0000\u0000\u008e\u0091\u0003\u0010\b\u0000\u008f\u0091\u0003\u001e"+
+ "\u000f\u0000\u0090\u008e\u0001\u0000\u0000\u0000\u0090\u008f\u0001\u0000"+
+ "\u0000\u0000\u0091\u000f\u0001\u0000\u0000\u0000\u0092\u009a\u0005$\u0000"+
+ "\u0000\u0093\u009a\u0003\u0018\f\u0000\u0094\u009a\u0003\u0016\u000b\u0000"+
+ "\u0095\u0096\u0005\u001d\u0000\u0000\u0096\u0097\u0003\u0010\b\u0000\u0097"+
+ "\u0098\u0005\u001e\u0000\u0000\u0098\u009a\u0001\u0000\u0000\u0000\u0099"+
+ "\u0092\u0001\u0000\u0000\u0000\u0099\u0093\u0001\u0000\u0000\u0000\u0099"+
+ "\u0094\u0001\u0000\u0000\u0000\u0099\u0095\u0001\u0000\u0000\u0000\u009a"+
+ "\u0011\u0001\u0000\u0000\u0000\u009b\u009d\u0003<\u001e\u0000\u009c\u009b"+
+ "\u0001\u0000\u0000\u0000\u009c\u009d\u0001\u0000\u0000\u0000\u009d\u00a1"+
+ "\u0001\u0000\u0000\u0000\u009e\u00a0\u0003>\u001f\u0000\u009f\u009e\u0001"+
+ "\u0000\u0000\u0000\u00a0\u00a3\u0001\u0000\u0000\u0000\u00a1\u009f\u0001"+
+ "\u0000\u0000\u0000\u00a1\u00a2\u0001\u0000\u0000\u0000\u00a2\u00a4\u0001"+
+ "\u0000\u0000\u0000\u00a3\u00a1\u0001\u0000\u0000\u0000\u00a4\u00a5\u0005"+
+ ",\u0000\u0000\u00a5\u00a6\u0005\u001d\u0000\u0000\u00a6\u00a7\u0003\f"+
+ "\u0006\u0000\u00a7\u00a8\u0005\u001e\u0000\u0000\u00a8\u0013\u0001\u0000"+
+ "\u0000\u0000\u00a9\u00aa\u0003*\u0015\u0000\u00aa\u00ab\u0005!\u0000\u0000"+
+ "\u00ab\u00b6\u0001\u0000\u0000\u0000\u00ac\u00ad\u0003,\u0016\u0000\u00ad"+
+ "\u00ae\u0005!\u0000\u0000\u00ae\u00b6\u0001\u0000\u0000\u0000\u00af\u00b6"+
+ "\u0003.\u0017\u0000\u00b0\u00b6\u00030\u0018\u0000\u00b1\u00b6\u00032"+
+ "\u0019\u0000\u00b2\u00b3\u0003\u0016\u000b\u0000\u00b3\u00b4\u0005!\u0000"+
+ "\u0000\u00b4\u00b6\u0001\u0000\u0000\u0000\u00b5\u00a9\u0001\u0000\u0000"+
+ "\u0000\u00b5\u00ac\u0001\u0000\u0000\u0000\u00b5\u00af\u0001\u0000\u0000"+
+ "\u0000\u00b5\u00b0\u0001\u0000\u0000\u0000\u00b5\u00b1\u0001\u0000\u0000"+
+ "\u0000\u00b5\u00b2\u0001\u0000\u0000\u0000\u00b6\u0015\u0001\u0000\u0000"+
+ "\u0000\u00b7\u00bb\u00038\u001c\u0000\u00b8\u00bb\u0003:\u001d\u0000\u00b9"+
+ "\u00bb\u0003\u0012\t\u0000\u00ba\u00b7\u0001\u0000\u0000\u0000\u00ba\u00b8"+
+ "\u0001\u0000\u0000\u0000\u00ba\u00b9\u0001\u0000\u0000\u0000\u00bb\u0017"+
+ "\u0001\u0000\u0000\u0000\u00bc\u00bf\u0005,\u0000\u0000\u00bd\u00bf\u0003"+
+ "\u001c\u000e\u0000\u00be\u00bc\u0001\u0000\u0000\u0000\u00be\u00bd\u0001"+
+ "\u0000\u0000\u0000\u00bf\u0019\u0001\u0000\u0000\u0000\u00c0\u00c4\u0005"+
+ "$\u0000\u0000\u00c1\u00c4\u0003:\u001d\u0000\u00c2\u00c4\u0005,\u0000"+
+ "\u0000\u00c3\u00c0\u0001\u0000\u0000\u0000\u00c3\u00c1\u0001\u0000\u0000"+
+ "\u0000\u00c3\u00c2\u0001\u0000\u0000\u0000\u00c4\u00c5\u0001\u0000\u0000"+
+ "\u0000\u00c5\u00c6\u0005\u001c\u0000\u0000\u00c6\u001b\u0001\u0000\u0000"+
+ "\u0000\u00c7\u00c9\u0003\u001a\r\u0000\u00c8\u00c7\u0001\u0000\u0000\u0000"+
+ "\u00c8\u00c9\u0001\u0000\u0000\u0000\u00c9\u00cd\u0001\u0000\u0000\u0000"+
+ "\u00ca\u00cc\u0003>\u001f\u0000\u00cb\u00ca\u0001\u0000\u0000\u0000\u00cc"+
+ "\u00cf\u0001\u0000\u0000\u0000\u00cd\u00cb\u0001\u0000\u0000\u0000\u00cd"+
+ "\u00ce\u0001\u0000\u0000\u0000\u00ce\u00d0\u0001\u0000\u0000\u0000\u00cf"+
+ "\u00cd\u0001\u0000\u0000\u0000\u00d0\u00d1\u0005,\u0000\u0000\u00d1\u001d"+
+ "\u0001\u0000\u0000\u0000\u00d2\u00d8\u0003 \u0010\u0000\u00d3\u00d8\u0003"+
+ "&\u0013\u0000\u00d4\u00d8\u0003B!\u0000\u00d5\u00d6\u0005\u0019\u0000"+
+ "\u0000\u00d6\u00d8\u0003\u001e\u000f\u0000\u00d7\u00d2\u0001\u0000\u0000"+
+ "\u0000\u00d7\u00d3\u0001\u0000\u0000\u0000\u00d7\u00d4\u0001\u0000\u0000"+
+ "\u0000\u00d7\u00d5\u0001\u0000\u0000\u0000\u00d8\u001f\u0001\u0000\u0000"+
+ "\u0000\u00d9\u00da\u0006\u0010\uffff\uffff\u0000\u00da\u00db\u0003\"\u0011"+
+ "\u0000\u00db\u00e1\u0001\u0000\u0000\u0000\u00dc\u00dd\n\u0002\u0000\u0000"+
+ "\u00dd\u00de\u0005\n\u0000\u0000\u00de\u00e0\u0003\"\u0011\u0000\u00df"+
+ "\u00dc\u0001\u0000\u0000\u0000\u00e0\u00e3\u0001\u0000\u0000\u0000\u00e1"+
+ "\u00df\u0001\u0000\u0000\u0000\u00e1\u00e2\u0001\u0000\u0000\u0000\u00e2"+
+ "!\u0001\u0000\u0000\u0000\u00e3\u00e1\u0001\u0000\u0000\u0000\u00e4\u00e5"+
+ "\u0006\u0011\uffff\uffff\u0000\u00e5\u00e6\u0003$\u0012\u0000\u00e6\u00ec"+
+ "\u0001\u0000\u0000\u0000\u00e7\u00e8\n\u0002\u0000\u0000\u00e8\u00e9\u0005"+
+ "\t\u0000\u0000\u00e9\u00eb\u0003$\u0012\u0000\u00ea\u00e7\u0001\u0000"+
+ "\u0000\u0000\u00eb\u00ee\u0001\u0000\u0000\u0000\u00ec\u00ea\u0001\u0000"+
+ "\u0000\u0000\u00ec\u00ed\u0001\u0000\u0000\u0000\u00ed#\u0001\u0000\u0000"+
+ "\u0000\u00ee\u00ec\u0001\u0000\u0000\u0000\u00ef\u00f8\u0005*\u0000\u0000"+
+ "\u00f0\u00f8\u0005,\u0000\u0000\u00f1\u00f8\u0003\u001c\u000e\u0000\u00f2"+
+ "\u00f8\u0003\u0012\t\u0000\u00f3\u00f4\u0005\u001d\u0000\u0000\u00f4\u00f5"+
+ "\u0003 \u0010\u0000\u00f5\u00f6\u0005\u001e\u0000\u0000\u00f6\u00f8\u0001"+
+ "\u0000\u0000\u0000\u00f7\u00ef\u0001\u0000\u0000\u0000\u00f7\u00f0\u0001"+
+ "\u0000\u0000\u0000\u00f7\u00f1\u0001\u0000\u0000\u0000\u00f7\u00f2\u0001"+
+ "\u0000\u0000\u0000\u00f7\u00f3\u0001\u0000\u0000\u0000\u00f8%\u0001\u0000"+
+ "\u0000\u0000\u00f9\u00fa\u0003\u0010\b\u0000\u00fa\u00fb\u0003(\u0014"+
+ "\u0000\u00fb\u00fc\u0003\u000e\u0007\u0000\u00fc\'\u0001\u0000\u0000\u0000"+
+ "\u00fd\u00fe\u0007\u0000\u0000\u0000\u00fe)\u0001\u0000\u0000\u0000\u00ff"+
+ "\u0101\u0005(\u0000\u0000\u0100\u0102\u0003\u000e\u0007\u0000\u0101\u0100"+
+ "\u0001\u0000\u0000\u0000\u0101\u0102\u0001\u0000\u0000\u0000\u0102+\u0001"+
+ "\u0000\u0000\u0000\u0103\u0105\u0005\u0003\u0000\u0000\u0104\u0103\u0001"+
+ "\u0000\u0000\u0000\u0104\u0105\u0001\u0000\u0000\u0000\u0105\u0106\u0001"+
+ "\u0000\u0000\u0000\u0106\u0107\u0003@ \u0000\u0107\u010a\u0005,\u0000"+
+ "\u0000\u0108\u0109\u0005\r\u0000\u0000\u0109\u010b\u0003\u000e\u0007\u0000"+
+ "\u010a\u0108\u0001\u0000\u0000\u0000\u010a\u010b\u0001\u0000\u0000\u0000"+
+ "\u010b\u010c\u0001\u0000\u0000\u0000\u010c\u010d\u0005!\u0000\u0000\u010d"+
+ "-\u0001\u0000\u0000\u0000\u010e\u0112\u0005\u001f\u0000\u0000\u010f\u0111"+
+ "\u0003\u0014\n\u0000\u0110\u010f\u0001\u0000\u0000\u0000\u0111\u0114\u0001"+
+ "\u0000\u0000\u0000\u0112\u0110\u0001\u0000\u0000\u0000\u0112\u0113\u0001"+
+ "\u0000\u0000\u0000\u0113\u0115\u0001\u0000\u0000\u0000\u0114\u0112\u0001"+
+ "\u0000\u0000\u0000\u0115\u0116\u0005 \u0000\u0000\u0116/\u0001\u0000\u0000"+
+ "\u0000\u0117\u0118\u0005%\u0000\u0000\u0118\u0119\u0005\u001d\u0000\u0000"+
+ "\u0119\u011a\u0003\u000e\u0007\u0000\u011a\u011b\u0005\u001e\u0000\u0000"+
+ "\u011b\u011c\u0003\u0014\n\u0000\u011c1\u0001\u0000\u0000\u0000\u011d"+
+ "\u011f\u00034\u001a\u0000\u011e\u0120\u00036\u001b\u0000\u011f\u011e\u0001"+
+ "\u0000\u0000\u0000\u011f\u0120\u0001\u0000\u0000\u0000\u01203\u0001\u0000"+
+ "\u0000\u0000\u0121\u0122\u0005&\u0000\u0000\u0122\u0123\u0005\u001d\u0000"+
+ "\u0000\u0123\u0124\u0003\u000e\u0007\u0000\u0124\u0125\u0005\u001e\u0000"+
+ "\u0000\u0125\u0126\u0003\u0014\n\u0000\u01265\u0001\u0000\u0000\u0000"+
+ "\u0127\u0128\u0005\'\u0000\u0000\u0128\u0129\u0003\u0014\n\u0000\u0129"+
+ "7\u0001\u0000\u0000\u0000\u012a\u012b\u0003\u0018\f\u0000\u012b\u012c"+
+ "\u0005\r\u0000\u0000\u012c\u012d\u0003\u000e\u0007\u0000\u012d9\u0001"+
+ "\u0000\u0000\u0000\u012e\u012f\u0005)\u0000\u0000\u012f\u0130\u0005,\u0000"+
+ "\u0000\u0130\u0131\u0005\u001d\u0000\u0000\u0131\u0132\u0003\f\u0006\u0000"+
+ "\u0132\u0133\u0005\u001e\u0000\u0000\u0133;\u0001\u0000\u0000\u0000\u0134"+
+ "\u0139\u0005$\u0000\u0000\u0135\u0139\u0003\u001c\u000e\u0000\u0136\u0139"+
+ "\u0003:\u001d\u0000\u0137\u0139\u0005,\u0000\u0000\u0138\u0134\u0001\u0000"+
+ "\u0000\u0000\u0138\u0135\u0001\u0000\u0000\u0000\u0138\u0136\u0001\u0000"+
+ "\u0000\u0000\u0138\u0137\u0001\u0000\u0000\u0000\u0139\u013a\u0001\u0000"+
+ "\u0000\u0000\u013a\u013b\u0005\u001c\u0000\u0000\u013b=\u0001\u0000\u0000"+
+ "\u0000\u013c\u013d\u0005,\u0000\u0000\u013d\u013e\u0005\u001d\u0000\u0000"+
+ "\u013e\u013f\u0003\f\u0006\u0000\u013f\u0140\u0005\u001e\u0000\u0000\u0140"+
+ "\u0141\u0005\u001c\u0000\u0000\u0141?\u0001\u0000\u0000\u0000\u0142\u0143"+
+ "\u0007\u0001\u0000\u0000\u0143A\u0001\u0000\u0000\u0000\u0144\u0145\u0007"+
+ "\u0002\u0000\u0000\u0145C\u0001\u0000\u0000\u0000\"GJRTY^cimr|\u0083\u008a"+
+ "\u008c\u0090\u0099\u009c\u00a1\u00b5\u00ba\u00be\u00c3\u00c8\u00cd\u00d7"+
+ "\u00e1\u00ec\u00f7\u0101\u0104\u010a\u0112\u011f\u0138";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
diff --git a/src/main/java/gen/DecafVisitor.java b/src/main/java/gen/DecafVisitor.java
index e9a524c..cfe0332 100644
--- a/src/main/java/gen/DecafVisitor.java
+++ b/src/main/java/gen/DecafVisitor.java
@@ -1,4 +1,5 @@
-package gen;// Generated from C:/Users/dh10krj/OneDrive - Durr Group/Dokumente/S4/Compilerbau/projekt/NichtHaskell/Source/Decaf.g4 by ANTLR 4.13.1
+// Generated from C:/Users/User/DHBW/Compiler/src/main/java/Decaf.g4 by ANTLR 4.13.1
+package gen;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
@@ -33,12 +34,6 @@ public interface DecafVisitor extends ParseTreeVisitor {
* @return the visitor result
*/
T visitMethodDecl(DecafParser.MethodDeclContext ctx);
- /**
- * Visit a parse tree produced by {@link DecafParser#fieldDecl}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFieldDecl(DecafParser.FieldDeclContext ctx);
/**
* Visit a parse tree produced by {@link DecafParser#parameterList}.
* @param ctx the parse tree
@@ -51,6 +46,12 @@ public interface DecafVisitor extends ParseTreeVisitor {
* @return the visitor result
*/
T visitParameter(DecafParser.ParameterContext ctx);
+ /**
+ * Visit a parse tree produced by {@link DecafParser#argumentList}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitArgumentList(DecafParser.ArgumentListContext ctx);
/**
* Visit a parse tree produced by {@link DecafParser#expression}.
* @param ctx the parse tree
@@ -63,18 +64,6 @@ public interface DecafVisitor extends ParseTreeVisitor {
* @return the visitor result
*/
T visitSubExpression(DecafParser.SubExpressionContext ctx);
- /**
- * Visit a parse tree produced by {@link DecafParser#assignableExpr}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitAssignableExpr(DecafParser.AssignableExprContext ctx);
- /**
- * Visit a parse tree produced by {@link DecafParser#instVar}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitInstVar(DecafParser.InstVarContext ctx);
/**
* Visit a parse tree produced by {@link DecafParser#methodCall}.
* @param ctx the parse tree
@@ -82,11 +71,23 @@ public interface DecafVisitor extends ParseTreeVisitor {
*/
T visitMethodCall(DecafParser.MethodCallContext ctx);
/**
- * Visit a parse tree produced by {@link DecafParser#argumentList}.
+ * Visit a parse tree produced by {@link DecafParser#statement}.
* @param ctx the parse tree
* @return the visitor result
*/
- T visitArgumentList(DecafParser.ArgumentListContext ctx);
+ T visitStatement(DecafParser.StatementContext ctx);
+ /**
+ * Visit a parse tree produced by {@link DecafParser#stmtExpr}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitStmtExpr(DecafParser.StmtExprContext ctx);
+ /**
+ * Visit a parse tree produced by {@link DecafParser#assignableExpr}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitAssignableExpr(DecafParser.AssignableExprContext ctx);
/**
* Visit a parse tree produced by {@link DecafParser#subReceiver}.
* @param ctx the parse tree
@@ -94,17 +95,11 @@ public interface DecafVisitor extends ParseTreeVisitor {
*/
T visitSubReceiver(DecafParser.SubReceiverContext ctx);
/**
- * Visit a parse tree produced by {@link DecafParser#receiver}.
+ * Visit a parse tree produced by {@link DecafParser#instVar}.
* @param ctx the parse tree
* @return the visitor result
*/
- T visitReceiver(DecafParser.ReceiverContext ctx);
- /**
- * Visit a parse tree produced by {@link DecafParser#receivingMethod}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitReceivingMethod(DecafParser.ReceivingMethodContext ctx);
+ T visitInstVar(DecafParser.InstVarContext ctx);
/**
* Visit a parse tree produced by {@link DecafParser#binaryExpr}.
* @param ctx the parse tree
@@ -141,18 +136,6 @@ public interface DecafVisitor extends ParseTreeVisitor {
* @return the visitor result
*/
T visitNonCalcOperator(DecafParser.NonCalcOperatorContext ctx);
- /**
- * Visit a parse tree produced by {@link DecafParser#stmtExpr}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitStmtExpr(DecafParser.StmtExprContext ctx);
- /**
- * Visit a parse tree produced by {@link DecafParser#statement}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitStatement(DecafParser.StatementContext ctx);
/**
* Visit a parse tree produced by {@link DecafParser#returnStmt}.
* @param ctx the parse tree
@@ -207,6 +190,18 @@ public interface DecafVisitor extends ParseTreeVisitor {
* @return the visitor result
*/
T visitNewDecl(DecafParser.NewDeclContext ctx);
+ /**
+ * Visit a parse tree produced by {@link DecafParser#receiver}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitReceiver(DecafParser.ReceiverContext ctx);
+ /**
+ * Visit a parse tree produced by {@link DecafParser#receivingMethod}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitReceivingMethod(DecafParser.ReceivingMethodContext ctx);
/**
* Visit a parse tree produced by {@link DecafParser#type}.
* @param ctx the parse tree