From 0c9acb2bc9400c80c117e5262f75d3c518a613eb Mon Sep 17 00:00:00 2001 From: StefanZ3 Date: Sun, 30 Jun 2024 14:46:58 +0200 Subject: [PATCH] add PrintStatement to ast --- src/main/java/Decaf.g4 | 2 +- .../Statement/PrintStatement.java | 28 + src/main/java/astGenerator/ASTGenerator.java | 7 + src/main/java/gen/Decaf.interp | 7 +- src/main/java/gen/Decaf.tokens | 166 ++-- src/main/java/gen/DecafBaseListener.java | 12 + src/main/java/gen/DecafBaseVisitor.java | 7 + src/main/java/gen/DecafLexer.interp | 8 +- src/main/java/gen/DecafLexer.java | 423 ++++---- src/main/java/gen/DecafLexer.tokens | 166 ++-- src/main/java/gen/DecafListener.java | 10 + src/main/java/gen/DecafParser.java | 902 ++++++++++-------- src/main/java/gen/DecafVisitor.java | 6 + 13 files changed, 951 insertions(+), 793 deletions(-) create mode 100644 src/main/java/abstractSyntaxTree/Statement/PrintStatement.java diff --git a/src/main/java/Decaf.g4 b/src/main/java/Decaf.g4 index 25c13ec..4232fd9 100644 --- a/src/main/java/Decaf.g4 +++ b/src/main/java/Decaf.g4 @@ -21,7 +21,7 @@ subExpression: This | assignableExpr | stmtExpr | OpenRoundBracket subExpression //.trim().toLength().toLowerCase().count ... methodCall: receiver? receivingMethod* Identifier OpenRoundBracket argumentList ClosedRoundBracket; -statement: returnStmt Semicolon | localVarDecl | block | whileStmt | ifElseStmt | stmtExpr Semicolon | emptyStatement | print; +statement: returnStmt Semicolon | localVarDecl | block | whileStmt | ifElseStmt | print | stmtExpr Semicolon | emptyStatement; stmtExpr: assign | newDecl | methodCall; diff --git a/src/main/java/abstractSyntaxTree/Statement/PrintStatement.java b/src/main/java/abstractSyntaxTree/Statement/PrintStatement.java new file mode 100644 index 0000000..1313eab --- /dev/null +++ b/src/main/java/abstractSyntaxTree/Statement/PrintStatement.java @@ -0,0 +1,28 @@ +package abstractSyntaxTree.Statement; + +import TypeCheck.AbstractType; +import TypeCheck.TypeCheckException; +import TypeCheck.TypeCheckResult; +import abstractSyntaxTree.Parameter.ParameterList; +import org.objectweb.asm.MethodVisitor; + +import java.util.HashMap; +import java.util.LinkedHashMap; + +public class PrintStatement extends AbstractType implements IStatement { + String variableName; + + public PrintStatement(String variableName) { + this.variableName = variableName; + } + + @Override + public TypeCheckResult typeCheck(HashMap>> methodContext, HashMap> typeContext, HashMap localVars) throws TypeCheckException { + return null; + } + + @Override + public void codeGen(MethodVisitor mv, LinkedHashMap localVars, HashMap> typeContext, HashMap>> methodContext) throws Exception { + + } +} diff --git a/src/main/java/astGenerator/ASTGenerator.java b/src/main/java/astGenerator/ASTGenerator.java index 2127a6e..e39fcca 100644 --- a/src/main/java/astGenerator/ASTGenerator.java +++ b/src/main/java/astGenerator/ASTGenerator.java @@ -132,6 +132,8 @@ public class ASTGenerator extends DecafBaseVisitor { return visitEmptyStatement(ctx.emptyStatement()); } else if (ctx.localVarDecl() != null) { return visitLocalVarDecl(ctx.localVarDecl()); + } else if (ctx.print() != null) { + return visitPrint(ctx.print()); } return null; } @@ -196,6 +198,11 @@ public class ASTGenerator extends DecafBaseVisitor { return null; } + @Override + public Node visitPrint(DecafParser.PrintContext ctx) { + return new PrintStatement(ctx.Identifier().getText()); + } + @Override public Node visitAssign(DecafParser.AssignContext ctx) { Node right = visitExpression(ctx.expression()); diff --git a/src/main/java/gen/Decaf.interp b/src/main/java/gen/Decaf.interp index 327f176..1dbb229 100644 --- a/src/main/java/gen/Decaf.interp +++ b/src/main/java/gen/Decaf.interp @@ -1,5 +1,7 @@ token literal names: null +'print(' +');' null 'null' 'public' @@ -48,6 +50,8 @@ null token symbolic names: null +null +null BooleanValue NullValue AccessModifierPublic @@ -130,7 +134,8 @@ receivingMethod emptyStatement type value +print atn: -[4, 1, 45, 332, 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, 1, 4, 1, 4, 5, 4, 125, 8, 4, 10, 4, 12, 4, 128, 9, 4, 1, 5, 1, 5, 1, 5, 1, 6, 3, 6, 134, 8, 6, 1, 6, 1, 6, 1, 6, 4, 6, 139, 8, 6, 11, 6, 12, 6, 140, 3, 6, 143, 8, 6, 1, 7, 1, 7, 3, 7, 147, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 156, 8, 8, 1, 9, 3, 9, 159, 8, 9, 1, 9, 5, 9, 162, 8, 9, 10, 9, 12, 9, 165, 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, 3, 10, 183, 8, 10, 1, 11, 1, 11, 1, 11, 3, 11, 188, 8, 11, 1, 12, 1, 12, 3, 12, 192, 8, 12, 1, 13, 1, 13, 1, 13, 3, 13, 197, 8, 13, 1, 13, 1, 13, 1, 14, 4, 14, 202, 8, 14, 11, 14, 12, 14, 203, 1, 14, 5, 14, 207, 8, 14, 10, 14, 12, 14, 210, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 219, 8, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 5, 16, 227, 8, 16, 10, 16, 12, 16, 230, 9, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 238, 8, 17, 10, 17, 12, 17, 241, 9, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 251, 8, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 21, 1, 21, 3, 21, 261, 8, 21, 1, 22, 3, 22, 264, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 270, 8, 22, 1, 22, 1, 22, 1, 23, 1, 23, 5, 23, 276, 8, 23, 10, 23, 12, 23, 279, 9, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 3, 25, 291, 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, 316, 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, 34, 1, 34, 1, 34, 0, 2, 32, 34, 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, 11, 12, 2, 0, 6, 8, 44, 44, 2, 0, 1, 2, 42, 43, 347, 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, 121, 1, 0, 0, 0, 10, 129, 1, 0, 0, 0, 12, 142, 1, 0, 0, 0, 14, 146, 1, 0, 0, 0, 16, 155, 1, 0, 0, 0, 18, 158, 1, 0, 0, 0, 20, 182, 1, 0, 0, 0, 22, 187, 1, 0, 0, 0, 24, 191, 1, 0, 0, 0, 26, 196, 1, 0, 0, 0, 28, 201, 1, 0, 0, 0, 30, 218, 1, 0, 0, 0, 32, 220, 1, 0, 0, 0, 34, 231, 1, 0, 0, 0, 36, 250, 1, 0, 0, 0, 38, 252, 1, 0, 0, 0, 40, 256, 1, 0, 0, 0, 42, 258, 1, 0, 0, 0, 44, 263, 1, 0, 0, 0, 46, 273, 1, 0, 0, 0, 48, 282, 1, 0, 0, 0, 50, 288, 1, 0, 0, 0, 52, 292, 1, 0, 0, 0, 54, 298, 1, 0, 0, 0, 56, 301, 1, 0, 0, 0, 58, 305, 1, 0, 0, 0, 60, 315, 1, 0, 0, 0, 62, 319, 1, 0, 0, 0, 64, 325, 1, 0, 0, 0, 66, 327, 1, 0, 0, 0, 68, 329, 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, 3, 0, 0, 76, 75, 1, 0, 0, 0, 76, 77, 1, 0, 0, 0, 77, 78, 1, 0, 0, 0, 78, 79, 5, 35, 0, 0, 79, 80, 5, 44, 0, 0, 80, 86, 5, 31, 0, 0, 81, 85, 3, 4, 2, 0, 82, 85, 3, 44, 22, 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, 4, 0, 0, 90, 92, 3, 46, 23, 0, 91, 89, 1, 0, 0, 0, 91, 92, 1, 0, 0, 0, 92, 93, 1, 0, 0, 0, 93, 94, 5, 32, 0, 0, 94, 3, 1, 0, 0, 0, 95, 97, 5, 3, 0, 0, 96, 95, 1, 0, 0, 0, 96, 97, 1, 0, 0, 0, 97, 98, 1, 0, 0, 0, 98, 99, 5, 44, 0, 0, 99, 101, 5, 29, 0, 0, 100, 102, 3, 8, 4, 0, 101, 100, 1, 0, 0, 0, 101, 102, 1, 0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 104, 5, 30, 0, 0, 104, 105, 3, 46, 23, 0, 105, 5, 1, 0, 0, 0, 106, 108, 5, 3, 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, 5, 0, 0, 111, 109, 1, 0, 0, 0, 111, 110, 1, 0, 0, 0, 112, 113, 1, 0, 0, 0, 113, 114, 5, 44, 0, 0, 114, 116, 5, 29, 0, 0, 115, 117, 3, 8, 4, 0, 116, 115, 1, 0, 0, 0, 116, 117, 1, 0, 0, 0, 117, 118, 1, 0, 0, 0, 118, 119, 5, 30, 0, 0, 119, 120, 3, 46, 23, 0, 120, 7, 1, 0, 0, 0, 121, 126, 3, 10, 5, 0, 122, 123, 5, 34, 0, 0, 123, 125, 3, 10, 5, 0, 124, 122, 1, 0, 0, 0, 125, 128, 1, 0, 0, 0, 126, 124, 1, 0, 0, 0, 126, 127, 1, 0, 0, 0, 127, 9, 1, 0, 0, 0, 128, 126, 1, 0, 0, 0, 129, 130, 3, 66, 33, 0, 130, 131, 5, 44, 0, 0, 131, 11, 1, 0, 0, 0, 132, 134, 3, 14, 7, 0, 133, 132, 1, 0, 0, 0, 133, 134, 1, 0, 0, 0, 134, 143, 1, 0, 0, 0, 135, 138, 3, 14, 7, 0, 136, 137, 5, 34, 0, 0, 137, 139, 3, 14, 7, 0, 138, 136, 1, 0, 0, 0, 139, 140, 1, 0, 0, 0, 140, 138, 1, 0, 0, 0, 140, 141, 1, 0, 0, 0, 141, 143, 1, 0, 0, 0, 142, 133, 1, 0, 0, 0, 142, 135, 1, 0, 0, 0, 143, 13, 1, 0, 0, 0, 144, 147, 3, 16, 8, 0, 145, 147, 3, 30, 15, 0, 146, 144, 1, 0, 0, 0, 146, 145, 1, 0, 0, 0, 147, 15, 1, 0, 0, 0, 148, 156, 5, 36, 0, 0, 149, 156, 3, 24, 12, 0, 150, 156, 3, 22, 11, 0, 151, 152, 5, 29, 0, 0, 152, 153, 3, 16, 8, 0, 153, 154, 5, 30, 0, 0, 154, 156, 1, 0, 0, 0, 155, 148, 1, 0, 0, 0, 155, 149, 1, 0, 0, 0, 155, 150, 1, 0, 0, 0, 155, 151, 1, 0, 0, 0, 156, 17, 1, 0, 0, 0, 157, 159, 3, 60, 30, 0, 158, 157, 1, 0, 0, 0, 158, 159, 1, 0, 0, 0, 159, 163, 1, 0, 0, 0, 160, 162, 3, 62, 31, 0, 161, 160, 1, 0, 0, 0, 162, 165, 1, 0, 0, 0, 163, 161, 1, 0, 0, 0, 163, 164, 1, 0, 0, 0, 164, 166, 1, 0, 0, 0, 165, 163, 1, 0, 0, 0, 166, 167, 5, 44, 0, 0, 167, 168, 5, 29, 0, 0, 168, 169, 3, 12, 6, 0, 169, 170, 5, 30, 0, 0, 170, 19, 1, 0, 0, 0, 171, 172, 3, 42, 21, 0, 172, 173, 5, 33, 0, 0, 173, 183, 1, 0, 0, 0, 174, 183, 3, 44, 22, 0, 175, 183, 3, 46, 23, 0, 176, 183, 3, 48, 24, 0, 177, 183, 3, 50, 25, 0, 178, 179, 3, 22, 11, 0, 179, 180, 5, 33, 0, 0, 180, 183, 1, 0, 0, 0, 181, 183, 3, 64, 32, 0, 182, 171, 1, 0, 0, 0, 182, 174, 1, 0, 0, 0, 182, 175, 1, 0, 0, 0, 182, 176, 1, 0, 0, 0, 182, 177, 1, 0, 0, 0, 182, 178, 1, 0, 0, 0, 182, 181, 1, 0, 0, 0, 183, 21, 1, 0, 0, 0, 184, 188, 3, 56, 28, 0, 185, 188, 3, 58, 29, 0, 186, 188, 3, 18, 9, 0, 187, 184, 1, 0, 0, 0, 187, 185, 1, 0, 0, 0, 187, 186, 1, 0, 0, 0, 188, 23, 1, 0, 0, 0, 189, 192, 5, 44, 0, 0, 190, 192, 3, 28, 14, 0, 191, 189, 1, 0, 0, 0, 191, 190, 1, 0, 0, 0, 192, 25, 1, 0, 0, 0, 193, 197, 5, 36, 0, 0, 194, 197, 3, 58, 29, 0, 195, 197, 5, 44, 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, 28, 0, 0, 199, 27, 1, 0, 0, 0, 200, 202, 3, 26, 13, 0, 201, 200, 1, 0, 0, 0, 202, 203, 1, 0, 0, 0, 203, 201, 1, 0, 0, 0, 203, 204, 1, 0, 0, 0, 204, 208, 1, 0, 0, 0, 205, 207, 3, 62, 31, 0, 206, 205, 1, 0, 0, 0, 207, 210, 1, 0, 0, 0, 208, 206, 1, 0, 0, 0, 208, 209, 1, 0, 0, 0, 209, 211, 1, 0, 0, 0, 210, 208, 1, 0, 0, 0, 211, 212, 5, 44, 0, 0, 212, 29, 1, 0, 0, 0, 213, 219, 3, 32, 16, 0, 214, 219, 3, 38, 19, 0, 215, 219, 3, 68, 34, 0, 216, 217, 5, 25, 0, 0, 217, 219, 3, 30, 15, 0, 218, 213, 1, 0, 0, 0, 218, 214, 1, 0, 0, 0, 218, 215, 1, 0, 0, 0, 218, 216, 1, 0, 0, 0, 219, 31, 1, 0, 0, 0, 220, 221, 6, 16, -1, 0, 221, 222, 3, 34, 17, 0, 222, 228, 1, 0, 0, 0, 223, 224, 10, 2, 0, 0, 224, 225, 5, 10, 0, 0, 225, 227, 3, 34, 17, 0, 226, 223, 1, 0, 0, 0, 227, 230, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 228, 229, 1, 0, 0, 0, 229, 33, 1, 0, 0, 0, 230, 228, 1, 0, 0, 0, 231, 232, 6, 17, -1, 0, 232, 233, 3, 36, 18, 0, 233, 239, 1, 0, 0, 0, 234, 235, 10, 2, 0, 0, 235, 236, 5, 9, 0, 0, 236, 238, 3, 36, 18, 0, 237, 234, 1, 0, 0, 0, 238, 241, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 239, 240, 1, 0, 0, 0, 240, 35, 1, 0, 0, 0, 241, 239, 1, 0, 0, 0, 242, 251, 5, 42, 0, 0, 243, 251, 5, 44, 0, 0, 244, 251, 3, 28, 14, 0, 245, 251, 3, 18, 9, 0, 246, 247, 5, 29, 0, 0, 247, 248, 3, 32, 16, 0, 248, 249, 5, 30, 0, 0, 249, 251, 1, 0, 0, 0, 250, 242, 1, 0, 0, 0, 250, 243, 1, 0, 0, 0, 250, 244, 1, 0, 0, 0, 250, 245, 1, 0, 0, 0, 250, 246, 1, 0, 0, 0, 251, 37, 1, 0, 0, 0, 252, 253, 3, 16, 8, 0, 253, 254, 3, 40, 20, 0, 254, 255, 3, 14, 7, 0, 255, 39, 1, 0, 0, 0, 256, 257, 7, 0, 0, 0, 257, 41, 1, 0, 0, 0, 258, 260, 5, 40, 0, 0, 259, 261, 3, 14, 7, 0, 260, 259, 1, 0, 0, 0, 260, 261, 1, 0, 0, 0, 261, 43, 1, 0, 0, 0, 262, 264, 5, 3, 0, 0, 263, 262, 1, 0, 0, 0, 263, 264, 1, 0, 0, 0, 264, 265, 1, 0, 0, 0, 265, 266, 3, 66, 33, 0, 266, 269, 5, 44, 0, 0, 267, 268, 5, 13, 0, 0, 268, 270, 3, 14, 7, 0, 269, 267, 1, 0, 0, 0, 269, 270, 1, 0, 0, 0, 270, 271, 1, 0, 0, 0, 271, 272, 5, 33, 0, 0, 272, 45, 1, 0, 0, 0, 273, 277, 5, 31, 0, 0, 274, 276, 3, 20, 10, 0, 275, 274, 1, 0, 0, 0, 276, 279, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 280, 1, 0, 0, 0, 279, 277, 1, 0, 0, 0, 280, 281, 5, 32, 0, 0, 281, 47, 1, 0, 0, 0, 282, 283, 5, 37, 0, 0, 283, 284, 5, 29, 0, 0, 284, 285, 3, 14, 7, 0, 285, 286, 5, 30, 0, 0, 286, 287, 3, 20, 10, 0, 287, 49, 1, 0, 0, 0, 288, 290, 3, 52, 26, 0, 289, 291, 3, 54, 27, 0, 290, 289, 1, 0, 0, 0, 290, 291, 1, 0, 0, 0, 291, 51, 1, 0, 0, 0, 292, 293, 5, 38, 0, 0, 293, 294, 5, 29, 0, 0, 294, 295, 3, 14, 7, 0, 295, 296, 5, 30, 0, 0, 296, 297, 3, 20, 10, 0, 297, 53, 1, 0, 0, 0, 298, 299, 5, 39, 0, 0, 299, 300, 3, 20, 10, 0, 300, 55, 1, 0, 0, 0, 301, 302, 3, 24, 12, 0, 302, 303, 5, 13, 0, 0, 303, 304, 3, 14, 7, 0, 304, 57, 1, 0, 0, 0, 305, 306, 5, 41, 0, 0, 306, 307, 5, 44, 0, 0, 307, 308, 5, 29, 0, 0, 308, 309, 3, 12, 6, 0, 309, 310, 5, 30, 0, 0, 310, 59, 1, 0, 0, 0, 311, 316, 5, 36, 0, 0, 312, 316, 3, 28, 14, 0, 313, 316, 3, 58, 29, 0, 314, 316, 5, 44, 0, 0, 315, 311, 1, 0, 0, 0, 315, 312, 1, 0, 0, 0, 315, 313, 1, 0, 0, 0, 315, 314, 1, 0, 0, 0, 316, 317, 1, 0, 0, 0, 317, 318, 5, 28, 0, 0, 318, 61, 1, 0, 0, 0, 319, 320, 5, 44, 0, 0, 320, 321, 5, 29, 0, 0, 321, 322, 3, 12, 6, 0, 322, 323, 5, 30, 0, 0, 323, 324, 5, 28, 0, 0, 324, 63, 1, 0, 0, 0, 325, 326, 5, 33, 0, 0, 326, 65, 1, 0, 0, 0, 327, 328, 7, 1, 0, 0, 328, 67, 1, 0, 0, 0, 329, 330, 7, 2, 0, 0, 330, 69, 1, 0, 0, 0, 34, 73, 76, 84, 86, 91, 96, 101, 107, 111, 116, 126, 133, 140, 142, 146, 155, 158, 163, 182, 187, 191, 196, 203, 208, 218, 228, 239, 250, 260, 263, 269, 277, 290, 315] \ No newline at end of file +[4, 1, 47, 339, 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, 1, 0, 4, 0, 74, 8, 0, 11, 0, 12, 0, 75, 1, 1, 3, 1, 79, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 87, 8, 1, 10, 1, 12, 1, 90, 9, 1, 1, 1, 1, 1, 3, 1, 94, 8, 1, 1, 1, 1, 1, 1, 2, 3, 2, 99, 8, 2, 1, 2, 1, 2, 1, 2, 3, 2, 104, 8, 2, 1, 2, 1, 2, 1, 2, 1, 3, 3, 3, 110, 8, 3, 1, 3, 1, 3, 3, 3, 114, 8, 3, 1, 3, 1, 3, 1, 3, 3, 3, 119, 8, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 5, 4, 127, 8, 4, 10, 4, 12, 4, 130, 9, 4, 1, 5, 1, 5, 1, 5, 1, 6, 3, 6, 136, 8, 6, 1, 6, 1, 6, 1, 6, 4, 6, 141, 8, 6, 11, 6, 12, 6, 142, 3, 6, 145, 8, 6, 1, 7, 1, 7, 3, 7, 149, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 158, 8, 8, 1, 9, 3, 9, 161, 8, 9, 1, 9, 5, 9, 164, 8, 9, 10, 9, 12, 9, 167, 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, 186, 8, 10, 1, 11, 1, 11, 1, 11, 3, 11, 191, 8, 11, 1, 12, 1, 12, 3, 12, 195, 8, 12, 1, 13, 1, 13, 1, 13, 3, 13, 200, 8, 13, 1, 13, 1, 13, 1, 14, 4, 14, 205, 8, 14, 11, 14, 12, 14, 206, 1, 14, 5, 14, 210, 8, 14, 10, 14, 12, 14, 213, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 222, 8, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 5, 16, 230, 8, 16, 10, 16, 12, 16, 233, 9, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 241, 8, 17, 10, 17, 12, 17, 244, 9, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 254, 8, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 21, 1, 21, 3, 21, 264, 8, 21, 1, 22, 3, 22, 267, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 273, 8, 22, 1, 22, 1, 22, 1, 23, 1, 23, 5, 23, 279, 8, 23, 10, 23, 12, 23, 282, 9, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 3, 25, 294, 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, 319, 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, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 0, 2, 32, 34, 36, 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, 70, 0, 3, 1, 0, 13, 14, 2, 0, 8, 10, 46, 46, 2, 0, 3, 4, 44, 45, 354, 0, 73, 1, 0, 0, 0, 2, 78, 1, 0, 0, 0, 4, 98, 1, 0, 0, 0, 6, 109, 1, 0, 0, 0, 8, 123, 1, 0, 0, 0, 10, 131, 1, 0, 0, 0, 12, 144, 1, 0, 0, 0, 14, 148, 1, 0, 0, 0, 16, 157, 1, 0, 0, 0, 18, 160, 1, 0, 0, 0, 20, 185, 1, 0, 0, 0, 22, 190, 1, 0, 0, 0, 24, 194, 1, 0, 0, 0, 26, 199, 1, 0, 0, 0, 28, 204, 1, 0, 0, 0, 30, 221, 1, 0, 0, 0, 32, 223, 1, 0, 0, 0, 34, 234, 1, 0, 0, 0, 36, 253, 1, 0, 0, 0, 38, 255, 1, 0, 0, 0, 40, 259, 1, 0, 0, 0, 42, 261, 1, 0, 0, 0, 44, 266, 1, 0, 0, 0, 46, 276, 1, 0, 0, 0, 48, 285, 1, 0, 0, 0, 50, 291, 1, 0, 0, 0, 52, 295, 1, 0, 0, 0, 54, 301, 1, 0, 0, 0, 56, 304, 1, 0, 0, 0, 58, 308, 1, 0, 0, 0, 60, 318, 1, 0, 0, 0, 62, 322, 1, 0, 0, 0, 64, 328, 1, 0, 0, 0, 66, 330, 1, 0, 0, 0, 68, 332, 1, 0, 0, 0, 70, 334, 1, 0, 0, 0, 72, 74, 3, 2, 1, 0, 73, 72, 1, 0, 0, 0, 74, 75, 1, 0, 0, 0, 75, 73, 1, 0, 0, 0, 75, 76, 1, 0, 0, 0, 76, 1, 1, 0, 0, 0, 77, 79, 5, 5, 0, 0, 78, 77, 1, 0, 0, 0, 78, 79, 1, 0, 0, 0, 79, 80, 1, 0, 0, 0, 80, 81, 5, 37, 0, 0, 81, 82, 5, 46, 0, 0, 82, 88, 5, 33, 0, 0, 83, 87, 3, 4, 2, 0, 84, 87, 3, 44, 22, 0, 85, 87, 3, 6, 3, 0, 86, 83, 1, 0, 0, 0, 86, 84, 1, 0, 0, 0, 86, 85, 1, 0, 0, 0, 87, 90, 1, 0, 0, 0, 88, 86, 1, 0, 0, 0, 88, 89, 1, 0, 0, 0, 89, 93, 1, 0, 0, 0, 90, 88, 1, 0, 0, 0, 91, 92, 5, 6, 0, 0, 92, 94, 3, 46, 23, 0, 93, 91, 1, 0, 0, 0, 93, 94, 1, 0, 0, 0, 94, 95, 1, 0, 0, 0, 95, 96, 5, 34, 0, 0, 96, 3, 1, 0, 0, 0, 97, 99, 5, 5, 0, 0, 98, 97, 1, 0, 0, 0, 98, 99, 1, 0, 0, 0, 99, 100, 1, 0, 0, 0, 100, 101, 5, 46, 0, 0, 101, 103, 5, 31, 0, 0, 102, 104, 3, 8, 4, 0, 103, 102, 1, 0, 0, 0, 103, 104, 1, 0, 0, 0, 104, 105, 1, 0, 0, 0, 105, 106, 5, 32, 0, 0, 106, 107, 3, 46, 23, 0, 107, 5, 1, 0, 0, 0, 108, 110, 5, 5, 0, 0, 109, 108, 1, 0, 0, 0, 109, 110, 1, 0, 0, 0, 110, 113, 1, 0, 0, 0, 111, 114, 3, 66, 33, 0, 112, 114, 5, 7, 0, 0, 113, 111, 1, 0, 0, 0, 113, 112, 1, 0, 0, 0, 114, 115, 1, 0, 0, 0, 115, 116, 5, 46, 0, 0, 116, 118, 5, 31, 0, 0, 117, 119, 3, 8, 4, 0, 118, 117, 1, 0, 0, 0, 118, 119, 1, 0, 0, 0, 119, 120, 1, 0, 0, 0, 120, 121, 5, 32, 0, 0, 121, 122, 3, 46, 23, 0, 122, 7, 1, 0, 0, 0, 123, 128, 3, 10, 5, 0, 124, 125, 5, 36, 0, 0, 125, 127, 3, 10, 5, 0, 126, 124, 1, 0, 0, 0, 127, 130, 1, 0, 0, 0, 128, 126, 1, 0, 0, 0, 128, 129, 1, 0, 0, 0, 129, 9, 1, 0, 0, 0, 130, 128, 1, 0, 0, 0, 131, 132, 3, 66, 33, 0, 132, 133, 5, 46, 0, 0, 133, 11, 1, 0, 0, 0, 134, 136, 3, 14, 7, 0, 135, 134, 1, 0, 0, 0, 135, 136, 1, 0, 0, 0, 136, 145, 1, 0, 0, 0, 137, 140, 3, 14, 7, 0, 138, 139, 5, 36, 0, 0, 139, 141, 3, 14, 7, 0, 140, 138, 1, 0, 0, 0, 141, 142, 1, 0, 0, 0, 142, 140, 1, 0, 0, 0, 142, 143, 1, 0, 0, 0, 143, 145, 1, 0, 0, 0, 144, 135, 1, 0, 0, 0, 144, 137, 1, 0, 0, 0, 145, 13, 1, 0, 0, 0, 146, 149, 3, 16, 8, 0, 147, 149, 3, 30, 15, 0, 148, 146, 1, 0, 0, 0, 148, 147, 1, 0, 0, 0, 149, 15, 1, 0, 0, 0, 150, 158, 5, 38, 0, 0, 151, 158, 3, 24, 12, 0, 152, 158, 3, 22, 11, 0, 153, 154, 5, 31, 0, 0, 154, 155, 3, 16, 8, 0, 155, 156, 5, 32, 0, 0, 156, 158, 1, 0, 0, 0, 157, 150, 1, 0, 0, 0, 157, 151, 1, 0, 0, 0, 157, 152, 1, 0, 0, 0, 157, 153, 1, 0, 0, 0, 158, 17, 1, 0, 0, 0, 159, 161, 3, 60, 30, 0, 160, 159, 1, 0, 0, 0, 160, 161, 1, 0, 0, 0, 161, 165, 1, 0, 0, 0, 162, 164, 3, 62, 31, 0, 163, 162, 1, 0, 0, 0, 164, 167, 1, 0, 0, 0, 165, 163, 1, 0, 0, 0, 165, 166, 1, 0, 0, 0, 166, 168, 1, 0, 0, 0, 167, 165, 1, 0, 0, 0, 168, 169, 5, 46, 0, 0, 169, 170, 5, 31, 0, 0, 170, 171, 3, 12, 6, 0, 171, 172, 5, 32, 0, 0, 172, 19, 1, 0, 0, 0, 173, 174, 3, 42, 21, 0, 174, 175, 5, 35, 0, 0, 175, 186, 1, 0, 0, 0, 176, 186, 3, 44, 22, 0, 177, 186, 3, 46, 23, 0, 178, 186, 3, 48, 24, 0, 179, 186, 3, 50, 25, 0, 180, 186, 3, 70, 35, 0, 181, 182, 3, 22, 11, 0, 182, 183, 5, 35, 0, 0, 183, 186, 1, 0, 0, 0, 184, 186, 3, 64, 32, 0, 185, 173, 1, 0, 0, 0, 185, 176, 1, 0, 0, 0, 185, 177, 1, 0, 0, 0, 185, 178, 1, 0, 0, 0, 185, 179, 1, 0, 0, 0, 185, 180, 1, 0, 0, 0, 185, 181, 1, 0, 0, 0, 185, 184, 1, 0, 0, 0, 186, 21, 1, 0, 0, 0, 187, 191, 3, 56, 28, 0, 188, 191, 3, 58, 29, 0, 189, 191, 3, 18, 9, 0, 190, 187, 1, 0, 0, 0, 190, 188, 1, 0, 0, 0, 190, 189, 1, 0, 0, 0, 191, 23, 1, 0, 0, 0, 192, 195, 5, 46, 0, 0, 193, 195, 3, 28, 14, 0, 194, 192, 1, 0, 0, 0, 194, 193, 1, 0, 0, 0, 195, 25, 1, 0, 0, 0, 196, 200, 5, 38, 0, 0, 197, 200, 3, 58, 29, 0, 198, 200, 5, 46, 0, 0, 199, 196, 1, 0, 0, 0, 199, 197, 1, 0, 0, 0, 199, 198, 1, 0, 0, 0, 200, 201, 1, 0, 0, 0, 201, 202, 5, 30, 0, 0, 202, 27, 1, 0, 0, 0, 203, 205, 3, 26, 13, 0, 204, 203, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 204, 1, 0, 0, 0, 206, 207, 1, 0, 0, 0, 207, 211, 1, 0, 0, 0, 208, 210, 3, 62, 31, 0, 209, 208, 1, 0, 0, 0, 210, 213, 1, 0, 0, 0, 211, 209, 1, 0, 0, 0, 211, 212, 1, 0, 0, 0, 212, 214, 1, 0, 0, 0, 213, 211, 1, 0, 0, 0, 214, 215, 5, 46, 0, 0, 215, 29, 1, 0, 0, 0, 216, 222, 3, 32, 16, 0, 217, 222, 3, 38, 19, 0, 218, 222, 3, 68, 34, 0, 219, 220, 5, 27, 0, 0, 220, 222, 3, 30, 15, 0, 221, 216, 1, 0, 0, 0, 221, 217, 1, 0, 0, 0, 221, 218, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 222, 31, 1, 0, 0, 0, 223, 224, 6, 16, -1, 0, 224, 225, 3, 34, 17, 0, 225, 231, 1, 0, 0, 0, 226, 227, 10, 2, 0, 0, 227, 228, 5, 12, 0, 0, 228, 230, 3, 34, 17, 0, 229, 226, 1, 0, 0, 0, 230, 233, 1, 0, 0, 0, 231, 229, 1, 0, 0, 0, 231, 232, 1, 0, 0, 0, 232, 33, 1, 0, 0, 0, 233, 231, 1, 0, 0, 0, 234, 235, 6, 17, -1, 0, 235, 236, 3, 36, 18, 0, 236, 242, 1, 0, 0, 0, 237, 238, 10, 2, 0, 0, 238, 239, 5, 11, 0, 0, 239, 241, 3, 36, 18, 0, 240, 237, 1, 0, 0, 0, 241, 244, 1, 0, 0, 0, 242, 240, 1, 0, 0, 0, 242, 243, 1, 0, 0, 0, 243, 35, 1, 0, 0, 0, 244, 242, 1, 0, 0, 0, 245, 254, 5, 44, 0, 0, 246, 254, 5, 46, 0, 0, 247, 254, 3, 28, 14, 0, 248, 254, 3, 18, 9, 0, 249, 250, 5, 31, 0, 0, 250, 251, 3, 32, 16, 0, 251, 252, 5, 32, 0, 0, 252, 254, 1, 0, 0, 0, 253, 245, 1, 0, 0, 0, 253, 246, 1, 0, 0, 0, 253, 247, 1, 0, 0, 0, 253, 248, 1, 0, 0, 0, 253, 249, 1, 0, 0, 0, 254, 37, 1, 0, 0, 0, 255, 256, 3, 16, 8, 0, 256, 257, 3, 40, 20, 0, 257, 258, 3, 14, 7, 0, 258, 39, 1, 0, 0, 0, 259, 260, 7, 0, 0, 0, 260, 41, 1, 0, 0, 0, 261, 263, 5, 42, 0, 0, 262, 264, 3, 14, 7, 0, 263, 262, 1, 0, 0, 0, 263, 264, 1, 0, 0, 0, 264, 43, 1, 0, 0, 0, 265, 267, 5, 5, 0, 0, 266, 265, 1, 0, 0, 0, 266, 267, 1, 0, 0, 0, 267, 268, 1, 0, 0, 0, 268, 269, 3, 66, 33, 0, 269, 272, 5, 46, 0, 0, 270, 271, 5, 15, 0, 0, 271, 273, 3, 14, 7, 0, 272, 270, 1, 0, 0, 0, 272, 273, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 275, 5, 35, 0, 0, 275, 45, 1, 0, 0, 0, 276, 280, 5, 33, 0, 0, 277, 279, 3, 20, 10, 0, 278, 277, 1, 0, 0, 0, 279, 282, 1, 0, 0, 0, 280, 278, 1, 0, 0, 0, 280, 281, 1, 0, 0, 0, 281, 283, 1, 0, 0, 0, 282, 280, 1, 0, 0, 0, 283, 284, 5, 34, 0, 0, 284, 47, 1, 0, 0, 0, 285, 286, 5, 39, 0, 0, 286, 287, 5, 31, 0, 0, 287, 288, 3, 14, 7, 0, 288, 289, 5, 32, 0, 0, 289, 290, 3, 20, 10, 0, 290, 49, 1, 0, 0, 0, 291, 293, 3, 52, 26, 0, 292, 294, 3, 54, 27, 0, 293, 292, 1, 0, 0, 0, 293, 294, 1, 0, 0, 0, 294, 51, 1, 0, 0, 0, 295, 296, 5, 40, 0, 0, 296, 297, 5, 31, 0, 0, 297, 298, 3, 14, 7, 0, 298, 299, 5, 32, 0, 0, 299, 300, 3, 20, 10, 0, 300, 53, 1, 0, 0, 0, 301, 302, 5, 41, 0, 0, 302, 303, 3, 20, 10, 0, 303, 55, 1, 0, 0, 0, 304, 305, 3, 24, 12, 0, 305, 306, 5, 15, 0, 0, 306, 307, 3, 14, 7, 0, 307, 57, 1, 0, 0, 0, 308, 309, 5, 43, 0, 0, 309, 310, 5, 46, 0, 0, 310, 311, 5, 31, 0, 0, 311, 312, 3, 12, 6, 0, 312, 313, 5, 32, 0, 0, 313, 59, 1, 0, 0, 0, 314, 319, 5, 38, 0, 0, 315, 319, 3, 28, 14, 0, 316, 319, 3, 58, 29, 0, 317, 319, 5, 46, 0, 0, 318, 314, 1, 0, 0, 0, 318, 315, 1, 0, 0, 0, 318, 316, 1, 0, 0, 0, 318, 317, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 321, 5, 30, 0, 0, 321, 61, 1, 0, 0, 0, 322, 323, 5, 46, 0, 0, 323, 324, 5, 31, 0, 0, 324, 325, 3, 12, 6, 0, 325, 326, 5, 32, 0, 0, 326, 327, 5, 30, 0, 0, 327, 63, 1, 0, 0, 0, 328, 329, 5, 35, 0, 0, 329, 65, 1, 0, 0, 0, 330, 331, 7, 1, 0, 0, 331, 67, 1, 0, 0, 0, 332, 333, 7, 2, 0, 0, 333, 69, 1, 0, 0, 0, 334, 335, 5, 1, 0, 0, 335, 336, 5, 46, 0, 0, 336, 337, 5, 2, 0, 0, 337, 71, 1, 0, 0, 0, 34, 75, 78, 86, 88, 93, 98, 103, 109, 113, 118, 128, 135, 142, 144, 148, 157, 160, 165, 185, 190, 194, 199, 206, 211, 221, 231, 242, 253, 263, 266, 272, 280, 293, 318] \ No newline at end of file diff --git a/src/main/java/gen/Decaf.tokens b/src/main/java/gen/Decaf.tokens index 501cbd7..88dd76e 100644 --- a/src/main/java/gen/Decaf.tokens +++ b/src/main/java/gen/Decaf.tokens @@ -1,81 +1,85 @@ -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 -'null'=2 -'public'=3 -'public static void main(String[] args)'=4 -'void'=5 -'int'=6 -'boolean'=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 +T__0=1 +T__1=2 +BooleanValue=3 +NullValue=4 +AccessModifierPublic=5 +MainMethodDecl=6 +Void=7 +Int=8 +Boolean=9 +Char=10 +DotOperator=11 +LineOperator=12 +ComparisonOperator=13 +LogicalOpertor=14 +Assign=15 +Minus=16 +Plus=17 +Multipilkation=18 +Division=19 +Modulo=20 +Greater=21 +Less=22 +GreaterEqual=23 +LessEqual=24 +Equal=25 +NotEqual=26 +Not=27 +And=28 +Or=29 +Dot=30 +OpenRoundBracket=31 +ClosedRoundBracket=32 +OpenCurlyBracket=33 +ClosedCurlyBracket=34 +Semicolon=35 +Comma=36 +Class=37 +This=38 +While=39 +If=40 +Else=41 +Return=42 +New=43 +IntValue=44 +CharValue=45 +Identifier=46 +WS=47 +'print('=1 +');'=2 +'null'=4 +'public'=5 +'public static void main(String[] args)'=6 +'void'=7 +'int'=8 +'boolean'=9 +'char'=10 +'='=15 +'-'=16 +'+'=17 +'*'=18 +'/'=19 +'%'=20 +'>'=21 +'<'=22 +'>='=23 +'<='=24 +'=='=25 +'!='=26 +'!'=27 +'&&'=28 +'||'=29 +'.'=30 +'('=31 +')'=32 +'{'=33 +'}'=34 +';'=35 +','=36 +'class'=37 +'this'=38 +'while'=39 +'if'=40 +'else'=41 +'return'=42 +'new'=43 diff --git a/src/main/java/gen/DecafBaseListener.java b/src/main/java/gen/DecafBaseListener.java index b7e94df..980c7a0 100644 --- a/src/main/java/gen/DecafBaseListener.java +++ b/src/main/java/gen/DecafBaseListener.java @@ -432,6 +432,18 @@ public class DecafBaseListener implements DecafListener { *

The default implementation does nothing.

*/ @Override public void exitValue(DecafParser.ValueContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterPrint(DecafParser.PrintContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitPrint(DecafParser.PrintContext ctx) { } /** * {@inheritDoc} diff --git a/src/main/java/gen/DecafBaseVisitor.java b/src/main/java/gen/DecafBaseVisitor.java index 938151d..87c51da 100644 --- a/src/main/java/gen/DecafBaseVisitor.java +++ b/src/main/java/gen/DecafBaseVisitor.java @@ -257,4 +257,11 @@ public class DecafBaseVisitor extends AbstractParseTreeVisitor implements * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitValue(DecafParser.ValueContext ctx) { return visitChildren(ctx); } + /** + * {@inheritDoc} + * + *

The default implementation returns the result of calling + * {@link #visitChildren} on {@code ctx}.

+ */ + @Override public T visitPrint(DecafParser.PrintContext ctx) { return visitChildren(ctx); } } \ No newline at end of file diff --git a/src/main/java/gen/DecafLexer.interp b/src/main/java/gen/DecafLexer.interp index ddc17ed..ac2282a 100644 --- a/src/main/java/gen/DecafLexer.interp +++ b/src/main/java/gen/DecafLexer.interp @@ -1,5 +1,7 @@ token literal names: null +'print(' +');' null 'null' 'public' @@ -48,6 +50,8 @@ null token symbolic names: null +null +null BooleanValue NullValue AccessModifierPublic @@ -95,6 +99,8 @@ Identifier WS rule names: +T__0 +T__1 BooleanValue NullValue AccessModifierPublic @@ -152,4 +158,4 @@ mode names: DEFAULT_MODE atn: -[4, 0, 45, 325, 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, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 3, 8, 185, 8, 8, 1, 9, 1, 9, 3, 9, 189, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 197, 8, 10, 1, 11, 1, 11, 3, 11, 201, 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, 290, 8, 41, 10, 41, 12, 41, 293, 9, 41, 1, 41, 4, 41, 296, 8, 41, 11, 41, 12, 41, 297, 1, 42, 1, 42, 3, 42, 302, 8, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 3, 45, 313, 8, 45, 1, 46, 1, 46, 5, 46, 317, 8, 46, 10, 46, 12, 46, 320, 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, 337, 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, 176, 1, 0, 0, 0, 17, 184, 1, 0, 0, 0, 19, 188, 1, 0, 0, 0, 21, 196, 1, 0, 0, 0, 23, 200, 1, 0, 0, 0, 25, 202, 1, 0, 0, 0, 27, 204, 1, 0, 0, 0, 29, 206, 1, 0, 0, 0, 31, 208, 1, 0, 0, 0, 33, 210, 1, 0, 0, 0, 35, 212, 1, 0, 0, 0, 37, 214, 1, 0, 0, 0, 39, 216, 1, 0, 0, 0, 41, 218, 1, 0, 0, 0, 43, 221, 1, 0, 0, 0, 45, 224, 1, 0, 0, 0, 47, 227, 1, 0, 0, 0, 49, 230, 1, 0, 0, 0, 51, 232, 1, 0, 0, 0, 53, 235, 1, 0, 0, 0, 55, 238, 1, 0, 0, 0, 57, 240, 1, 0, 0, 0, 59, 242, 1, 0, 0, 0, 61, 244, 1, 0, 0, 0, 63, 246, 1, 0, 0, 0, 65, 248, 1, 0, 0, 0, 67, 250, 1, 0, 0, 0, 69, 252, 1, 0, 0, 0, 71, 258, 1, 0, 0, 0, 73, 263, 1, 0, 0, 0, 75, 269, 1, 0, 0, 0, 77, 272, 1, 0, 0, 0, 79, 277, 1, 0, 0, 0, 81, 284, 1, 0, 0, 0, 83, 291, 1, 0, 0, 0, 85, 299, 1, 0, 0, 0, 87, 305, 1, 0, 0, 0, 89, 307, 1, 0, 0, 0, 91, 312, 1, 0, 0, 0, 93, 314, 1, 0, 0, 0, 95, 321, 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, 173, 5, 101, 0, 0, 173, 174, 5, 97, 0, 0, 174, 175, 5, 110, 0, 0, 175, 14, 1, 0, 0, 0, 176, 177, 5, 99, 0, 0, 177, 178, 5, 104, 0, 0, 178, 179, 5, 97, 0, 0, 179, 180, 5, 114, 0, 0, 180, 16, 1, 0, 0, 0, 181, 185, 3, 31, 15, 0, 182, 185, 3, 33, 16, 0, 183, 185, 3, 35, 17, 0, 184, 181, 1, 0, 0, 0, 184, 182, 1, 0, 0, 0, 184, 183, 1, 0, 0, 0, 185, 18, 1, 0, 0, 0, 186, 189, 3, 29, 14, 0, 187, 189, 3, 27, 13, 0, 188, 186, 1, 0, 0, 0, 188, 187, 1, 0, 0, 0, 189, 20, 1, 0, 0, 0, 190, 197, 3, 37, 18, 0, 191, 197, 3, 39, 19, 0, 192, 197, 3, 41, 20, 0, 193, 197, 3, 43, 21, 0, 194, 197, 3, 45, 22, 0, 195, 197, 3, 47, 23, 0, 196, 190, 1, 0, 0, 0, 196, 191, 1, 0, 0, 0, 196, 192, 1, 0, 0, 0, 196, 193, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 196, 195, 1, 0, 0, 0, 197, 22, 1, 0, 0, 0, 198, 201, 3, 51, 25, 0, 199, 201, 3, 53, 26, 0, 200, 198, 1, 0, 0, 0, 200, 199, 1, 0, 0, 0, 201, 24, 1, 0, 0, 0, 202, 203, 5, 61, 0, 0, 203, 26, 1, 0, 0, 0, 204, 205, 5, 45, 0, 0, 205, 28, 1, 0, 0, 0, 206, 207, 5, 43, 0, 0, 207, 30, 1, 0, 0, 0, 208, 209, 5, 42, 0, 0, 209, 32, 1, 0, 0, 0, 210, 211, 5, 47, 0, 0, 211, 34, 1, 0, 0, 0, 212, 213, 5, 37, 0, 0, 213, 36, 1, 0, 0, 0, 214, 215, 5, 62, 0, 0, 215, 38, 1, 0, 0, 0, 216, 217, 5, 60, 0, 0, 217, 40, 1, 0, 0, 0, 218, 219, 5, 62, 0, 0, 219, 220, 5, 61, 0, 0, 220, 42, 1, 0, 0, 0, 221, 222, 5, 60, 0, 0, 222, 223, 5, 61, 0, 0, 223, 44, 1, 0, 0, 0, 224, 225, 5, 61, 0, 0, 225, 226, 5, 61, 0, 0, 226, 46, 1, 0, 0, 0, 227, 228, 5, 33, 0, 0, 228, 229, 5, 61, 0, 0, 229, 48, 1, 0, 0, 0, 230, 231, 5, 33, 0, 0, 231, 50, 1, 0, 0, 0, 232, 233, 5, 38, 0, 0, 233, 234, 5, 38, 0, 0, 234, 52, 1, 0, 0, 0, 235, 236, 5, 124, 0, 0, 236, 237, 5, 124, 0, 0, 237, 54, 1, 0, 0, 0, 238, 239, 5, 46, 0, 0, 239, 56, 1, 0, 0, 0, 240, 241, 5, 40, 0, 0, 241, 58, 1, 0, 0, 0, 242, 243, 5, 41, 0, 0, 243, 60, 1, 0, 0, 0, 244, 245, 5, 123, 0, 0, 245, 62, 1, 0, 0, 0, 246, 247, 5, 125, 0, 0, 247, 64, 1, 0, 0, 0, 248, 249, 5, 59, 0, 0, 249, 66, 1, 0, 0, 0, 250, 251, 5, 44, 0, 0, 251, 68, 1, 0, 0, 0, 252, 253, 5, 99, 0, 0, 253, 254, 5, 108, 0, 0, 254, 255, 5, 97, 0, 0, 255, 256, 5, 115, 0, 0, 256, 257, 5, 115, 0, 0, 257, 70, 1, 0, 0, 0, 258, 259, 5, 116, 0, 0, 259, 260, 5, 104, 0, 0, 260, 261, 5, 105, 0, 0, 261, 262, 5, 115, 0, 0, 262, 72, 1, 0, 0, 0, 263, 264, 5, 119, 0, 0, 264, 265, 5, 104, 0, 0, 265, 266, 5, 105, 0, 0, 266, 267, 5, 108, 0, 0, 267, 268, 5, 101, 0, 0, 268, 74, 1, 0, 0, 0, 269, 270, 5, 105, 0, 0, 270, 271, 5, 102, 0, 0, 271, 76, 1, 0, 0, 0, 272, 273, 5, 101, 0, 0, 273, 274, 5, 108, 0, 0, 274, 275, 5, 115, 0, 0, 275, 276, 5, 101, 0, 0, 276, 78, 1, 0, 0, 0, 277, 278, 5, 114, 0, 0, 278, 279, 5, 101, 0, 0, 279, 280, 5, 116, 0, 0, 280, 281, 5, 117, 0, 0, 281, 282, 5, 114, 0, 0, 282, 283, 5, 110, 0, 0, 283, 80, 1, 0, 0, 0, 284, 285, 5, 110, 0, 0, 285, 286, 5, 101, 0, 0, 286, 287, 5, 119, 0, 0, 287, 82, 1, 0, 0, 0, 288, 290, 7, 0, 0, 0, 289, 288, 1, 0, 0, 0, 290, 293, 1, 0, 0, 0, 291, 289, 1, 0, 0, 0, 291, 292, 1, 0, 0, 0, 292, 295, 1, 0, 0, 0, 293, 291, 1, 0, 0, 0, 294, 296, 7, 1, 0, 0, 295, 294, 1, 0, 0, 0, 296, 297, 1, 0, 0, 0, 297, 295, 1, 0, 0, 0, 297, 298, 1, 0, 0, 0, 298, 84, 1, 0, 0, 0, 299, 301, 5, 39, 0, 0, 300, 302, 8, 2, 0, 0, 301, 300, 1, 0, 0, 0, 301, 302, 1, 0, 0, 0, 302, 303, 1, 0, 0, 0, 303, 304, 5, 39, 0, 0, 304, 86, 1, 0, 0, 0, 305, 306, 7, 3, 0, 0, 306, 88, 1, 0, 0, 0, 307, 308, 7, 1, 0, 0, 308, 90, 1, 0, 0, 0, 309, 313, 3, 87, 43, 0, 310, 313, 3, 89, 44, 0, 311, 313, 7, 4, 0, 0, 312, 309, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 312, 311, 1, 0, 0, 0, 313, 92, 1, 0, 0, 0, 314, 318, 3, 87, 43, 0, 315, 317, 3, 91, 45, 0, 316, 315, 1, 0, 0, 0, 317, 320, 1, 0, 0, 0, 318, 316, 1, 0, 0, 0, 318, 319, 1, 0, 0, 0, 319, 94, 1, 0, 0, 0, 320, 318, 1, 0, 0, 0, 321, 322, 7, 5, 0, 0, 322, 323, 1, 0, 0, 0, 323, 324, 6, 47, 0, 0, 324, 96, 1, 0, 0, 0, 11, 0, 106, 184, 188, 196, 200, 291, 297, 301, 312, 318, 1, 6, 0, 0] \ No newline at end of file +[4, 0, 47, 339, 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, 2, 48, 7, 48, 2, 49, 7, 49, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 121, 8, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 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, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 3, 10, 199, 8, 10, 1, 11, 1, 11, 3, 11, 203, 8, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 211, 8, 12, 1, 13, 1, 13, 3, 13, 215, 8, 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, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 28, 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, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 5, 43, 304, 8, 43, 10, 43, 12, 43, 307, 9, 43, 1, 43, 4, 43, 310, 8, 43, 11, 43, 12, 43, 311, 1, 44, 1, 44, 3, 44, 316, 8, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 3, 47, 327, 8, 47, 1, 48, 1, 48, 5, 48, 331, 8, 48, 10, 48, 12, 48, 334, 9, 48, 1, 49, 1, 49, 1, 49, 1, 49, 0, 0, 50, 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, 44, 89, 45, 91, 0, 93, 0, 95, 0, 97, 46, 99, 47, 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, 351, 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, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 1, 101, 1, 0, 0, 0, 3, 108, 1, 0, 0, 0, 5, 120, 1, 0, 0, 0, 7, 122, 1, 0, 0, 0, 9, 127, 1, 0, 0, 0, 11, 134, 1, 0, 0, 0, 13, 173, 1, 0, 0, 0, 15, 178, 1, 0, 0, 0, 17, 182, 1, 0, 0, 0, 19, 190, 1, 0, 0, 0, 21, 198, 1, 0, 0, 0, 23, 202, 1, 0, 0, 0, 25, 210, 1, 0, 0, 0, 27, 214, 1, 0, 0, 0, 29, 216, 1, 0, 0, 0, 31, 218, 1, 0, 0, 0, 33, 220, 1, 0, 0, 0, 35, 222, 1, 0, 0, 0, 37, 224, 1, 0, 0, 0, 39, 226, 1, 0, 0, 0, 41, 228, 1, 0, 0, 0, 43, 230, 1, 0, 0, 0, 45, 232, 1, 0, 0, 0, 47, 235, 1, 0, 0, 0, 49, 238, 1, 0, 0, 0, 51, 241, 1, 0, 0, 0, 53, 244, 1, 0, 0, 0, 55, 246, 1, 0, 0, 0, 57, 249, 1, 0, 0, 0, 59, 252, 1, 0, 0, 0, 61, 254, 1, 0, 0, 0, 63, 256, 1, 0, 0, 0, 65, 258, 1, 0, 0, 0, 67, 260, 1, 0, 0, 0, 69, 262, 1, 0, 0, 0, 71, 264, 1, 0, 0, 0, 73, 266, 1, 0, 0, 0, 75, 272, 1, 0, 0, 0, 77, 277, 1, 0, 0, 0, 79, 283, 1, 0, 0, 0, 81, 286, 1, 0, 0, 0, 83, 291, 1, 0, 0, 0, 85, 298, 1, 0, 0, 0, 87, 305, 1, 0, 0, 0, 89, 313, 1, 0, 0, 0, 91, 319, 1, 0, 0, 0, 93, 321, 1, 0, 0, 0, 95, 326, 1, 0, 0, 0, 97, 328, 1, 0, 0, 0, 99, 335, 1, 0, 0, 0, 101, 102, 5, 112, 0, 0, 102, 103, 5, 114, 0, 0, 103, 104, 5, 105, 0, 0, 104, 105, 5, 110, 0, 0, 105, 106, 5, 116, 0, 0, 106, 107, 5, 40, 0, 0, 107, 2, 1, 0, 0, 0, 108, 109, 5, 41, 0, 0, 109, 110, 5, 59, 0, 0, 110, 4, 1, 0, 0, 0, 111, 112, 5, 116, 0, 0, 112, 113, 5, 114, 0, 0, 113, 114, 5, 117, 0, 0, 114, 121, 5, 101, 0, 0, 115, 116, 5, 102, 0, 0, 116, 117, 5, 97, 0, 0, 117, 118, 5, 108, 0, 0, 118, 119, 5, 115, 0, 0, 119, 121, 5, 101, 0, 0, 120, 111, 1, 0, 0, 0, 120, 115, 1, 0, 0, 0, 121, 6, 1, 0, 0, 0, 122, 123, 5, 110, 0, 0, 123, 124, 5, 117, 0, 0, 124, 125, 5, 108, 0, 0, 125, 126, 5, 108, 0, 0, 126, 8, 1, 0, 0, 0, 127, 128, 5, 112, 0, 0, 128, 129, 5, 117, 0, 0, 129, 130, 5, 98, 0, 0, 130, 131, 5, 108, 0, 0, 131, 132, 5, 105, 0, 0, 132, 133, 5, 99, 0, 0, 133, 10, 1, 0, 0, 0, 134, 135, 5, 112, 0, 0, 135, 136, 5, 117, 0, 0, 136, 137, 5, 98, 0, 0, 137, 138, 5, 108, 0, 0, 138, 139, 5, 105, 0, 0, 139, 140, 5, 99, 0, 0, 140, 141, 5, 32, 0, 0, 141, 142, 5, 115, 0, 0, 142, 143, 5, 116, 0, 0, 143, 144, 5, 97, 0, 0, 144, 145, 5, 116, 0, 0, 145, 146, 5, 105, 0, 0, 146, 147, 5, 99, 0, 0, 147, 148, 5, 32, 0, 0, 148, 149, 5, 118, 0, 0, 149, 150, 5, 111, 0, 0, 150, 151, 5, 105, 0, 0, 151, 152, 5, 100, 0, 0, 152, 153, 5, 32, 0, 0, 153, 154, 5, 109, 0, 0, 154, 155, 5, 97, 0, 0, 155, 156, 5, 105, 0, 0, 156, 157, 5, 110, 0, 0, 157, 158, 5, 40, 0, 0, 158, 159, 5, 83, 0, 0, 159, 160, 5, 116, 0, 0, 160, 161, 5, 114, 0, 0, 161, 162, 5, 105, 0, 0, 162, 163, 5, 110, 0, 0, 163, 164, 5, 103, 0, 0, 164, 165, 5, 91, 0, 0, 165, 166, 5, 93, 0, 0, 166, 167, 5, 32, 0, 0, 167, 168, 5, 97, 0, 0, 168, 169, 5, 114, 0, 0, 169, 170, 5, 103, 0, 0, 170, 171, 5, 115, 0, 0, 171, 172, 5, 41, 0, 0, 172, 12, 1, 0, 0, 0, 173, 174, 5, 118, 0, 0, 174, 175, 5, 111, 0, 0, 175, 176, 5, 105, 0, 0, 176, 177, 5, 100, 0, 0, 177, 14, 1, 0, 0, 0, 178, 179, 5, 105, 0, 0, 179, 180, 5, 110, 0, 0, 180, 181, 5, 116, 0, 0, 181, 16, 1, 0, 0, 0, 182, 183, 5, 98, 0, 0, 183, 184, 5, 111, 0, 0, 184, 185, 5, 111, 0, 0, 185, 186, 5, 108, 0, 0, 186, 187, 5, 101, 0, 0, 187, 188, 5, 97, 0, 0, 188, 189, 5, 110, 0, 0, 189, 18, 1, 0, 0, 0, 190, 191, 5, 99, 0, 0, 191, 192, 5, 104, 0, 0, 192, 193, 5, 97, 0, 0, 193, 194, 5, 114, 0, 0, 194, 20, 1, 0, 0, 0, 195, 199, 3, 35, 17, 0, 196, 199, 3, 37, 18, 0, 197, 199, 3, 39, 19, 0, 198, 195, 1, 0, 0, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 199, 22, 1, 0, 0, 0, 200, 203, 3, 33, 16, 0, 201, 203, 3, 31, 15, 0, 202, 200, 1, 0, 0, 0, 202, 201, 1, 0, 0, 0, 203, 24, 1, 0, 0, 0, 204, 211, 3, 41, 20, 0, 205, 211, 3, 43, 21, 0, 206, 211, 3, 45, 22, 0, 207, 211, 3, 47, 23, 0, 208, 211, 3, 49, 24, 0, 209, 211, 3, 51, 25, 0, 210, 204, 1, 0, 0, 0, 210, 205, 1, 0, 0, 0, 210, 206, 1, 0, 0, 0, 210, 207, 1, 0, 0, 0, 210, 208, 1, 0, 0, 0, 210, 209, 1, 0, 0, 0, 211, 26, 1, 0, 0, 0, 212, 215, 3, 55, 27, 0, 213, 215, 3, 57, 28, 0, 214, 212, 1, 0, 0, 0, 214, 213, 1, 0, 0, 0, 215, 28, 1, 0, 0, 0, 216, 217, 5, 61, 0, 0, 217, 30, 1, 0, 0, 0, 218, 219, 5, 45, 0, 0, 219, 32, 1, 0, 0, 0, 220, 221, 5, 43, 0, 0, 221, 34, 1, 0, 0, 0, 222, 223, 5, 42, 0, 0, 223, 36, 1, 0, 0, 0, 224, 225, 5, 47, 0, 0, 225, 38, 1, 0, 0, 0, 226, 227, 5, 37, 0, 0, 227, 40, 1, 0, 0, 0, 228, 229, 5, 62, 0, 0, 229, 42, 1, 0, 0, 0, 230, 231, 5, 60, 0, 0, 231, 44, 1, 0, 0, 0, 232, 233, 5, 62, 0, 0, 233, 234, 5, 61, 0, 0, 234, 46, 1, 0, 0, 0, 235, 236, 5, 60, 0, 0, 236, 237, 5, 61, 0, 0, 237, 48, 1, 0, 0, 0, 238, 239, 5, 61, 0, 0, 239, 240, 5, 61, 0, 0, 240, 50, 1, 0, 0, 0, 241, 242, 5, 33, 0, 0, 242, 243, 5, 61, 0, 0, 243, 52, 1, 0, 0, 0, 244, 245, 5, 33, 0, 0, 245, 54, 1, 0, 0, 0, 246, 247, 5, 38, 0, 0, 247, 248, 5, 38, 0, 0, 248, 56, 1, 0, 0, 0, 249, 250, 5, 124, 0, 0, 250, 251, 5, 124, 0, 0, 251, 58, 1, 0, 0, 0, 252, 253, 5, 46, 0, 0, 253, 60, 1, 0, 0, 0, 254, 255, 5, 40, 0, 0, 255, 62, 1, 0, 0, 0, 256, 257, 5, 41, 0, 0, 257, 64, 1, 0, 0, 0, 258, 259, 5, 123, 0, 0, 259, 66, 1, 0, 0, 0, 260, 261, 5, 125, 0, 0, 261, 68, 1, 0, 0, 0, 262, 263, 5, 59, 0, 0, 263, 70, 1, 0, 0, 0, 264, 265, 5, 44, 0, 0, 265, 72, 1, 0, 0, 0, 266, 267, 5, 99, 0, 0, 267, 268, 5, 108, 0, 0, 268, 269, 5, 97, 0, 0, 269, 270, 5, 115, 0, 0, 270, 271, 5, 115, 0, 0, 271, 74, 1, 0, 0, 0, 272, 273, 5, 116, 0, 0, 273, 274, 5, 104, 0, 0, 274, 275, 5, 105, 0, 0, 275, 276, 5, 115, 0, 0, 276, 76, 1, 0, 0, 0, 277, 278, 5, 119, 0, 0, 278, 279, 5, 104, 0, 0, 279, 280, 5, 105, 0, 0, 280, 281, 5, 108, 0, 0, 281, 282, 5, 101, 0, 0, 282, 78, 1, 0, 0, 0, 283, 284, 5, 105, 0, 0, 284, 285, 5, 102, 0, 0, 285, 80, 1, 0, 0, 0, 286, 287, 5, 101, 0, 0, 287, 288, 5, 108, 0, 0, 288, 289, 5, 115, 0, 0, 289, 290, 5, 101, 0, 0, 290, 82, 1, 0, 0, 0, 291, 292, 5, 114, 0, 0, 292, 293, 5, 101, 0, 0, 293, 294, 5, 116, 0, 0, 294, 295, 5, 117, 0, 0, 295, 296, 5, 114, 0, 0, 296, 297, 5, 110, 0, 0, 297, 84, 1, 0, 0, 0, 298, 299, 5, 110, 0, 0, 299, 300, 5, 101, 0, 0, 300, 301, 5, 119, 0, 0, 301, 86, 1, 0, 0, 0, 302, 304, 7, 0, 0, 0, 303, 302, 1, 0, 0, 0, 304, 307, 1, 0, 0, 0, 305, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 309, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 308, 310, 7, 1, 0, 0, 309, 308, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 309, 1, 0, 0, 0, 311, 312, 1, 0, 0, 0, 312, 88, 1, 0, 0, 0, 313, 315, 5, 39, 0, 0, 314, 316, 8, 2, 0, 0, 315, 314, 1, 0, 0, 0, 315, 316, 1, 0, 0, 0, 316, 317, 1, 0, 0, 0, 317, 318, 5, 39, 0, 0, 318, 90, 1, 0, 0, 0, 319, 320, 7, 3, 0, 0, 320, 92, 1, 0, 0, 0, 321, 322, 7, 1, 0, 0, 322, 94, 1, 0, 0, 0, 323, 327, 3, 91, 45, 0, 324, 327, 3, 93, 46, 0, 325, 327, 7, 4, 0, 0, 326, 323, 1, 0, 0, 0, 326, 324, 1, 0, 0, 0, 326, 325, 1, 0, 0, 0, 327, 96, 1, 0, 0, 0, 328, 332, 3, 91, 45, 0, 329, 331, 3, 95, 47, 0, 330, 329, 1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 98, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 335, 336, 7, 5, 0, 0, 336, 337, 1, 0, 0, 0, 337, 338, 6, 49, 0, 0, 338, 100, 1, 0, 0, 0, 11, 0, 120, 198, 202, 210, 214, 305, 311, 315, 326, 332, 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 1251680..6beb679 100644 --- a/src/main/java/gen/DecafLexer.java +++ b/src/main/java/gen/DecafLexer.java @@ -17,14 +17,14 @@ public class DecafLexer extends Lexer { protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache(); public static final int - 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; + T__0=1, T__1=2, BooleanValue=3, NullValue=4, AccessModifierPublic=5, MainMethodDecl=6, + Void=7, Int=8, Boolean=9, Char=10, DotOperator=11, LineOperator=12, ComparisonOperator=13, + LogicalOpertor=14, Assign=15, Minus=16, Plus=17, Multipilkation=18, Division=19, + Modulo=20, Greater=21, Less=22, GreaterEqual=23, LessEqual=24, Equal=25, + NotEqual=26, Not=27, And=28, Or=29, Dot=30, OpenRoundBracket=31, ClosedRoundBracket=32, + OpenCurlyBracket=33, ClosedCurlyBracket=34, Semicolon=35, Comma=36, Class=37, + This=38, While=39, If=40, Else=41, Return=42, New=43, IntValue=44, CharValue=45, + Identifier=46, WS=47; public static String[] channelNames = { "DEFAULT_TOKEN_CHANNEL", "HIDDEN" }; @@ -35,11 +35,11 @@ public class DecafLexer extends Lexer { private static String[] makeRuleNames() { return new String[] { - "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", + "T__0", "T__1", "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", "WS" @@ -49,7 +49,7 @@ public class DecafLexer extends Lexer { private static String[] makeLiteralNames() { return new String[] { - null, null, "'null'", "'public'", "'public static void main(String[] args)'", + null, "'print('", "');'", null, "'null'", "'public'", "'public static void main(String[] args)'", "'void'", "'int'", "'boolean'", "'char'", null, null, null, null, "'='", "'-'", "'+'", "'*'", "'/'", "'%'", "'>'", "'<'", "'>='", "'<='", "'=='", "'!='", "'!'", "'&&'", "'||'", "'.'", "'('", "')'", "'{'", "'}'", "';'", @@ -60,11 +60,11 @@ public class DecafLexer extends Lexer { private static final String[] _LITERAL_NAMES = makeLiteralNames(); private static String[] makeSymbolicNames() { return new String[] { - 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", + null, null, 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", "IntValue", "CharValue", "Identifier", "WS" @@ -129,7 +129,7 @@ public class DecafLexer extends Lexer { public ATN getATN() { return _ATN; } public static final String _serializedATN = - "\u0004\u0000-\u0145\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002\u0001"+ + "\u0004\u0000/\u0153\u0006\uffff\uffff\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"+ @@ -142,194 +142,201 @@ public class DecafLexer extends Lexer { "\u001e\u0007\u001e\u0002\u001f\u0007\u001f\u0002 \u0007 \u0002!\u0007"+ "!\u0002\"\u0007\"\u0002#\u0007#\u0002$\u0007$\u0002%\u0007%\u0002&\u0007"+ "&\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\u0000\u0001\u0000\u0003\u0000k\b\u0000\u0001\u0001\u0001\u0001"+ - "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002\u0001\u0002"+ - "\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\u0006\u0001\u0006\u0001\u0006"+ - "\u0001\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\b\u0001"+ - "\b\u0001\b\u0003\b\u00b9\b\b\u0001\t\u0001\t\u0003\t\u00bd\b\t\u0001\n"+ - "\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0003\n\u00c5\b\n\u0001\u000b"+ - "\u0001\u000b\u0003\u000b\u00c9\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)\u0122\b)\n)\f)\u0125\t)\u0001)\u0004)\u0128\b)"+ - "\u000b)\f)\u0129\u0001*\u0001*\u0003*\u012e\b*\u0001*\u0001*\u0001+\u0001"+ - "+\u0001,\u0001,\u0001-\u0001-\u0001-\u0003-\u0139\b-\u0001.\u0001.\u0005"+ - ".\u013d\b.\n.\f.\u0140\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\u001c9\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 \u0151\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\u0000"+ - "7\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\u0000"+ - "E\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\u0000Q\u0001\u0000\u0000\u0000\u0000"+ - "S\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\u0005q\u0001\u0000\u0000\u0000\u0007"+ - "x\u0001\u0000\u0000\u0000\t\u009f\u0001\u0000\u0000\u0000\u000b\u00a4"+ - "\u0001\u0000\u0000\u0000\r\u00a8\u0001\u0000\u0000\u0000\u000f\u00b0\u0001"+ - "\u0000\u0000\u0000\u0011\u00b8\u0001\u0000\u0000\u0000\u0013\u00bc\u0001"+ - "\u0000\u0000\u0000\u0015\u00c4\u0001\u0000\u0000\u0000\u0017\u00c8\u0001"+ - "\u0000\u0000\u0000\u0019\u00ca\u0001\u0000\u0000\u0000\u001b\u00cc\u0001"+ - "\u0000\u0000\u0000\u001d\u00ce\u0001\u0000\u0000\u0000\u001f\u00d0\u0001"+ - "\u0000\u0000\u0000!\u00d2\u0001\u0000\u0000\u0000#\u00d4\u0001\u0000\u0000"+ - "\u0000%\u00d6\u0001\u0000\u0000\u0000\'\u00d8\u0001\u0000\u0000\u0000"+ - ")\u00da\u0001\u0000\u0000\u0000+\u00dd\u0001\u0000\u0000\u0000-\u00e0"+ - "\u0001\u0000\u0000\u0000/\u00e3\u0001\u0000\u0000\u00001\u00e6\u0001\u0000"+ - "\u0000\u00003\u00e8\u0001\u0000\u0000\u00005\u00eb\u0001\u0000\u0000\u0000"+ - "7\u00ee\u0001\u0000\u0000\u00009\u00f0\u0001\u0000\u0000\u0000;\u00f2"+ - "\u0001\u0000\u0000\u0000=\u00f4\u0001\u0000\u0000\u0000?\u00f6\u0001\u0000"+ - "\u0000\u0000A\u00f8\u0001\u0000\u0000\u0000C\u00fa\u0001\u0000\u0000\u0000"+ - "E\u00fc\u0001\u0000\u0000\u0000G\u0102\u0001\u0000\u0000\u0000I\u0107"+ - "\u0001\u0000\u0000\u0000K\u010d\u0001\u0000\u0000\u0000M\u0110\u0001\u0000"+ - "\u0000\u0000O\u0115\u0001\u0000\u0000\u0000Q\u011c\u0001\u0000\u0000\u0000"+ - "S\u0123\u0001\u0000\u0000\u0000U\u012b\u0001\u0000\u0000\u0000W\u0131"+ - "\u0001\u0000\u0000\u0000Y\u0133\u0001\u0000\u0000\u0000[\u0138\u0001\u0000"+ - "\u0000\u0000]\u013a\u0001\u0000\u0000\u0000_\u0141\u0001\u0000\u0000\u0000"+ - "ab\u0005t\u0000\u0000bc\u0005r\u0000\u0000cd\u0005u\u0000\u0000dk\u0005"+ - "e\u0000\u0000ef\u0005f\u0000\u0000fg\u0005a\u0000\u0000gh\u0005l\u0000"+ - "\u0000hi\u0005s\u0000\u0000ik\u0005e\u0000\u0000ja\u0001\u0000\u0000\u0000"+ - "je\u0001\u0000\u0000\u0000k\u0002\u0001\u0000\u0000\u0000lm\u0005n\u0000"+ - "\u0000mn\u0005u\u0000\u0000no\u0005l\u0000\u0000op\u0005l\u0000\u0000"+ - "p\u0004\u0001\u0000\u0000\u0000qr\u0005p\u0000\u0000rs\u0005u\u0000\u0000"+ - "st\u0005b\u0000\u0000tu\u0005l\u0000\u0000uv\u0005i\u0000\u0000vw\u0005"+ - "c\u0000\u0000w\u0006\u0001\u0000\u0000\u0000xy\u0005p\u0000\u0000yz\u0005"+ - "u\u0000\u0000z{\u0005b\u0000\u0000{|\u0005l\u0000\u0000|}\u0005i\u0000"+ - "\u0000}~\u0005c\u0000\u0000~\u007f\u0005 \u0000\u0000\u007f\u0080\u0005"+ - "s\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\u0005"+ - "v\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\u0005"+ - "i\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\u0005"+ - "n\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\u0005"+ - "g\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\u0005"+ - "i\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\u00ad\u0005e\u0000\u0000\u00ad\u00ae\u0005a"+ - "\u0000\u0000\u00ae\u00af\u0005n\u0000\u0000\u00af\u000e\u0001\u0000\u0000"+ - "\u0000\u00b0\u00b1\u0005c\u0000\u0000\u00b1\u00b2\u0005h\u0000\u0000\u00b2"+ - "\u00b3\u0005a\u0000\u0000\u00b3\u00b4\u0005r\u0000\u0000\u00b4\u0010\u0001"+ - "\u0000\u0000\u0000\u00b5\u00b9\u0003\u001f\u000f\u0000\u00b6\u00b9\u0003"+ - "!\u0010\u0000\u00b7\u00b9\u0003#\u0011\u0000\u00b8\u00b5\u0001\u0000\u0000"+ - "\u0000\u00b8\u00b6\u0001\u0000\u0000\u0000\u00b8\u00b7\u0001\u0000\u0000"+ - "\u0000\u00b9\u0012\u0001\u0000\u0000\u0000\u00ba\u00bd\u0003\u001d\u000e"+ - "\u0000\u00bb\u00bd\u0003\u001b\r\u0000\u00bc\u00ba\u0001\u0000\u0000\u0000"+ - "\u00bc\u00bb\u0001\u0000\u0000\u0000\u00bd\u0014\u0001\u0000\u0000\u0000"+ - "\u00be\u00c5\u0003%\u0012\u0000\u00bf\u00c5\u0003\'\u0013\u0000\u00c0"+ - "\u00c5\u0003)\u0014\u0000\u00c1\u00c5\u0003+\u0015\u0000\u00c2\u00c5\u0003"+ - "-\u0016\u0000\u00c3\u00c5\u0003/\u0017\u0000\u00c4\u00be\u0001\u0000\u0000"+ - "\u0000\u00c4\u00bf\u0001\u0000\u0000\u0000\u00c4\u00c0\u0001\u0000\u0000"+ - "\u0000\u00c4\u00c1\u0001\u0000\u0000\u0000\u00c4\u00c2\u0001\u0000\u0000"+ - "\u0000\u00c4\u00c3\u0001\u0000\u0000\u0000\u00c5\u0016\u0001\u0000\u0000"+ - "\u0000\u00c6\u00c9\u00033\u0019\u0000\u00c7\u00c9\u00035\u001a\u0000\u00c8"+ - "\u00c6\u0001\u0000\u0000\u0000\u00c8\u00c7\u0001\u0000\u0000\u0000\u00c9"+ - "\u0018\u0001\u0000\u0000\u0000\u00ca\u00cb\u0005=\u0000\u0000\u00cb\u001a"+ - "\u0001\u0000\u0000\u0000\u00cc\u00cd\u0005-\u0000\u0000\u00cd\u001c\u0001"+ - "\u0000\u0000\u0000\u00ce\u00cf\u0005+\u0000\u0000\u00cf\u001e\u0001\u0000"+ - "\u0000\u0000\u00d0\u00d1\u0005*\u0000\u0000\u00d1 \u0001\u0000\u0000\u0000"+ - "\u00d2\u00d3\u0005/\u0000\u0000\u00d3\"\u0001\u0000\u0000\u0000\u00d4"+ - "\u00d5\u0005%\u0000\u0000\u00d5$\u0001\u0000\u0000\u0000\u00d6\u00d7\u0005"+ - ">\u0000\u0000\u00d7&\u0001\u0000\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\u00e2"+ - ".\u0001\u0000\u0000\u0000\u00e3\u00e4\u0005!\u0000\u0000\u00e4\u00e5\u0005"+ - "=\u0000\u0000\u00e50\u0001\u0000\u0000\u0000\u00e6\u00e7\u0005!\u0000"+ - "\u0000\u00e72\u0001\u0000\u0000\u0000\u00e8\u00e9\u0005&\u0000\u0000\u00e9"+ - "\u00ea\u0005&\u0000\u0000\u00ea4\u0001\u0000\u0000\u0000\u00eb\u00ec\u0005"+ - "|\u0000\u0000\u00ec\u00ed\u0005|\u0000\u0000\u00ed6\u0001\u0000\u0000"+ - "\u0000\u00ee\u00ef\u0005.\u0000\u0000\u00ef8\u0001\u0000\u0000\u0000\u00f0"+ - "\u00f1\u0005(\u0000\u0000\u00f1:\u0001\u0000\u0000\u0000\u00f2\u00f3\u0005"+ - ")\u0000\u0000\u00f3<\u0001\u0000\u0000\u0000\u00f4\u00f5\u0005{\u0000"+ - "\u0000\u00f5>\u0001\u0000\u0000\u0000\u00f6\u00f7\u0005}\u0000\u0000\u00f7"+ - "@\u0001\u0000\u0000\u0000\u00f8\u00f9\u0005;\u0000\u0000\u00f9B\u0001"+ - "\u0000\u0000\u0000\u00fa\u00fb\u0005,\u0000\u0000\u00fbD\u0001\u0000\u0000"+ - "\u0000\u00fc\u00fd\u0005c\u0000\u0000\u00fd\u00fe\u0005l\u0000\u0000\u00fe"+ - "\u00ff\u0005a\u0000\u0000\u00ff\u0100\u0005s\u0000\u0000\u0100\u0101\u0005"+ - "s\u0000\u0000\u0101F\u0001\u0000\u0000\u0000\u0102\u0103\u0005t\u0000"+ - "\u0000\u0103\u0104\u0005h\u0000\u0000\u0104\u0105\u0005i\u0000\u0000\u0105"+ - "\u0106\u0005s\u0000\u0000\u0106H\u0001\u0000\u0000\u0000\u0107\u0108\u0005"+ - "w\u0000\u0000\u0108\u0109\u0005h\u0000\u0000\u0109\u010a\u0005i\u0000"+ - "\u0000\u010a\u010b\u0005l\u0000\u0000\u010b\u010c\u0005e\u0000\u0000\u010c"+ - "J\u0001\u0000\u0000\u0000\u010d\u010e\u0005i\u0000\u0000\u010e\u010f\u0005"+ - "f\u0000\u0000\u010fL\u0001\u0000\u0000\u0000\u0110\u0111\u0005e\u0000"+ - "\u0000\u0111\u0112\u0005l\u0000\u0000\u0112\u0113\u0005s\u0000\u0000\u0113"+ - "\u0114\u0005e\u0000\u0000\u0114N\u0001\u0000\u0000\u0000\u0115\u0116\u0005"+ - "r\u0000\u0000\u0116\u0117\u0005e\u0000\u0000\u0117\u0118\u0005t\u0000"+ - "\u0000\u0118\u0119\u0005u\u0000\u0000\u0119\u011a\u0005r\u0000\u0000\u011a"+ - "\u011b\u0005n\u0000\u0000\u011bP\u0001\u0000\u0000\u0000\u011c\u011d\u0005"+ - "n\u0000\u0000\u011d\u011e\u0005e\u0000\u0000\u011e\u011f\u0005w\u0000"+ - "\u0000\u011fR\u0001\u0000\u0000\u0000\u0120\u0122\u0007\u0000\u0000\u0000"+ - "\u0121\u0120\u0001\u0000\u0000\u0000\u0122\u0125\u0001\u0000\u0000\u0000"+ - "\u0123\u0121\u0001\u0000\u0000\u0000\u0123\u0124\u0001\u0000\u0000\u0000"+ - "\u0124\u0127\u0001\u0000\u0000\u0000\u0125\u0123\u0001\u0000\u0000\u0000"+ - "\u0126\u0128\u0007\u0001\u0000\u0000\u0127\u0126\u0001\u0000\u0000\u0000"+ - "\u0128\u0129\u0001\u0000\u0000\u0000\u0129\u0127\u0001\u0000\u0000\u0000"+ - "\u0129\u012a\u0001\u0000\u0000\u0000\u012aT\u0001\u0000\u0000\u0000\u012b"+ - "\u012d\u0005\'\u0000\u0000\u012c\u012e\b\u0002\u0000\u0000\u012d\u012c"+ - "\u0001\u0000\u0000\u0000\u012d\u012e\u0001\u0000\u0000\u0000\u012e\u012f"+ - "\u0001\u0000\u0000\u0000\u012f\u0130\u0005\'\u0000\u0000\u0130V\u0001"+ - "\u0000\u0000\u0000\u0131\u0132\u0007\u0003\u0000\u0000\u0132X\u0001\u0000"+ - "\u0000\u0000\u0133\u0134\u0007\u0001\u0000\u0000\u0134Z\u0001\u0000\u0000"+ - "\u0000\u0135\u0139\u0003W+\u0000\u0136\u0139\u0003Y,\u0000\u0137\u0139"+ - "\u0007\u0004\u0000\u0000\u0138\u0135\u0001\u0000\u0000\u0000\u0138\u0136"+ - "\u0001\u0000\u0000\u0000\u0138\u0137\u0001\u0000\u0000\u0000\u0139\\\u0001"+ - "\u0000\u0000\u0000\u013a\u013e\u0003W+\u0000\u013b\u013d\u0003[-\u0000"+ - "\u013c\u013b\u0001\u0000\u0000\u0000\u013d\u0140\u0001\u0000\u0000\u0000"+ - "\u013e\u013c\u0001\u0000\u0000\u0000\u013e\u013f\u0001\u0000\u0000\u0000"+ - "\u013f^\u0001\u0000\u0000\u0000\u0140\u013e\u0001\u0000\u0000\u0000\u0141"+ - "\u0142\u0007\u0005\u0000\u0000\u0142\u0143\u0001\u0000\u0000\u0000\u0143"+ - "\u0144\u0006/\u0000\u0000\u0144`\u0001\u0000\u0000\u0000\u000b\u0000j"+ - "\u00b8\u00bc\u00c4\u00c8\u0123\u0129\u012d\u0138\u013e\u0001\u0006\u0000"+ - "\u0000"; + "+\u0002,\u0007,\u0002-\u0007-\u0002.\u0007.\u0002/\u0007/\u00020\u0007"+ + "0\u00021\u00071\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001"+ + "\u0000\u0001\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+ + "\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001"+ + "\u0002\u0001\u0002\u0001\u0002\u0003\u0002y\b\u0002\u0001\u0003\u0001"+ + "\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001"+ + "\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ + "\u0005\u0001\u0005\u0001\u0005\u0001\u0005\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\b\u0001\b"+ + "\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\t\u0001\t\u0001"+ + "\t\u0001\t\u0001\t\u0001\n\u0001\n\u0001\n\u0003\n\u00c7\b\n\u0001\u000b"+ + "\u0001\u000b\u0003\u000b\u00cb\b\u000b\u0001\f\u0001\f\u0001\f\u0001\f"+ + "\u0001\f\u0001\f\u0003\f\u00d3\b\f\u0001\r\u0001\r\u0003\r\u00d7\b\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\u0015\u0001\u0015\u0001\u0016\u0001\u0016\u0001"+ + "\u0016\u0001\u0017\u0001\u0017\u0001\u0017\u0001\u0018\u0001\u0018\u0001"+ + "\u0018\u0001\u0019\u0001\u0019\u0001\u0019\u0001\u001a\u0001\u001a\u0001"+ + "\u001b\u0001\u001b\u0001\u001b\u0001\u001c\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"+ + "*\u0001*\u0001*\u0001*\u0001+\u0005+\u0130\b+\n+\f+\u0133\t+\u0001+\u0004"+ + "+\u0136\b+\u000b+\f+\u0137\u0001,\u0001,\u0003,\u013c\b,\u0001,\u0001"+ + ",\u0001-\u0001-\u0001.\u0001.\u0001/\u0001/\u0001/\u0003/\u0147\b/\u0001"+ + "0\u00010\u00050\u014b\b0\n0\f0\u014e\t0\u00011\u00011\u00011\u00011\u0000"+ + "\u00002\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$I%K&M\'O(Q)S*U+W,Y-[\u0000]\u0000_\u0000a.c/\u0001\u0000\u0006\u0002"+ + "\u0000++--\u0001\u000009\u0002\u0000\n\n\r\r\u0002\u0000AZaz\u0002\u0000"+ + "$$__\u0003\u0000\t\n\r\r \u015f\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\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\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\u0000a\u0001\u0000"+ + "\u0000\u0000\u0000c\u0001\u0000\u0000\u0000\u0001e\u0001\u0000\u0000\u0000"+ + "\u0003l\u0001\u0000\u0000\u0000\u0005x\u0001\u0000\u0000\u0000\u0007z"+ + "\u0001\u0000\u0000\u0000\t\u007f\u0001\u0000\u0000\u0000\u000b\u0086\u0001"+ + "\u0000\u0000\u0000\r\u00ad\u0001\u0000\u0000\u0000\u000f\u00b2\u0001\u0000"+ + "\u0000\u0000\u0011\u00b6\u0001\u0000\u0000\u0000\u0013\u00be\u0001\u0000"+ + "\u0000\u0000\u0015\u00c6\u0001\u0000\u0000\u0000\u0017\u00ca\u0001\u0000"+ + "\u0000\u0000\u0019\u00d2\u0001\u0000\u0000\u0000\u001b\u00d6\u0001\u0000"+ + "\u0000\u0000\u001d\u00d8\u0001\u0000\u0000\u0000\u001f\u00da\u0001\u0000"+ + "\u0000\u0000!\u00dc\u0001\u0000\u0000\u0000#\u00de\u0001\u0000\u0000\u0000"+ + "%\u00e0\u0001\u0000\u0000\u0000\'\u00e2\u0001\u0000\u0000\u0000)\u00e4"+ + "\u0001\u0000\u0000\u0000+\u00e6\u0001\u0000\u0000\u0000-\u00e8\u0001\u0000"+ + "\u0000\u0000/\u00eb\u0001\u0000\u0000\u00001\u00ee\u0001\u0000\u0000\u0000"+ + "3\u00f1\u0001\u0000\u0000\u00005\u00f4\u0001\u0000\u0000\u00007\u00f6"+ + "\u0001\u0000\u0000\u00009\u00f9\u0001\u0000\u0000\u0000;\u00fc\u0001\u0000"+ + "\u0000\u0000=\u00fe\u0001\u0000\u0000\u0000?\u0100\u0001\u0000\u0000\u0000"+ + "A\u0102\u0001\u0000\u0000\u0000C\u0104\u0001\u0000\u0000\u0000E\u0106"+ + "\u0001\u0000\u0000\u0000G\u0108\u0001\u0000\u0000\u0000I\u010a\u0001\u0000"+ + "\u0000\u0000K\u0110\u0001\u0000\u0000\u0000M\u0115\u0001\u0000\u0000\u0000"+ + "O\u011b\u0001\u0000\u0000\u0000Q\u011e\u0001\u0000\u0000\u0000S\u0123"+ + "\u0001\u0000\u0000\u0000U\u012a\u0001\u0000\u0000\u0000W\u0131\u0001\u0000"+ + "\u0000\u0000Y\u0139\u0001\u0000\u0000\u0000[\u013f\u0001\u0000\u0000\u0000"+ + "]\u0141\u0001\u0000\u0000\u0000_\u0146\u0001\u0000\u0000\u0000a\u0148"+ + "\u0001\u0000\u0000\u0000c\u014f\u0001\u0000\u0000\u0000ef\u0005p\u0000"+ + "\u0000fg\u0005r\u0000\u0000gh\u0005i\u0000\u0000hi\u0005n\u0000\u0000"+ + "ij\u0005t\u0000\u0000jk\u0005(\u0000\u0000k\u0002\u0001\u0000\u0000\u0000"+ + "lm\u0005)\u0000\u0000mn\u0005;\u0000\u0000n\u0004\u0001\u0000\u0000\u0000"+ + "op\u0005t\u0000\u0000pq\u0005r\u0000\u0000qr\u0005u\u0000\u0000ry\u0005"+ + "e\u0000\u0000st\u0005f\u0000\u0000tu\u0005a\u0000\u0000uv\u0005l\u0000"+ + "\u0000vw\u0005s\u0000\u0000wy\u0005e\u0000\u0000xo\u0001\u0000\u0000\u0000"+ + "xs\u0001\u0000\u0000\u0000y\u0006\u0001\u0000\u0000\u0000z{\u0005n\u0000"+ + "\u0000{|\u0005u\u0000\u0000|}\u0005l\u0000\u0000}~\u0005l\u0000\u0000"+ + "~\b\u0001\u0000\u0000\u0000\u007f\u0080\u0005p\u0000\u0000\u0080\u0081"+ + "\u0005u\u0000\u0000\u0081\u0082\u0005b\u0000\u0000\u0082\u0083\u0005l"+ + "\u0000\u0000\u0083\u0084\u0005i\u0000\u0000\u0084\u0085\u0005c\u0000\u0000"+ + "\u0085\n\u0001\u0000\u0000\u0000\u0086\u0087\u0005p\u0000\u0000\u0087"+ + "\u0088\u0005u\u0000\u0000\u0088\u0089\u0005b\u0000\u0000\u0089\u008a\u0005"+ + "l\u0000\u0000\u008a\u008b\u0005i\u0000\u0000\u008b\u008c\u0005c\u0000"+ + "\u0000\u008c\u008d\u0005 \u0000\u0000\u008d\u008e\u0005s\u0000\u0000\u008e"+ + "\u008f\u0005t\u0000\u0000\u008f\u0090\u0005a\u0000\u0000\u0090\u0091\u0005"+ + "t\u0000\u0000\u0091\u0092\u0005i\u0000\u0000\u0092\u0093\u0005c\u0000"+ + "\u0000\u0093\u0094\u0005 \u0000\u0000\u0094\u0095\u0005v\u0000\u0000\u0095"+ + "\u0096\u0005o\u0000\u0000\u0096\u0097\u0005i\u0000\u0000\u0097\u0098\u0005"+ + "d\u0000\u0000\u0098\u0099\u0005 \u0000\u0000\u0099\u009a\u0005m\u0000"+ + "\u0000\u009a\u009b\u0005a\u0000\u0000\u009b\u009c\u0005i\u0000\u0000\u009c"+ + "\u009d\u0005n\u0000\u0000\u009d\u009e\u0005(\u0000\u0000\u009e\u009f\u0005"+ + "S\u0000\u0000\u009f\u00a0\u0005t\u0000\u0000\u00a0\u00a1\u0005r\u0000"+ + "\u0000\u00a1\u00a2\u0005i\u0000\u0000\u00a2\u00a3\u0005n\u0000\u0000\u00a3"+ + "\u00a4\u0005g\u0000\u0000\u00a4\u00a5\u0005[\u0000\u0000\u00a5\u00a6\u0005"+ + "]\u0000\u0000\u00a6\u00a7\u0005 \u0000\u0000\u00a7\u00a8\u0005a\u0000"+ + "\u0000\u00a8\u00a9\u0005r\u0000\u0000\u00a9\u00aa\u0005g\u0000\u0000\u00aa"+ + "\u00ab\u0005s\u0000\u0000\u00ab\u00ac\u0005)\u0000\u0000\u00ac\f\u0001"+ + "\u0000\u0000\u0000\u00ad\u00ae\u0005v\u0000\u0000\u00ae\u00af\u0005o\u0000"+ + "\u0000\u00af\u00b0\u0005i\u0000\u0000\u00b0\u00b1\u0005d\u0000\u0000\u00b1"+ + "\u000e\u0001\u0000\u0000\u0000\u00b2\u00b3\u0005i\u0000\u0000\u00b3\u00b4"+ + "\u0005n\u0000\u0000\u00b4\u00b5\u0005t\u0000\u0000\u00b5\u0010\u0001\u0000"+ + "\u0000\u0000\u00b6\u00b7\u0005b\u0000\u0000\u00b7\u00b8\u0005o\u0000\u0000"+ + "\u00b8\u00b9\u0005o\u0000\u0000\u00b9\u00ba\u0005l\u0000\u0000\u00ba\u00bb"+ + "\u0005e\u0000\u0000\u00bb\u00bc\u0005a\u0000\u0000\u00bc\u00bd\u0005n"+ + "\u0000\u0000\u00bd\u0012\u0001\u0000\u0000\u0000\u00be\u00bf\u0005c\u0000"+ + "\u0000\u00bf\u00c0\u0005h\u0000\u0000\u00c0\u00c1\u0005a\u0000\u0000\u00c1"+ + "\u00c2\u0005r\u0000\u0000\u00c2\u0014\u0001\u0000\u0000\u0000\u00c3\u00c7"+ + "\u0003#\u0011\u0000\u00c4\u00c7\u0003%\u0012\u0000\u00c5\u00c7\u0003\'"+ + "\u0013\u0000\u00c6\u00c3\u0001\u0000\u0000\u0000\u00c6\u00c4\u0001\u0000"+ + "\u0000\u0000\u00c6\u00c5\u0001\u0000\u0000\u0000\u00c7\u0016\u0001\u0000"+ + "\u0000\u0000\u00c8\u00cb\u0003!\u0010\u0000\u00c9\u00cb\u0003\u001f\u000f"+ + "\u0000\u00ca\u00c8\u0001\u0000\u0000\u0000\u00ca\u00c9\u0001\u0000\u0000"+ + "\u0000\u00cb\u0018\u0001\u0000\u0000\u0000\u00cc\u00d3\u0003)\u0014\u0000"+ + "\u00cd\u00d3\u0003+\u0015\u0000\u00ce\u00d3\u0003-\u0016\u0000\u00cf\u00d3"+ + "\u0003/\u0017\u0000\u00d0\u00d3\u00031\u0018\u0000\u00d1\u00d3\u00033"+ + "\u0019\u0000\u00d2\u00cc\u0001\u0000\u0000\u0000\u00d2\u00cd\u0001\u0000"+ + "\u0000\u0000\u00d2\u00ce\u0001\u0000\u0000\u0000\u00d2\u00cf\u0001\u0000"+ + "\u0000\u0000\u00d2\u00d0\u0001\u0000\u0000\u0000\u00d2\u00d1\u0001\u0000"+ + "\u0000\u0000\u00d3\u001a\u0001\u0000\u0000\u0000\u00d4\u00d7\u00037\u001b"+ + "\u0000\u00d5\u00d7\u00039\u001c\u0000\u00d6\u00d4\u0001\u0000\u0000\u0000"+ + "\u00d6\u00d5\u0001\u0000\u0000\u0000\u00d7\u001c\u0001\u0000\u0000\u0000"+ + "\u00d8\u00d9\u0005=\u0000\u0000\u00d9\u001e\u0001\u0000\u0000\u0000\u00da"+ + "\u00db\u0005-\u0000\u0000\u00db \u0001\u0000\u0000\u0000\u00dc\u00dd\u0005"+ + "+\u0000\u0000\u00dd\"\u0001\u0000\u0000\u0000\u00de\u00df\u0005*\u0000"+ + "\u0000\u00df$\u0001\u0000\u0000\u0000\u00e0\u00e1\u0005/\u0000\u0000\u00e1"+ + "&\u0001\u0000\u0000\u0000\u00e2\u00e3\u0005%\u0000\u0000\u00e3(\u0001"+ + "\u0000\u0000\u0000\u00e4\u00e5\u0005>\u0000\u0000\u00e5*\u0001\u0000\u0000"+ + "\u0000\u00e6\u00e7\u0005<\u0000\u0000\u00e7,\u0001\u0000\u0000\u0000\u00e8"+ + "\u00e9\u0005>\u0000\u0000\u00e9\u00ea\u0005=\u0000\u0000\u00ea.\u0001"+ + "\u0000\u0000\u0000\u00eb\u00ec\u0005<\u0000\u0000\u00ec\u00ed\u0005=\u0000"+ + "\u0000\u00ed0\u0001\u0000\u0000\u0000\u00ee\u00ef\u0005=\u0000\u0000\u00ef"+ + "\u00f0\u0005=\u0000\u0000\u00f02\u0001\u0000\u0000\u0000\u00f1\u00f2\u0005"+ + "!\u0000\u0000\u00f2\u00f3\u0005=\u0000\u0000\u00f34\u0001\u0000\u0000"+ + "\u0000\u00f4\u00f5\u0005!\u0000\u0000\u00f56\u0001\u0000\u0000\u0000\u00f6"+ + "\u00f7\u0005&\u0000\u0000\u00f7\u00f8\u0005&\u0000\u0000\u00f88\u0001"+ + "\u0000\u0000\u0000\u00f9\u00fa\u0005|\u0000\u0000\u00fa\u00fb\u0005|\u0000"+ + "\u0000\u00fb:\u0001\u0000\u0000\u0000\u00fc\u00fd\u0005.\u0000\u0000\u00fd"+ + "<\u0001\u0000\u0000\u0000\u00fe\u00ff\u0005(\u0000\u0000\u00ff>\u0001"+ + "\u0000\u0000\u0000\u0100\u0101\u0005)\u0000\u0000\u0101@\u0001\u0000\u0000"+ + "\u0000\u0102\u0103\u0005{\u0000\u0000\u0103B\u0001\u0000\u0000\u0000\u0104"+ + "\u0105\u0005}\u0000\u0000\u0105D\u0001\u0000\u0000\u0000\u0106\u0107\u0005"+ + ";\u0000\u0000\u0107F\u0001\u0000\u0000\u0000\u0108\u0109\u0005,\u0000"+ + "\u0000\u0109H\u0001\u0000\u0000\u0000\u010a\u010b\u0005c\u0000\u0000\u010b"+ + "\u010c\u0005l\u0000\u0000\u010c\u010d\u0005a\u0000\u0000\u010d\u010e\u0005"+ + "s\u0000\u0000\u010e\u010f\u0005s\u0000\u0000\u010fJ\u0001\u0000\u0000"+ + "\u0000\u0110\u0111\u0005t\u0000\u0000\u0111\u0112\u0005h\u0000\u0000\u0112"+ + "\u0113\u0005i\u0000\u0000\u0113\u0114\u0005s\u0000\u0000\u0114L\u0001"+ + "\u0000\u0000\u0000\u0115\u0116\u0005w\u0000\u0000\u0116\u0117\u0005h\u0000"+ + "\u0000\u0117\u0118\u0005i\u0000\u0000\u0118\u0119\u0005l\u0000\u0000\u0119"+ + "\u011a\u0005e\u0000\u0000\u011aN\u0001\u0000\u0000\u0000\u011b\u011c\u0005"+ + "i\u0000\u0000\u011c\u011d\u0005f\u0000\u0000\u011dP\u0001\u0000\u0000"+ + "\u0000\u011e\u011f\u0005e\u0000\u0000\u011f\u0120\u0005l\u0000\u0000\u0120"+ + "\u0121\u0005s\u0000\u0000\u0121\u0122\u0005e\u0000\u0000\u0122R\u0001"+ + "\u0000\u0000\u0000\u0123\u0124\u0005r\u0000\u0000\u0124\u0125\u0005e\u0000"+ + "\u0000\u0125\u0126\u0005t\u0000\u0000\u0126\u0127\u0005u\u0000\u0000\u0127"+ + "\u0128\u0005r\u0000\u0000\u0128\u0129\u0005n\u0000\u0000\u0129T\u0001"+ + "\u0000\u0000\u0000\u012a\u012b\u0005n\u0000\u0000\u012b\u012c\u0005e\u0000"+ + "\u0000\u012c\u012d\u0005w\u0000\u0000\u012dV\u0001\u0000\u0000\u0000\u012e"+ + "\u0130\u0007\u0000\u0000\u0000\u012f\u012e\u0001\u0000\u0000\u0000\u0130"+ + "\u0133\u0001\u0000\u0000\u0000\u0131\u012f\u0001\u0000\u0000\u0000\u0131"+ + "\u0132\u0001\u0000\u0000\u0000\u0132\u0135\u0001\u0000\u0000\u0000\u0133"+ + "\u0131\u0001\u0000\u0000\u0000\u0134\u0136\u0007\u0001\u0000\u0000\u0135"+ + "\u0134\u0001\u0000\u0000\u0000\u0136\u0137\u0001\u0000\u0000\u0000\u0137"+ + "\u0135\u0001\u0000\u0000\u0000\u0137\u0138\u0001\u0000\u0000\u0000\u0138"+ + "X\u0001\u0000\u0000\u0000\u0139\u013b\u0005\'\u0000\u0000\u013a\u013c"+ + "\b\u0002\u0000\u0000\u013b\u013a\u0001\u0000\u0000\u0000\u013b\u013c\u0001"+ + "\u0000\u0000\u0000\u013c\u013d\u0001\u0000\u0000\u0000\u013d\u013e\u0005"+ + "\'\u0000\u0000\u013eZ\u0001\u0000\u0000\u0000\u013f\u0140\u0007\u0003"+ + "\u0000\u0000\u0140\\\u0001\u0000\u0000\u0000\u0141\u0142\u0007\u0001\u0000"+ + "\u0000\u0142^\u0001\u0000\u0000\u0000\u0143\u0147\u0003[-\u0000\u0144"+ + "\u0147\u0003].\u0000\u0145\u0147\u0007\u0004\u0000\u0000\u0146\u0143\u0001"+ + "\u0000\u0000\u0000\u0146\u0144\u0001\u0000\u0000\u0000\u0146\u0145\u0001"+ + "\u0000\u0000\u0000\u0147`\u0001\u0000\u0000\u0000\u0148\u014c\u0003[-"+ + "\u0000\u0149\u014b\u0003_/\u0000\u014a\u0149\u0001\u0000\u0000\u0000\u014b"+ + "\u014e\u0001\u0000\u0000\u0000\u014c\u014a\u0001\u0000\u0000\u0000\u014c"+ + "\u014d\u0001\u0000\u0000\u0000\u014db\u0001\u0000\u0000\u0000\u014e\u014c"+ + "\u0001\u0000\u0000\u0000\u014f\u0150\u0007\u0005\u0000\u0000\u0150\u0151"+ + "\u0001\u0000\u0000\u0000\u0151\u0152\u00061\u0000\u0000\u0152d\u0001\u0000"+ + "\u0000\u0000\u000b\u0000x\u00c6\u00ca\u00d2\u00d6\u0131\u0137\u013b\u0146"+ + "\u014c\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 501cbd7..88dd76e 100644 --- a/src/main/java/gen/DecafLexer.tokens +++ b/src/main/java/gen/DecafLexer.tokens @@ -1,81 +1,85 @@ -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 -'null'=2 -'public'=3 -'public static void main(String[] args)'=4 -'void'=5 -'int'=6 -'boolean'=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 +T__0=1 +T__1=2 +BooleanValue=3 +NullValue=4 +AccessModifierPublic=5 +MainMethodDecl=6 +Void=7 +Int=8 +Boolean=9 +Char=10 +DotOperator=11 +LineOperator=12 +ComparisonOperator=13 +LogicalOpertor=14 +Assign=15 +Minus=16 +Plus=17 +Multipilkation=18 +Division=19 +Modulo=20 +Greater=21 +Less=22 +GreaterEqual=23 +LessEqual=24 +Equal=25 +NotEqual=26 +Not=27 +And=28 +Or=29 +Dot=30 +OpenRoundBracket=31 +ClosedRoundBracket=32 +OpenCurlyBracket=33 +ClosedCurlyBracket=34 +Semicolon=35 +Comma=36 +Class=37 +This=38 +While=39 +If=40 +Else=41 +Return=42 +New=43 +IntValue=44 +CharValue=45 +Identifier=46 +WS=47 +'print('=1 +');'=2 +'null'=4 +'public'=5 +'public static void main(String[] args)'=6 +'void'=7 +'int'=8 +'boolean'=9 +'char'=10 +'='=15 +'-'=16 +'+'=17 +'*'=18 +'/'=19 +'%'=20 +'>'=21 +'<'=22 +'>='=23 +'<='=24 +'=='=25 +'!='=26 +'!'=27 +'&&'=28 +'||'=29 +'.'=30 +'('=31 +')'=32 +'{'=33 +'}'=34 +';'=35 +','=36 +'class'=37 +'this'=38 +'while'=39 +'if'=40 +'else'=41 +'return'=42 +'new'=43 diff --git a/src/main/java/gen/DecafListener.java b/src/main/java/gen/DecafListener.java index 1009cd4..9b69a07 100644 --- a/src/main/java/gen/DecafListener.java +++ b/src/main/java/gen/DecafListener.java @@ -357,4 +357,14 @@ public interface DecafListener extends ParseTreeListener { * @param ctx the parse tree */ void exitValue(DecafParser.ValueContext ctx); + /** + * Enter a parse tree produced by {@link DecafParser#print}. + * @param ctx the parse tree + */ + void enterPrint(DecafParser.PrintContext ctx); + /** + * Exit a parse tree produced by {@link DecafParser#print}. + * @param ctx the parse tree + */ + void exitPrint(DecafParser.PrintContext ctx); } \ No newline at end of file diff --git a/src/main/java/gen/DecafParser.java b/src/main/java/gen/DecafParser.java index 2eca0af..ee5c432 100644 --- a/src/main/java/gen/DecafParser.java +++ b/src/main/java/gen/DecafParser.java @@ -17,14 +17,14 @@ public class DecafParser extends Parser { protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache(); public static final int - 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; + T__0=1, T__1=2, BooleanValue=3, NullValue=4, AccessModifierPublic=5, MainMethodDecl=6, + Void=7, Int=8, Boolean=9, Char=10, DotOperator=11, LineOperator=12, ComparisonOperator=13, + LogicalOpertor=14, Assign=15, Minus=16, Plus=17, Multipilkation=18, Division=19, + Modulo=20, Greater=21, Less=22, GreaterEqual=23, LessEqual=24, Equal=25, + NotEqual=26, Not=27, And=28, Or=29, Dot=30, OpenRoundBracket=31, ClosedRoundBracket=32, + OpenCurlyBracket=33, ClosedCurlyBracket=34, Semicolon=35, Comma=36, Class=37, + This=38, While=39, If=40, Else=41, Return=42, New=43, IntValue=44, CharValue=45, + Identifier=46, WS=47; public static final int RULE_program = 0, RULE_classdecl = 1, RULE_constuctorDecl = 2, RULE_methodDecl = 3, RULE_parameterList = 4, RULE_parameter = 5, RULE_argumentList = 6, RULE_expression = 7, @@ -34,7 +34,8 @@ public class DecafParser extends Parser { 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_emptyStatement = 32, RULE_type = 33, RULE_value = 34; + RULE_receivingMethod = 31, RULE_emptyStatement = 32, RULE_type = 33, RULE_value = 34, + RULE_print = 35; private static String[] makeRuleNames() { return new String[] { "program", "classdecl", "constuctorDecl", "methodDecl", "parameterList", @@ -43,14 +44,14 @@ public class DecafParser extends Parser { "binaryExpr", "calcExpr", "dotExpr", "dotSubExpr", "nonCalcExpr", "nonCalcOperator", "returnStmt", "localVarDecl", "block", "whileStmt", "ifElseStmt", "ifStmt", "elseStmt", "assign", "newDecl", "receiver", "receivingMethod", "emptyStatement", - "type", "value" + "type", "value", "print" }; } public static final String[] ruleNames = makeRuleNames(); private static String[] makeLiteralNames() { return new String[] { - null, null, "'null'", "'public'", "'public static void main(String[] args)'", + null, "'print('", "');'", null, "'null'", "'public'", "'public static void main(String[] args)'", "'void'", "'int'", "'boolean'", "'char'", null, null, null, null, "'='", "'-'", "'+'", "'*'", "'/'", "'%'", "'>'", "'<'", "'>='", "'<='", "'=='", "'!='", "'!'", "'&&'", "'||'", "'.'", "'('", "')'", "'{'", "'}'", "';'", @@ -61,11 +62,11 @@ public class DecafParser extends Parser { private static final String[] _LITERAL_NAMES = makeLiteralNames(); private static String[] makeSymbolicNames() { return new String[] { - 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", + null, null, 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", "IntValue", "CharValue", "Identifier", "WS" @@ -156,17 +157,17 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(71); + setState(73); _errHandler.sync(this); _la = _input.LA(1); do { { { - setState(70); + setState(72); classdecl(); } } - setState(73); + setState(75); _errHandler.sync(this); _la = _input.LA(1); } while ( _la==AccessModifierPublic || _la==Class ); @@ -238,67 +239,67 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(76); + setState(78); _errHandler.sync(this); _la = _input.LA(1); if (_la==AccessModifierPublic) { { - setState(75); + setState(77); match(AccessModifierPublic); } } - setState(78); - match(Class); - setState(79); - match(Identifier); setState(80); + match(Class); + setState(81); + match(Identifier); + setState(82); match(OpenCurlyBracket); - setState(86); + setState(88); _errHandler.sync(this); _la = _input.LA(1); - while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044904L) != 0)) { + while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 70368744179616L) != 0)) { { - setState(84); + setState(86); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) { case 1: { - setState(81); + setState(83); constuctorDecl(); } break; case 2: { - setState(82); + setState(84); localVarDecl(); } break; case 3: { - setState(83); + setState(85); methodDecl(); } break; } } - setState(88); + setState(90); _errHandler.sync(this); _la = _input.LA(1); } - setState(91); + setState(93); _errHandler.sync(this); _la = _input.LA(1); if (_la==MainMethodDecl) { { - setState(89); + setState(91); match(MainMethodDecl); - setState(90); + setState(92); block(); } } - setState(93); + setState(95); match(ClosedCurlyBracket); } } @@ -351,33 +352,33 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(96); + setState(98); _errHandler.sync(this); _la = _input.LA(1); if (_la==AccessModifierPublic) { { - setState(95); + setState(97); match(AccessModifierPublic); } } - setState(98); + setState(100); match(Identifier); - setState(99); - match(OpenRoundBracket); setState(101); + match(OpenRoundBracket); + setState(103); _errHandler.sync(this); _la = _input.LA(1); - if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) { + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 70368744179456L) != 0)) { { - setState(100); + setState(102); parameterList(); } } - setState(103); + setState(105); match(ClosedRoundBracket); - setState(104); + setState(106); block(); } } @@ -434,17 +435,17 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(107); + setState(109); _errHandler.sync(this); _la = _input.LA(1); if (_la==AccessModifierPublic) { { - setState(106); + setState(108); match(AccessModifierPublic); } } - setState(111); + setState(113); _errHandler.sync(this); switch (_input.LA(1)) { case Int: @@ -452,36 +453,36 @@ public class DecafParser extends Parser { case Char: case Identifier: { - setState(109); + setState(111); type(); } break; case Void: { - setState(110); + setState(112); match(Void); } break; default: throw new NoViableAltException(this); } - setState(113); + setState(115); match(Identifier); - setState(114); - match(OpenRoundBracket); setState(116); + match(OpenRoundBracket); + setState(118); _errHandler.sync(this); _la = _input.LA(1); - if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) { + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 70368744179456L) != 0)) { { - setState(115); + setState(117); parameterList(); } } - setState(118); + setState(120); match(ClosedRoundBracket); - setState(119); + setState(121); block(); } } @@ -534,21 +535,21 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(121); + setState(123); parameter(); - setState(126); + setState(128); _errHandler.sync(this); _la = _input.LA(1); while (_la==Comma) { { { - setState(122); + setState(124); match(Comma); - setState(123); + setState(125); parameter(); } } - setState(128); + setState(130); _errHandler.sync(this); _la = _input.LA(1); } @@ -596,9 +597,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(129); + setState(131); type(); - setState(130); + setState(132); match(Identifier); } } @@ -649,18 +650,18 @@ public class DecafParser extends Parser { enterRule(_localctx, 12, RULE_argumentList); int _la; try { - setState(142); + setState(144); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(133); + setState(135); _errHandler.sync(this); _la = _input.LA(1); - if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 33054638735366L) != 0)) { + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 132218554941464L) != 0)) { { - setState(132); + setState(134); expression(); } } @@ -670,21 +671,21 @@ public class DecafParser extends Parser { case 2: enterOuterAlt(_localctx, 2); { - setState(135); + setState(137); expression(); - setState(138); + setState(140); _errHandler.sync(this); _la = _input.LA(1); do { { { - setState(136); + setState(138); match(Comma); - setState(137); + setState(139); expression(); } } - setState(140); + setState(142); _errHandler.sync(this); _la = _input.LA(1); } while ( _la==Comma ); @@ -734,20 +735,20 @@ public class DecafParser extends Parser { ExpressionContext _localctx = new ExpressionContext(_ctx, getState()); enterRule(_localctx, 14, RULE_expression); try { - setState(146); + setState(148); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(144); + setState(146); subExpression(); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(145); + setState(147); binaryExpr(); } break; @@ -801,38 +802,38 @@ public class DecafParser extends Parser { SubExpressionContext _localctx = new SubExpressionContext(_ctx, getState()); enterRule(_localctx, 16, RULE_subExpression); try { - setState(155); + setState(157); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(148); + setState(150); match(This); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(149); + setState(151); assignableExpr(); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(150); + setState(152); stmtExpr(); } break; case 4: enterOuterAlt(_localctx, 4); { - setState(151); - match(OpenRoundBracket); - setState(152); - subExpression(); setState(153); + match(OpenRoundBracket); + setState(154); + subExpression(); + setState(155); match(ClosedRoundBracket); } break; @@ -892,39 +893,39 @@ public class DecafParser extends Parser { int _alt; enterOuterAlt(_localctx, 1); { - setState(158); + setState(160); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,16,_ctx) ) { case 1: { - setState(157); + setState(159); receiver(); } break; } - setState(163); + setState(165); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,17,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { - setState(160); + setState(162); receivingMethod(); } } } - setState(165); + setState(167); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,17,_ctx); } - setState(166); - match(Identifier); - setState(167); - match(OpenRoundBracket); setState(168); - argumentList(); + match(Identifier); setState(169); + match(OpenRoundBracket); + setState(170); + argumentList(); + setState(171); match(ClosedRoundBracket); } } @@ -957,6 +958,9 @@ public class DecafParser extends Parser { public IfElseStmtContext ifElseStmt() { return getRuleContext(IfElseStmtContext.class,0); } + public PrintContext print() { + return getRuleContext(PrintContext.class,0); + } public StmtExprContext stmtExpr() { return getRuleContext(StmtExprContext.class,0); } @@ -986,59 +990,66 @@ public class DecafParser extends Parser { StatementContext _localctx = new StatementContext(_ctx, getState()); enterRule(_localctx, 20, RULE_statement); try { - setState(182); + setState(185); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,18,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(171); + setState(173); returnStmt(); - setState(172); + setState(174); match(Semicolon); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(174); + setState(176); localVarDecl(); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(175); + setState(177); block(); } break; case 4: enterOuterAlt(_localctx, 4); { - setState(176); + setState(178); whileStmt(); } break; case 5: enterOuterAlt(_localctx, 5); { - setState(177); + setState(179); ifElseStmt(); } break; case 6: enterOuterAlt(_localctx, 6); { - setState(178); - stmtExpr(); - setState(179); - match(Semicolon); + setState(180); + print(); } break; case 7: enterOuterAlt(_localctx, 7); { setState(181); + stmtExpr(); + setState(182); + match(Semicolon); + } + break; + case 8: + enterOuterAlt(_localctx, 8); + { + setState(184); emptyStatement(); } break; @@ -1089,27 +1100,27 @@ public class DecafParser extends Parser { StmtExprContext _localctx = new StmtExprContext(_ctx, getState()); enterRule(_localctx, 22, RULE_stmtExpr); try { - setState(187); + setState(190); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,19,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(184); + setState(187); assign(); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(185); + setState(188); newDecl(); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(186); + setState(189); methodCall(); } break; @@ -1155,20 +1166,20 @@ public class DecafParser extends Parser { AssignableExprContext _localctx = new AssignableExprContext(_ctx, getState()); enterRule(_localctx, 24, RULE_assignableExpr); try { - setState(191); + setState(194); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,20,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(189); + setState(192); match(Identifier); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(190); + setState(193); instVar(); } break; @@ -1219,31 +1230,31 @@ public class DecafParser extends Parser { enterOuterAlt(_localctx, 1); { { - setState(196); + setState(199); _errHandler.sync(this); switch (_input.LA(1)) { case This: { - setState(193); + setState(196); match(This); } break; case New: { - setState(194); + setState(197); newDecl(); } break; case Identifier: { - setState(195); + setState(198); match(Identifier); } break; default: throw new NoViableAltException(this); } - setState(198); + setState(201); match(Dot); } } @@ -1300,7 +1311,7 @@ public class DecafParser extends Parser { int _alt; enterOuterAlt(_localctx, 1); { - setState(201); + setState(204); _errHandler.sync(this); _alt = 1; do { @@ -1308,7 +1319,7 @@ public class DecafParser extends Parser { case 1: { { - setState(200); + setState(203); subReceiver(); } } @@ -1316,27 +1327,27 @@ public class DecafParser extends Parser { default: throw new NoViableAltException(this); } - setState(203); + setState(206); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,22,_ctx); } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); - setState(208); + setState(211); _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(205); + setState(208); receivingMethod(); } } } - setState(210); + setState(213); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,23,_ctx); } - setState(211); + setState(214); match(Identifier); } } @@ -1389,36 +1400,36 @@ public class DecafParser extends Parser { BinaryExprContext _localctx = new BinaryExprContext(_ctx, getState()); enterRule(_localctx, 30, RULE_binaryExpr); try { - setState(218); + setState(221); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(213); + setState(216); calcExpr(0); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(214); + setState(217); nonCalcExpr(); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(215); + setState(218); value(); } break; case 4: enterOuterAlt(_localctx, 4); { - setState(216); + setState(219); match(Not); - setState(217); + setState(220); binaryExpr(); } break; @@ -1479,11 +1490,11 @@ public class DecafParser extends Parser { enterOuterAlt(_localctx, 1); { { - setState(221); + setState(224); dotExpr(0); } _ctx.stop = _input.LT(-1); - setState(228); + setState(231); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,25,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { @@ -1494,16 +1505,16 @@ public class DecafParser extends Parser { { _localctx = new CalcExprContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_calcExpr); - setState(223); + setState(226); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); - setState(224); + setState(227); match(LineOperator); - setState(225); + setState(228); dotExpr(0); } } } - setState(230); + setState(233); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,25,_ctx); } @@ -1564,11 +1575,11 @@ public class DecafParser extends Parser { enterOuterAlt(_localctx, 1); { { - setState(232); + setState(235); dotSubExpr(); } _ctx.stop = _input.LT(-1); - setState(239); + setState(242); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,26,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { @@ -1579,16 +1590,16 @@ public class DecafParser extends Parser { { _localctx = new DotExprContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_dotExpr); - setState(234); + setState(237); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); - setState(235); + setState(238); match(DotOperator); - setState(236); + setState(239); dotSubExpr(); } } } - setState(241); + setState(244); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,26,_ctx); } @@ -1643,45 +1654,45 @@ public class DecafParser extends Parser { DotSubExprContext _localctx = new DotSubExprContext(_ctx, getState()); enterRule(_localctx, 36, RULE_dotSubExpr); try { - setState(250); + setState(253); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,27,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { - setState(242); + setState(245); match(IntValue); } break; case 2: enterOuterAlt(_localctx, 2); { - setState(243); + setState(246); match(Identifier); } break; case 3: enterOuterAlt(_localctx, 3); { - setState(244); + setState(247); instVar(); } break; case 4: enterOuterAlt(_localctx, 4); { - setState(245); + setState(248); methodCall(); } break; case 5: enterOuterAlt(_localctx, 5); { - setState(246); + setState(249); match(OpenRoundBracket); - setState(247); + setState(250); calcExpr(0); - setState(248); + setState(251); match(ClosedRoundBracket); } break; @@ -1734,11 +1745,11 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(252); + setState(255); subExpression(); - setState(253); + setState(256); nonCalcOperator(); - setState(254); + setState(257); expression(); } } @@ -1783,7 +1794,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(256); + setState(259); _la = _input.LA(1); if ( !(_la==ComparisonOperator || _la==LogicalOpertor) ) { _errHandler.recoverInline(this); @@ -1838,14 +1849,14 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(258); + setState(261); match(Return); - setState(260); + setState(263); _errHandler.sync(this); _la = _input.LA(1); - if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 33054638735366L) != 0)) { + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 132218554941464L) != 0)) { { - setState(259); + setState(262); expression(); } } @@ -1901,33 +1912,33 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(263); + setState(266); _errHandler.sync(this); _la = _input.LA(1); if (_la==AccessModifierPublic) { { - setState(262); + setState(265); match(AccessModifierPublic); } } - setState(265); + setState(268); type(); - setState(266); - match(Identifier); setState(269); + match(Identifier); + setState(272); _errHandler.sync(this); _la = _input.LA(1); if (_la==Assign) { { - setState(267); + setState(270); match(Assign); - setState(268); + setState(271); expression(); } } - setState(271); + setState(274); match(Semicolon); } } @@ -1978,23 +1989,23 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(273); + setState(276); match(OpenCurlyBracket); - setState(277); + setState(280); _errHandler.sync(this); _la = _input.LA(1); - while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 21382494683592L) != 0)) { + while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 85529978734370L) != 0)) { { { - setState(274); + setState(277); statement(); } } - setState(279); + setState(282); _errHandler.sync(this); _la = _input.LA(1); } - setState(280); + setState(283); match(ClosedCurlyBracket); } } @@ -2045,15 +2056,15 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(282); - match(While); - setState(283); - match(OpenRoundBracket); - setState(284); - expression(); setState(285); - match(ClosedRoundBracket); + match(While); setState(286); + match(OpenRoundBracket); + setState(287); + expression(); + setState(288); + match(ClosedRoundBracket); + setState(289); statement(); } } @@ -2101,14 +2112,14 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(288); + setState(291); ifStmt(); - setState(290); + setState(293); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) { case 1: { - setState(289); + setState(292); elseStmt(); } break; @@ -2162,15 +2173,15 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(292); - match(If); - setState(293); - match(OpenRoundBracket); - setState(294); - expression(); setState(295); - match(ClosedRoundBracket); + match(If); setState(296); + match(OpenRoundBracket); + setState(297); + expression(); + setState(298); + match(ClosedRoundBracket); + setState(299); statement(); } } @@ -2216,9 +2227,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(298); + setState(301); match(Else); - setState(299); + setState(302); statement(); } } @@ -2267,11 +2278,11 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(301); + setState(304); assignableExpr(); - setState(302); + setState(305); match(Assign); - setState(303); + setState(306); expression(); } } @@ -2320,15 +2331,15 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(305); - match(New); - setState(306); - match(Identifier); - setState(307); - match(OpenRoundBracket); setState(308); - argumentList(); + match(New); setState(309); + match(Identifier); + setState(310); + match(OpenRoundBracket); + setState(311); + argumentList(); + setState(312); match(ClosedRoundBracket); } } @@ -2380,35 +2391,35 @@ public class DecafParser extends Parser { enterOuterAlt(_localctx, 1); { { - setState(315); + setState(318); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) { case 1: { - setState(311); + setState(314); match(This); } break; case 2: { - setState(312); + setState(315); instVar(); } break; case 3: { - setState(313); + setState(316); newDecl(); } break; case 4: { - setState(314); + setState(317); match(Identifier); } break; } - setState(317); + setState(320); match(Dot); } } @@ -2458,15 +2469,15 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(319); - match(Identifier); - setState(320); - match(OpenRoundBracket); - setState(321); - argumentList(); setState(322); - match(ClosedRoundBracket); + match(Identifier); setState(323); + match(OpenRoundBracket); + setState(324); + argumentList(); + setState(325); + match(ClosedRoundBracket); + setState(326); match(Dot); } } @@ -2509,7 +2520,7 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(325); + setState(328); match(Semicolon); } } @@ -2556,9 +2567,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(327); + setState(330); _la = _input.LA(1); - if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 17592186044864L) != 0)) ) { + if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 70368744179456L) != 0)) ) { _errHandler.recoverInline(this); } else { @@ -2611,9 +2622,9 @@ public class DecafParser extends Parser { try { enterOuterAlt(_localctx, 1); { - setState(329); + setState(332); _la = _input.LA(1); - if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 13194139533318L) != 0)) ) { + if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 52776558133272L) != 0)) ) { _errHandler.recoverInline(this); } else { @@ -2634,6 +2645,53 @@ public class DecafParser extends Parser { return _localctx; } + @SuppressWarnings("CheckReturnValue") + public static class PrintContext extends ParserRuleContext { + public TerminalNode Identifier() { return getToken(DecafParser.Identifier, 0); } + public PrintContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_print; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof DecafListener ) ((DecafListener)listener).enterPrint(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof DecafListener ) ((DecafListener)listener).exitPrint(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof DecafVisitor ) return ((DecafVisitor)visitor).visitPrint(this); + else return visitor.visitChildren(this); + } + } + + public final PrintContext print() throws RecognitionException { + PrintContext _localctx = new PrintContext(_ctx, getState()); + enterRule(_localctx, 70, RULE_print); + try { + enterOuterAlt(_localctx, 1); + { + setState(334); + match(T__0); + setState(335); + match(Identifier); + setState(336); + match(T__1); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) { switch (ruleIndex) { case 16: @@ -2659,7 +2717,7 @@ public class DecafParser extends Parser { } public static final String _serializedATN = - "\u0004\u0001-\u014c\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"+ + "\u0004\u0001/\u0153\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"+ @@ -2669,207 +2727,211 @@ 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\u0001\u0004\u0001\u0004\u0005\u0004}\b\u0004\n\u0004"+ - "\f\u0004\u0080\t\u0004\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0006"+ - "\u0003\u0006\u0086\b\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0004\u0006"+ - "\u008b\b\u0006\u000b\u0006\f\u0006\u008c\u0003\u0006\u008f\b\u0006\u0001"+ - "\u0007\u0001\u0007\u0003\u0007\u0093\b\u0007\u0001\b\u0001\b\u0001\b\u0001"+ - "\b\u0001\b\u0001\b\u0001\b\u0003\b\u009c\b\b\u0001\t\u0003\t\u009f\b\t"+ - "\u0001\t\u0005\t\u00a2\b\t\n\t\f\t\u00a5\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\u0003\n\u00b7\b\n\u0001\u000b\u0001\u000b\u0001"+ - "\u000b\u0003\u000b\u00bc\b\u000b\u0001\f\u0001\f\u0003\f\u00c0\b\f\u0001"+ - "\r\u0001\r\u0001\r\u0003\r\u00c5\b\r\u0001\r\u0001\r\u0001\u000e\u0004"+ - "\u000e\u00ca\b\u000e\u000b\u000e\f\u000e\u00cb\u0001\u000e\u0005\u000e"+ - "\u00cf\b\u000e\n\u000e\f\u000e\u00d2\t\u000e\u0001\u000e\u0001\u000e\u0001"+ - "\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0003\u000f\u00db"+ - "\b\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001"+ - "\u0010\u0005\u0010\u00e3\b\u0010\n\u0010\f\u0010\u00e6\t\u0010\u0001\u0011"+ - "\u0001\u0011\u0001\u0011\u0001\u0011\u0001\u0011\u0001\u0011\u0005\u0011"+ - "\u00ee\b\u0011\n\u0011\f\u0011\u00f1\t\u0011\u0001\u0012\u0001\u0012\u0001"+ - "\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0003"+ - "\u0012\u00fb\b\u0012\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001"+ - "\u0014\u0001\u0014\u0001\u0015\u0001\u0015\u0003\u0015\u0105\b\u0015\u0001"+ - "\u0016\u0003\u0016\u0108\b\u0016\u0001\u0016\u0001\u0016\u0001\u0016\u0001"+ - "\u0016\u0003\u0016\u010e\b\u0016\u0001\u0016\u0001\u0016\u0001\u0017\u0001"+ - "\u0017\u0005\u0017\u0114\b\u0017\n\u0017\f\u0017\u0117\t\u0017\u0001\u0017"+ - "\u0001\u0017\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0018"+ - "\u0001\u0018\u0001\u0019\u0001\u0019\u0003\u0019\u0123\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\u001e\u0003\u001e\u013c\b\u001e"+ - "\u0001\u001e\u0001\u001e\u0001\u001f\u0001\u001f\u0001\u001f\u0001\u001f"+ - "\u0001\u001f\u0001\u001f\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"+ - "\u000b\f\u0002\u0000\u0006\b,,\u0002\u0000\u0001\u0002*+\u015b\u0000G"+ - "\u0001\u0000\u0000\u0000\u0002L\u0001\u0000\u0000\u0000\u0004`\u0001\u0000"+ - "\u0000\u0000\u0006k\u0001\u0000\u0000\u0000\by\u0001\u0000\u0000\u0000"+ - "\n\u0081\u0001\u0000\u0000\u0000\f\u008e\u0001\u0000\u0000\u0000\u000e"+ - "\u0092\u0001\u0000\u0000\u0000\u0010\u009b\u0001\u0000\u0000\u0000\u0012"+ - "\u009e\u0001\u0000\u0000\u0000\u0014\u00b6\u0001\u0000\u0000\u0000\u0016"+ - "\u00bb\u0001\u0000\u0000\u0000\u0018\u00bf\u0001\u0000\u0000\u0000\u001a"+ - "\u00c4\u0001\u0000\u0000\u0000\u001c\u00c9\u0001\u0000\u0000\u0000\u001e"+ - "\u00da\u0001\u0000\u0000\u0000 \u00dc\u0001\u0000\u0000\u0000\"\u00e7"+ - "\u0001\u0000\u0000\u0000$\u00fa\u0001\u0000\u0000\u0000&\u00fc\u0001\u0000"+ - "\u0000\u0000(\u0100\u0001\u0000\u0000\u0000*\u0102\u0001\u0000\u0000\u0000"+ - ",\u0107\u0001\u0000\u0000\u0000.\u0111\u0001\u0000\u0000\u00000\u011a"+ - "\u0001\u0000\u0000\u00002\u0120\u0001\u0000\u0000\u00004\u0124\u0001\u0000"+ - "\u0000\u00006\u012a\u0001\u0000\u0000\u00008\u012d\u0001\u0000\u0000\u0000"+ - ":\u0131\u0001\u0000\u0000\u0000<\u013b\u0001\u0000\u0000\u0000>\u013f"+ - "\u0001\u0000\u0000\u0000@\u0145\u0001\u0000\u0000\u0000B\u0147\u0001\u0000"+ - "\u0000\u0000D\u0149\u0001\u0000\u0000\u0000FH\u0003\u0002\u0001\u0000"+ - "GF\u0001\u0000\u0000\u0000HI\u0001\u0000\u0000\u0000IG\u0001\u0000\u0000"+ - "\u0000IJ\u0001\u0000\u0000\u0000J\u0001\u0001\u0000\u0000\u0000KM\u0005"+ - "\u0003\u0000\u0000LK\u0001\u0000\u0000\u0000LM\u0001\u0000\u0000\u0000"+ - "MN\u0001\u0000\u0000\u0000NO\u0005#\u0000\u0000OP\u0005,\u0000\u0000P"+ - "V\u0005\u001f\u0000\u0000QU\u0003\u0004\u0002\u0000RU\u0003,\u0016\u0000"+ - "SU\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\u0000YZ\u0005\u0004\u0000\u0000Z\\\u0003.\u0017\u0000[Y\u0001"+ - "\u0000\u0000\u0000[\\\u0001\u0000\u0000\u0000\\]\u0001\u0000\u0000\u0000"+ - "]^\u0005 \u0000\u0000^\u0003\u0001\u0000\u0000\u0000_a\u0005\u0003\u0000"+ - "\u0000`_\u0001\u0000\u0000\u0000`a\u0001\u0000\u0000\u0000ab\u0001\u0000"+ - "\u0000\u0000bc\u0005,\u0000\u0000ce\u0005\u001d\u0000\u0000df\u0003\b"+ - "\u0004\u0000ed\u0001\u0000\u0000\u0000ef\u0001\u0000\u0000\u0000fg\u0001"+ - "\u0000\u0000\u0000gh\u0005\u001e\u0000\u0000hi\u0003.\u0017\u0000i\u0005"+ - "\u0001\u0000\u0000\u0000jl\u0005\u0003\u0000\u0000kj\u0001\u0000\u0000"+ - "\u0000kl\u0001\u0000\u0000\u0000lo\u0001\u0000\u0000\u0000mp\u0003B!\u0000"+ - "np\u0005\u0005\u0000\u0000om\u0001\u0000\u0000\u0000on\u0001\u0000\u0000"+ - "\u0000pq\u0001\u0000\u0000\u0000qr\u0005,\u0000\u0000rt\u0005\u001d\u0000"+ - "\u0000su\u0003\b\u0004\u0000ts\u0001\u0000\u0000\u0000tu\u0001\u0000\u0000"+ - "\u0000uv\u0001\u0000\u0000\u0000vw\u0005\u001e\u0000\u0000wx\u0003.\u0017"+ - "\u0000x\u0007\u0001\u0000\u0000\u0000y~\u0003\n\u0005\u0000z{\u0005\""+ - "\u0000\u0000{}\u0003\n\u0005\u0000|z\u0001\u0000\u0000\u0000}\u0080\u0001"+ - "\u0000\u0000\u0000~|\u0001\u0000\u0000\u0000~\u007f\u0001\u0000\u0000"+ - "\u0000\u007f\t\u0001\u0000\u0000\u0000\u0080~\u0001\u0000\u0000\u0000"+ - "\u0081\u0082\u0003B!\u0000\u0082\u0083\u0005,\u0000\u0000\u0083\u000b"+ - "\u0001\u0000\u0000\u0000\u0084\u0086\u0003\u000e\u0007\u0000\u0085\u0084"+ - "\u0001\u0000\u0000\u0000\u0085\u0086\u0001\u0000\u0000\u0000\u0086\u008f"+ - "\u0001\u0000\u0000\u0000\u0087\u008a\u0003\u000e\u0007\u0000\u0088\u0089"+ - "\u0005\"\u0000\u0000\u0089\u008b\u0003\u000e\u0007\u0000\u008a\u0088\u0001"+ - "\u0000\u0000\u0000\u008b\u008c\u0001\u0000\u0000\u0000\u008c\u008a\u0001"+ - "\u0000\u0000\u0000\u008c\u008d\u0001\u0000\u0000\u0000\u008d\u008f\u0001"+ - "\u0000\u0000\u0000\u008e\u0085\u0001\u0000\u0000\u0000\u008e\u0087\u0001"+ - "\u0000\u0000\u0000\u008f\r\u0001\u0000\u0000\u0000\u0090\u0093\u0003\u0010"+ - "\b\u0000\u0091\u0093\u0003\u001e\u000f\u0000\u0092\u0090\u0001\u0000\u0000"+ - "\u0000\u0092\u0091\u0001\u0000\u0000\u0000\u0093\u000f\u0001\u0000\u0000"+ - "\u0000\u0094\u009c\u0005$\u0000\u0000\u0095\u009c\u0003\u0018\f\u0000"+ - "\u0096\u009c\u0003\u0016\u000b\u0000\u0097\u0098\u0005\u001d\u0000\u0000"+ - "\u0098\u0099\u0003\u0010\b\u0000\u0099\u009a\u0005\u001e\u0000\u0000\u009a"+ - "\u009c\u0001\u0000\u0000\u0000\u009b\u0094\u0001\u0000\u0000\u0000\u009b"+ - "\u0095\u0001\u0000\u0000\u0000\u009b\u0096\u0001\u0000\u0000\u0000\u009b"+ - "\u0097\u0001\u0000\u0000\u0000\u009c\u0011\u0001\u0000\u0000\u0000\u009d"+ - "\u009f\u0003<\u001e\u0000\u009e\u009d\u0001\u0000\u0000\u0000\u009e\u009f"+ - "\u0001\u0000\u0000\u0000\u009f\u00a3\u0001\u0000\u0000\u0000\u00a0\u00a2"+ - "\u0003>\u001f\u0000\u00a1\u00a0\u0001\u0000\u0000\u0000\u00a2\u00a5\u0001"+ - "\u0000\u0000\u0000\u00a3\u00a1\u0001\u0000\u0000\u0000\u00a3\u00a4\u0001"+ - "\u0000\u0000\u0000\u00a4\u00a6\u0001\u0000\u0000\u0000\u00a5\u00a3\u0001"+ - "\u0000\u0000\u0000\u00a6\u00a7\u0005,\u0000\u0000\u00a7\u00a8\u0005\u001d"+ - "\u0000\u0000\u00a8\u00a9\u0003\f\u0006\u0000\u00a9\u00aa\u0005\u001e\u0000"+ - "\u0000\u00aa\u0013\u0001\u0000\u0000\u0000\u00ab\u00ac\u0003*\u0015\u0000"+ - "\u00ac\u00ad\u0005!\u0000\u0000\u00ad\u00b7\u0001\u0000\u0000\u0000\u00ae"+ - "\u00b7\u0003,\u0016\u0000\u00af\u00b7\u0003.\u0017\u0000\u00b0\u00b7\u0003"+ - "0\u0018\u0000\u00b1\u00b7\u00032\u0019\u0000\u00b2\u00b3\u0003\u0016\u000b"+ - "\u0000\u00b3\u00b4\u0005!\u0000\u0000\u00b4\u00b7\u0001\u0000\u0000\u0000"+ - "\u00b5\u00b7\u0003@ \u0000\u00b6\u00ab\u0001\u0000\u0000\u0000\u00b6\u00ae"+ - "\u0001\u0000\u0000\u0000\u00b6\u00af\u0001\u0000\u0000\u0000\u00b6\u00b0"+ - "\u0001\u0000\u0000\u0000\u00b6\u00b1\u0001\u0000\u0000\u0000\u00b6\u00b2"+ - "\u0001\u0000\u0000\u0000\u00b6\u00b5\u0001\u0000\u0000\u0000\u00b7\u0015"+ - "\u0001\u0000\u0000\u0000\u00b8\u00bc\u00038\u001c\u0000\u00b9\u00bc\u0003"+ - ":\u001d\u0000\u00ba\u00bc\u0003\u0012\t\u0000\u00bb\u00b8\u0001\u0000"+ - "\u0000\u0000\u00bb\u00b9\u0001\u0000\u0000\u0000\u00bb\u00ba\u0001\u0000"+ - "\u0000\u0000\u00bc\u0017\u0001\u0000\u0000\u0000\u00bd\u00c0\u0005,\u0000"+ - "\u0000\u00be\u00c0\u0003\u001c\u000e\u0000\u00bf\u00bd\u0001\u0000\u0000"+ - "\u0000\u00bf\u00be\u0001\u0000\u0000\u0000\u00c0\u0019\u0001\u0000\u0000"+ - "\u0000\u00c1\u00c5\u0005$\u0000\u0000\u00c2\u00c5\u0003:\u001d\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\u001c\u0000\u0000\u00c7\u001b"+ - "\u0001\u0000\u0000\u0000\u00c8\u00ca\u0003\u001a\r\u0000\u00c9\u00c8\u0001"+ - "\u0000\u0000\u0000\u00ca\u00cb\u0001\u0000\u0000\u0000\u00cb\u00c9\u0001"+ - "\u0000\u0000\u0000\u00cb\u00cc\u0001\u0000\u0000\u0000\u00cc\u00d0\u0001"+ - "\u0000\u0000\u0000\u00cd\u00cf\u0003>\u001f\u0000\u00ce\u00cd\u0001\u0000"+ - "\u0000\u0000\u00cf\u00d2\u0001\u0000\u0000\u0000\u00d0\u00ce\u0001\u0000"+ - "\u0000\u0000\u00d0\u00d1\u0001\u0000\u0000\u0000\u00d1\u00d3\u0001\u0000"+ - "\u0000\u0000\u00d2\u00d0\u0001\u0000\u0000\u0000\u00d3\u00d4\u0005,\u0000"+ - "\u0000\u00d4\u001d\u0001\u0000\u0000\u0000\u00d5\u00db\u0003 \u0010\u0000"+ - "\u00d6\u00db\u0003&\u0013\u0000\u00d7\u00db\u0003D\"\u0000\u00d8\u00d9"+ - "\u0005\u0019\u0000\u0000\u00d9\u00db\u0003\u001e\u000f\u0000\u00da\u00d5"+ - "\u0001\u0000\u0000\u0000\u00da\u00d6\u0001\u0000\u0000\u0000\u00da\u00d7"+ - "\u0001\u0000\u0000\u0000\u00da\u00d8\u0001\u0000\u0000\u0000\u00db\u001f"+ - "\u0001\u0000\u0000\u0000\u00dc\u00dd\u0006\u0010\uffff\uffff\u0000\u00dd"+ - "\u00de\u0003\"\u0011\u0000\u00de\u00e4\u0001\u0000\u0000\u0000\u00df\u00e0"+ - "\n\u0002\u0000\u0000\u00e0\u00e1\u0005\n\u0000\u0000\u00e1\u00e3\u0003"+ - "\"\u0011\u0000\u00e2\u00df\u0001\u0000\u0000\u0000\u00e3\u00e6\u0001\u0000"+ - "\u0000\u0000\u00e4\u00e2\u0001\u0000\u0000\u0000\u00e4\u00e5\u0001\u0000"+ - "\u0000\u0000\u00e5!\u0001\u0000\u0000\u0000\u00e6\u00e4\u0001\u0000\u0000"+ - "\u0000\u00e7\u00e8\u0006\u0011\uffff\uffff\u0000\u00e8\u00e9\u0003$\u0012"+ - "\u0000\u00e9\u00ef\u0001\u0000\u0000\u0000\u00ea\u00eb\n\u0002\u0000\u0000"+ - "\u00eb\u00ec\u0005\t\u0000\u0000\u00ec\u00ee\u0003$\u0012\u0000\u00ed"+ - "\u00ea\u0001\u0000\u0000\u0000\u00ee\u00f1\u0001\u0000\u0000\u0000\u00ef"+ - "\u00ed\u0001\u0000\u0000\u0000\u00ef\u00f0\u0001\u0000\u0000\u0000\u00f0"+ - "#\u0001\u0000\u0000\u0000\u00f1\u00ef\u0001\u0000\u0000\u0000\u00f2\u00fb"+ - "\u0005*\u0000\u0000\u00f3\u00fb\u0005,\u0000\u0000\u00f4\u00fb\u0003\u001c"+ - "\u000e\u0000\u00f5\u00fb\u0003\u0012\t\u0000\u00f6\u00f7\u0005\u001d\u0000"+ - "\u0000\u00f7\u00f8\u0003 \u0010\u0000\u00f8\u00f9\u0005\u001e\u0000\u0000"+ - "\u00f9\u00fb\u0001\u0000\u0000\u0000\u00fa\u00f2\u0001\u0000\u0000\u0000"+ - "\u00fa\u00f3\u0001\u0000\u0000\u0000\u00fa\u00f4\u0001\u0000\u0000\u0000"+ - "\u00fa\u00f5\u0001\u0000\u0000\u0000\u00fa\u00f6\u0001\u0000\u0000\u0000"+ - "\u00fb%\u0001\u0000\u0000\u0000\u00fc\u00fd\u0003\u0010\b\u0000\u00fd"+ - "\u00fe\u0003(\u0014\u0000\u00fe\u00ff\u0003\u000e\u0007\u0000\u00ff\'"+ - "\u0001\u0000\u0000\u0000\u0100\u0101\u0007\u0000\u0000\u0000\u0101)\u0001"+ - "\u0000\u0000\u0000\u0102\u0104\u0005(\u0000\u0000\u0103\u0105\u0003\u000e"+ - "\u0007\u0000\u0104\u0103\u0001\u0000\u0000\u0000\u0104\u0105\u0001\u0000"+ - "\u0000\u0000\u0105+\u0001\u0000\u0000\u0000\u0106\u0108\u0005\u0003\u0000"+ + "\u0002\u001f\u0007\u001f\u0002 \u0007 \u0002!\u0007!\u0002\"\u0007\"\u0002"+ + "#\u0007#\u0001\u0000\u0004\u0000J\b\u0000\u000b\u0000\f\u0000K\u0001\u0001"+ + "\u0003\u0001O\b\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+ + "\u0001\u0001\u0001\u0001\u0005\u0001W\b\u0001\n\u0001\f\u0001Z\t\u0001"+ + "\u0001\u0001\u0001\u0001\u0003\u0001^\b\u0001\u0001\u0001\u0001\u0001"+ + "\u0001\u0002\u0003\u0002c\b\u0002\u0001\u0002\u0001\u0002\u0001\u0002"+ + "\u0003\u0002h\b\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0003"+ + "\u0003\u0003n\b\u0003\u0001\u0003\u0001\u0003\u0003\u0003r\b\u0003\u0001"+ + "\u0003\u0001\u0003\u0001\u0003\u0003\u0003w\b\u0003\u0001\u0003\u0001"+ + "\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001\u0004\u0005\u0004\u007f"+ + "\b\u0004\n\u0004\f\u0004\u0082\t\u0004\u0001\u0005\u0001\u0005\u0001\u0005"+ + "\u0001\u0006\u0003\u0006\u0088\b\u0006\u0001\u0006\u0001\u0006\u0001\u0006"+ + "\u0004\u0006\u008d\b\u0006\u000b\u0006\f\u0006\u008e\u0003\u0006\u0091"+ + "\b\u0006\u0001\u0007\u0001\u0007\u0003\u0007\u0095\b\u0007\u0001\b\u0001"+ + "\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0003\b\u009e\b\b\u0001\t\u0003"+ + "\t\u00a1\b\t\u0001\t\u0005\t\u00a4\b\t\n\t\f\t\u00a7\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\u00ba\b\n\u0001"+ + "\u000b\u0001\u000b\u0001\u000b\u0003\u000b\u00bf\b\u000b\u0001\f\u0001"+ + "\f\u0003\f\u00c3\b\f\u0001\r\u0001\r\u0001\r\u0003\r\u00c8\b\r\u0001\r"+ + "\u0001\r\u0001\u000e\u0004\u000e\u00cd\b\u000e\u000b\u000e\f\u000e\u00ce"+ + "\u0001\u000e\u0005\u000e\u00d2\b\u000e\n\u000e\f\u000e\u00d5\t\u000e\u0001"+ + "\u000e\u0001\u000e\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001"+ + "\u000f\u0003\u000f\u00de\b\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001"+ + "\u0010\u0001\u0010\u0001\u0010\u0005\u0010\u00e6\b\u0010\n\u0010\f\u0010"+ + "\u00e9\t\u0010\u0001\u0011\u0001\u0011\u0001\u0011\u0001\u0011\u0001\u0011"+ + "\u0001\u0011\u0005\u0011\u00f1\b\u0011\n\u0011\f\u0011\u00f4\t\u0011\u0001"+ + "\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0001"+ + "\u0012\u0001\u0012\u0003\u0012\u00fe\b\u0012\u0001\u0013\u0001\u0013\u0001"+ + "\u0013\u0001\u0013\u0001\u0014\u0001\u0014\u0001\u0015\u0001\u0015\u0003"+ + "\u0015\u0108\b\u0015\u0001\u0016\u0003\u0016\u010b\b\u0016\u0001\u0016"+ + "\u0001\u0016\u0001\u0016\u0001\u0016\u0003\u0016\u0111\b\u0016\u0001\u0016"+ + "\u0001\u0016\u0001\u0017\u0001\u0017\u0005\u0017\u0117\b\u0017\n\u0017"+ + "\f\u0017\u011a\t\u0017\u0001\u0017\u0001\u0017\u0001\u0018\u0001\u0018"+ + "\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0019\u0001\u0019"+ + "\u0003\u0019\u0126\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\u001e\u0003\u001e\u013f\b\u001e\u0001\u001e\u0001\u001e\u0001\u001f"+ + "\u0001\u001f\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:<>@BDF\u0000\u0003\u0001\u0000"+ + "\r\u000e\u0002\u0000\b\n..\u0002\u0000\u0003\u0004,-\u0162\u0000I\u0001"+ + "\u0000\u0000\u0000\u0002N\u0001\u0000\u0000\u0000\u0004b\u0001\u0000\u0000"+ + "\u0000\u0006m\u0001\u0000\u0000\u0000\b{\u0001\u0000\u0000\u0000\n\u0083"+ + "\u0001\u0000\u0000\u0000\f\u0090\u0001\u0000\u0000\u0000\u000e\u0094\u0001"+ + "\u0000\u0000\u0000\u0010\u009d\u0001\u0000\u0000\u0000\u0012\u00a0\u0001"+ + "\u0000\u0000\u0000\u0014\u00b9\u0001\u0000\u0000\u0000\u0016\u00be\u0001"+ + "\u0000\u0000\u0000\u0018\u00c2\u0001\u0000\u0000\u0000\u001a\u00c7\u0001"+ + "\u0000\u0000\u0000\u001c\u00cc\u0001\u0000\u0000\u0000\u001e\u00dd\u0001"+ + "\u0000\u0000\u0000 \u00df\u0001\u0000\u0000\u0000\"\u00ea\u0001\u0000"+ + "\u0000\u0000$\u00fd\u0001\u0000\u0000\u0000&\u00ff\u0001\u0000\u0000\u0000"+ + "(\u0103\u0001\u0000\u0000\u0000*\u0105\u0001\u0000\u0000\u0000,\u010a"+ + "\u0001\u0000\u0000\u0000.\u0114\u0001\u0000\u0000\u00000\u011d\u0001\u0000"+ + "\u0000\u00002\u0123\u0001\u0000\u0000\u00004\u0127\u0001\u0000\u0000\u0000"+ + "6\u012d\u0001\u0000\u0000\u00008\u0130\u0001\u0000\u0000\u0000:\u0134"+ + "\u0001\u0000\u0000\u0000<\u013e\u0001\u0000\u0000\u0000>\u0142\u0001\u0000"+ + "\u0000\u0000@\u0148\u0001\u0000\u0000\u0000B\u014a\u0001\u0000\u0000\u0000"+ + "D\u014c\u0001\u0000\u0000\u0000F\u014e\u0001\u0000\u0000\u0000HJ\u0003"+ + "\u0002\u0001\u0000IH\u0001\u0000\u0000\u0000JK\u0001\u0000\u0000\u0000"+ + "KI\u0001\u0000\u0000\u0000KL\u0001\u0000\u0000\u0000L\u0001\u0001\u0000"+ + "\u0000\u0000MO\u0005\u0005\u0000\u0000NM\u0001\u0000\u0000\u0000NO\u0001"+ + "\u0000\u0000\u0000OP\u0001\u0000\u0000\u0000PQ\u0005%\u0000\u0000QR\u0005"+ + ".\u0000\u0000RX\u0005!\u0000\u0000SW\u0003\u0004\u0002\u0000TW\u0003,"+ + "\u0016\u0000UW\u0003\u0006\u0003\u0000VS\u0001\u0000\u0000\u0000VT\u0001"+ + "\u0000\u0000\u0000VU\u0001\u0000\u0000\u0000WZ\u0001\u0000\u0000\u0000"+ + "XV\u0001\u0000\u0000\u0000XY\u0001\u0000\u0000\u0000Y]\u0001\u0000\u0000"+ + "\u0000ZX\u0001\u0000\u0000\u0000[\\\u0005\u0006\u0000\u0000\\^\u0003."+ + "\u0017\u0000][\u0001\u0000\u0000\u0000]^\u0001\u0000\u0000\u0000^_\u0001"+ + "\u0000\u0000\u0000_`\u0005\"\u0000\u0000`\u0003\u0001\u0000\u0000\u0000"+ + "ac\u0005\u0005\u0000\u0000ba\u0001\u0000\u0000\u0000bc\u0001\u0000\u0000"+ + "\u0000cd\u0001\u0000\u0000\u0000de\u0005.\u0000\u0000eg\u0005\u001f\u0000"+ + "\u0000fh\u0003\b\u0004\u0000gf\u0001\u0000\u0000\u0000gh\u0001\u0000\u0000"+ + "\u0000hi\u0001\u0000\u0000\u0000ij\u0005 \u0000\u0000jk\u0003.\u0017\u0000"+ + "k\u0005\u0001\u0000\u0000\u0000ln\u0005\u0005\u0000\u0000ml\u0001\u0000"+ + "\u0000\u0000mn\u0001\u0000\u0000\u0000nq\u0001\u0000\u0000\u0000or\u0003"+ + "B!\u0000pr\u0005\u0007\u0000\u0000qo\u0001\u0000\u0000\u0000qp\u0001\u0000"+ + "\u0000\u0000rs\u0001\u0000\u0000\u0000st\u0005.\u0000\u0000tv\u0005\u001f"+ + "\u0000\u0000uw\u0003\b\u0004\u0000vu\u0001\u0000\u0000\u0000vw\u0001\u0000"+ + "\u0000\u0000wx\u0001\u0000\u0000\u0000xy\u0005 \u0000\u0000yz\u0003.\u0017"+ + "\u0000z\u0007\u0001\u0000\u0000\u0000{\u0080\u0003\n\u0005\u0000|}\u0005"+ + "$\u0000\u0000}\u007f\u0003\n\u0005\u0000~|\u0001\u0000\u0000\u0000\u007f"+ + "\u0082\u0001\u0000\u0000\u0000\u0080~\u0001\u0000\u0000\u0000\u0080\u0081"+ + "\u0001\u0000\u0000\u0000\u0081\t\u0001\u0000\u0000\u0000\u0082\u0080\u0001"+ + "\u0000\u0000\u0000\u0083\u0084\u0003B!\u0000\u0084\u0085\u0005.\u0000"+ + "\u0000\u0085\u000b\u0001\u0000\u0000\u0000\u0086\u0088\u0003\u000e\u0007"+ + "\u0000\u0087\u0086\u0001\u0000\u0000\u0000\u0087\u0088\u0001\u0000\u0000"+ + "\u0000\u0088\u0091\u0001\u0000\u0000\u0000\u0089\u008c\u0003\u000e\u0007"+ + "\u0000\u008a\u008b\u0005$\u0000\u0000\u008b\u008d\u0003\u000e\u0007\u0000"+ + "\u008c\u008a\u0001\u0000\u0000\u0000\u008d\u008e\u0001\u0000\u0000\u0000"+ + "\u008e\u008c\u0001\u0000\u0000\u0000\u008e\u008f\u0001\u0000\u0000\u0000"+ + "\u008f\u0091\u0001\u0000\u0000\u0000\u0090\u0087\u0001\u0000\u0000\u0000"+ + "\u0090\u0089\u0001\u0000\u0000\u0000\u0091\r\u0001\u0000\u0000\u0000\u0092"+ + "\u0095\u0003\u0010\b\u0000\u0093\u0095\u0003\u001e\u000f\u0000\u0094\u0092"+ + "\u0001\u0000\u0000\u0000\u0094\u0093\u0001\u0000\u0000\u0000\u0095\u000f"+ + "\u0001\u0000\u0000\u0000\u0096\u009e\u0005&\u0000\u0000\u0097\u009e\u0003"+ + "\u0018\f\u0000\u0098\u009e\u0003\u0016\u000b\u0000\u0099\u009a\u0005\u001f"+ + "\u0000\u0000\u009a\u009b\u0003\u0010\b\u0000\u009b\u009c\u0005 \u0000"+ + "\u0000\u009c\u009e\u0001\u0000\u0000\u0000\u009d\u0096\u0001\u0000\u0000"+ + "\u0000\u009d\u0097\u0001\u0000\u0000\u0000\u009d\u0098\u0001\u0000\u0000"+ + "\u0000\u009d\u0099\u0001\u0000\u0000\u0000\u009e\u0011\u0001\u0000\u0000"+ + "\u0000\u009f\u00a1\u0003<\u001e\u0000\u00a0\u009f\u0001\u0000\u0000\u0000"+ + "\u00a0\u00a1\u0001\u0000\u0000\u0000\u00a1\u00a5\u0001\u0000\u0000\u0000"+ + "\u00a2\u00a4\u0003>\u001f\u0000\u00a3\u00a2\u0001\u0000\u0000\u0000\u00a4"+ + "\u00a7\u0001\u0000\u0000\u0000\u00a5\u00a3\u0001\u0000\u0000\u0000\u00a5"+ + "\u00a6\u0001\u0000\u0000\u0000\u00a6\u00a8\u0001\u0000\u0000\u0000\u00a7"+ + "\u00a5\u0001\u0000\u0000\u0000\u00a8\u00a9\u0005.\u0000\u0000\u00a9\u00aa"+ + "\u0005\u001f\u0000\u0000\u00aa\u00ab\u0003\f\u0006\u0000\u00ab\u00ac\u0005"+ + " \u0000\u0000\u00ac\u0013\u0001\u0000\u0000\u0000\u00ad\u00ae\u0003*\u0015"+ + "\u0000\u00ae\u00af\u0005#\u0000\u0000\u00af\u00ba\u0001\u0000\u0000\u0000"+ + "\u00b0\u00ba\u0003,\u0016\u0000\u00b1\u00ba\u0003.\u0017\u0000\u00b2\u00ba"+ + "\u00030\u0018\u0000\u00b3\u00ba\u00032\u0019\u0000\u00b4\u00ba\u0003F"+ + "#\u0000\u00b5\u00b6\u0003\u0016\u000b\u0000\u00b6\u00b7\u0005#\u0000\u0000"+ + "\u00b7\u00ba\u0001\u0000\u0000\u0000\u00b8\u00ba\u0003@ \u0000\u00b9\u00ad"+ + "\u0001\u0000\u0000\u0000\u00b9\u00b0\u0001\u0000\u0000\u0000\u00b9\u00b1"+ + "\u0001\u0000\u0000\u0000\u00b9\u00b2\u0001\u0000\u0000\u0000\u00b9\u00b3"+ + "\u0001\u0000\u0000\u0000\u00b9\u00b4\u0001\u0000\u0000\u0000\u00b9\u00b5"+ + "\u0001\u0000\u0000\u0000\u00b9\u00b8\u0001\u0000\u0000\u0000\u00ba\u0015"+ + "\u0001\u0000\u0000\u0000\u00bb\u00bf\u00038\u001c\u0000\u00bc\u00bf\u0003"+ + ":\u001d\u0000\u00bd\u00bf\u0003\u0012\t\u0000\u00be\u00bb\u0001\u0000"+ + "\u0000\u0000\u00be\u00bc\u0001\u0000\u0000\u0000\u00be\u00bd\u0001\u0000"+ + "\u0000\u0000\u00bf\u0017\u0001\u0000\u0000\u0000\u00c0\u00c3\u0005.\u0000"+ + "\u0000\u00c1\u00c3\u0003\u001c\u000e\u0000\u00c2\u00c0\u0001\u0000\u0000"+ + "\u0000\u00c2\u00c1\u0001\u0000\u0000\u0000\u00c3\u0019\u0001\u0000\u0000"+ + "\u0000\u00c4\u00c8\u0005&\u0000\u0000\u00c5\u00c8\u0003:\u001d\u0000\u00c6"+ + "\u00c8\u0005.\u0000\u0000\u00c7\u00c4\u0001\u0000\u0000\u0000\u00c7\u00c5"+ + "\u0001\u0000\u0000\u0000\u00c7\u00c6\u0001\u0000\u0000\u0000\u00c8\u00c9"+ + "\u0001\u0000\u0000\u0000\u00c9\u00ca\u0005\u001e\u0000\u0000\u00ca\u001b"+ + "\u0001\u0000\u0000\u0000\u00cb\u00cd\u0003\u001a\r\u0000\u00cc\u00cb\u0001"+ + "\u0000\u0000\u0000\u00cd\u00ce\u0001\u0000\u0000\u0000\u00ce\u00cc\u0001"+ + "\u0000\u0000\u0000\u00ce\u00cf\u0001\u0000\u0000\u0000\u00cf\u00d3\u0001"+ + "\u0000\u0000\u0000\u00d0\u00d2\u0003>\u001f\u0000\u00d1\u00d0\u0001\u0000"+ + "\u0000\u0000\u00d2\u00d5\u0001\u0000\u0000\u0000\u00d3\u00d1\u0001\u0000"+ + "\u0000\u0000\u00d3\u00d4\u0001\u0000\u0000\u0000\u00d4\u00d6\u0001\u0000"+ + "\u0000\u0000\u00d5\u00d3\u0001\u0000\u0000\u0000\u00d6\u00d7\u0005.\u0000"+ + "\u0000\u00d7\u001d\u0001\u0000\u0000\u0000\u00d8\u00de\u0003 \u0010\u0000"+ + "\u00d9\u00de\u0003&\u0013\u0000\u00da\u00de\u0003D\"\u0000\u00db\u00dc"+ + "\u0005\u001b\u0000\u0000\u00dc\u00de\u0003\u001e\u000f\u0000\u00dd\u00d8"+ + "\u0001\u0000\u0000\u0000\u00dd\u00d9\u0001\u0000\u0000\u0000\u00dd\u00da"+ + "\u0001\u0000\u0000\u0000\u00dd\u00db\u0001\u0000\u0000\u0000\u00de\u001f"+ + "\u0001\u0000\u0000\u0000\u00df\u00e0\u0006\u0010\uffff\uffff\u0000\u00e0"+ + "\u00e1\u0003\"\u0011\u0000\u00e1\u00e7\u0001\u0000\u0000\u0000\u00e2\u00e3"+ + "\n\u0002\u0000\u0000\u00e3\u00e4\u0005\f\u0000\u0000\u00e4\u00e6\u0003"+ + "\"\u0011\u0000\u00e5\u00e2\u0001\u0000\u0000\u0000\u00e6\u00e9\u0001\u0000"+ + "\u0000\u0000\u00e7\u00e5\u0001\u0000\u0000\u0000\u00e7\u00e8\u0001\u0000"+ + "\u0000\u0000\u00e8!\u0001\u0000\u0000\u0000\u00e9\u00e7\u0001\u0000\u0000"+ + "\u0000\u00ea\u00eb\u0006\u0011\uffff\uffff\u0000\u00eb\u00ec\u0003$\u0012"+ + "\u0000\u00ec\u00f2\u0001\u0000\u0000\u0000\u00ed\u00ee\n\u0002\u0000\u0000"+ + "\u00ee\u00ef\u0005\u000b\u0000\u0000\u00ef\u00f1\u0003$\u0012\u0000\u00f0"+ + "\u00ed\u0001\u0000\u0000\u0000\u00f1\u00f4\u0001\u0000\u0000\u0000\u00f2"+ + "\u00f0\u0001\u0000\u0000\u0000\u00f2\u00f3\u0001\u0000\u0000\u0000\u00f3"+ + "#\u0001\u0000\u0000\u0000\u00f4\u00f2\u0001\u0000\u0000\u0000\u00f5\u00fe"+ + "\u0005,\u0000\u0000\u00f6\u00fe\u0005.\u0000\u0000\u00f7\u00fe\u0003\u001c"+ + "\u000e\u0000\u00f8\u00fe\u0003\u0012\t\u0000\u00f9\u00fa\u0005\u001f\u0000"+ + "\u0000\u00fa\u00fb\u0003 \u0010\u0000\u00fb\u00fc\u0005 \u0000\u0000\u00fc"+ + "\u00fe\u0001\u0000\u0000\u0000\u00fd\u00f5\u0001\u0000\u0000\u0000\u00fd"+ + "\u00f6\u0001\u0000\u0000\u0000\u00fd\u00f7\u0001\u0000\u0000\u0000\u00fd"+ + "\u00f8\u0001\u0000\u0000\u0000\u00fd\u00f9\u0001\u0000\u0000\u0000\u00fe"+ + "%\u0001\u0000\u0000\u0000\u00ff\u0100\u0003\u0010\b\u0000\u0100\u0101"+ + "\u0003(\u0014\u0000\u0101\u0102\u0003\u000e\u0007\u0000\u0102\'\u0001"+ + "\u0000\u0000\u0000\u0103\u0104\u0007\u0000\u0000\u0000\u0104)\u0001\u0000"+ + "\u0000\u0000\u0105\u0107\u0005*\u0000\u0000\u0106\u0108\u0003\u000e\u0007"+ "\u0000\u0107\u0106\u0001\u0000\u0000\u0000\u0107\u0108\u0001\u0000\u0000"+ - "\u0000\u0108\u0109\u0001\u0000\u0000\u0000\u0109\u010a\u0003B!\u0000\u010a"+ - "\u010d\u0005,\u0000\u0000\u010b\u010c\u0005\r\u0000\u0000\u010c\u010e"+ - "\u0003\u000e\u0007\u0000\u010d\u010b\u0001\u0000\u0000\u0000\u010d\u010e"+ - "\u0001\u0000\u0000\u0000\u010e\u010f\u0001\u0000\u0000\u0000\u010f\u0110"+ - "\u0005!\u0000\u0000\u0110-\u0001\u0000\u0000\u0000\u0111\u0115\u0005\u001f"+ - "\u0000\u0000\u0112\u0114\u0003\u0014\n\u0000\u0113\u0112\u0001\u0000\u0000"+ - "\u0000\u0114\u0117\u0001\u0000\u0000\u0000\u0115\u0113\u0001\u0000\u0000"+ - "\u0000\u0115\u0116\u0001\u0000\u0000\u0000\u0116\u0118\u0001\u0000\u0000"+ - "\u0000\u0117\u0115\u0001\u0000\u0000\u0000\u0118\u0119\u0005 \u0000\u0000"+ - "\u0119/\u0001\u0000\u0000\u0000\u011a\u011b\u0005%\u0000\u0000\u011b\u011c"+ - "\u0005\u001d\u0000\u0000\u011c\u011d\u0003\u000e\u0007\u0000\u011d\u011e"+ - "\u0005\u001e\u0000\u0000\u011e\u011f\u0003\u0014\n\u0000\u011f1\u0001"+ - "\u0000\u0000\u0000\u0120\u0122\u00034\u001a\u0000\u0121\u0123\u00036\u001b"+ - "\u0000\u0122\u0121\u0001\u0000\u0000\u0000\u0122\u0123\u0001\u0000\u0000"+ - "\u0000\u01233\u0001\u0000\u0000\u0000\u0124\u0125\u0005&\u0000\u0000\u0125"+ - "\u0126\u0005\u001d\u0000\u0000\u0126\u0127\u0003\u000e\u0007\u0000\u0127"+ - "\u0128\u0005\u001e\u0000\u0000\u0128\u0129\u0003\u0014\n\u0000\u01295"+ - "\u0001\u0000\u0000\u0000\u012a\u012b\u0005\'\u0000\u0000\u012b\u012c\u0003"+ - "\u0014\n\u0000\u012c7\u0001\u0000\u0000\u0000\u012d\u012e\u0003\u0018"+ - "\f\u0000\u012e\u012f\u0005\r\u0000\u0000\u012f\u0130\u0003\u000e\u0007"+ - "\u0000\u01309\u0001\u0000\u0000\u0000\u0131\u0132\u0005)\u0000\u0000\u0132"+ - "\u0133\u0005,\u0000\u0000\u0133\u0134\u0005\u001d\u0000\u0000\u0134\u0135"+ - "\u0003\f\u0006\u0000\u0135\u0136\u0005\u001e\u0000\u0000\u0136;\u0001"+ - "\u0000\u0000\u0000\u0137\u013c\u0005$\u0000\u0000\u0138\u013c\u0003\u001c"+ - "\u000e\u0000\u0139\u013c\u0003:\u001d\u0000\u013a\u013c\u0005,\u0000\u0000"+ - "\u013b\u0137\u0001\u0000\u0000\u0000\u013b\u0138\u0001\u0000\u0000\u0000"+ - "\u013b\u0139\u0001\u0000\u0000\u0000\u013b\u013a\u0001\u0000\u0000\u0000"+ - "\u013c\u013d\u0001\u0000\u0000\u0000\u013d\u013e\u0005\u001c\u0000\u0000"+ - "\u013e=\u0001\u0000\u0000\u0000\u013f\u0140\u0005,\u0000\u0000\u0140\u0141"+ - "\u0005\u001d\u0000\u0000\u0141\u0142\u0003\f\u0006\u0000\u0142\u0143\u0005"+ - "\u001e\u0000\u0000\u0143\u0144\u0005\u001c\u0000\u0000\u0144?\u0001\u0000"+ - "\u0000\u0000\u0145\u0146\u0005!\u0000\u0000\u0146A\u0001\u0000\u0000\u0000"+ - "\u0147\u0148\u0007\u0001\u0000\u0000\u0148C\u0001\u0000\u0000\u0000\u0149"+ - "\u014a\u0007\u0002\u0000\u0000\u014aE\u0001\u0000\u0000\u0000\"ILTV[`"+ - "ekot~\u0085\u008c\u008e\u0092\u009b\u009e\u00a3\u00b6\u00bb\u00bf\u00c4"+ - "\u00cb\u00d0\u00da\u00e4\u00ef\u00fa\u0104\u0107\u010d\u0115\u0122\u013b"; + "\u0000\u0108+\u0001\u0000\u0000\u0000\u0109\u010b\u0005\u0005\u0000\u0000"+ + "\u010a\u0109\u0001\u0000\u0000\u0000\u010a\u010b\u0001\u0000\u0000\u0000"+ + "\u010b\u010c\u0001\u0000\u0000\u0000\u010c\u010d\u0003B!\u0000\u010d\u0110"+ + "\u0005.\u0000\u0000\u010e\u010f\u0005\u000f\u0000\u0000\u010f\u0111\u0003"+ + "\u000e\u0007\u0000\u0110\u010e\u0001\u0000\u0000\u0000\u0110\u0111\u0001"+ + "\u0000\u0000\u0000\u0111\u0112\u0001\u0000\u0000\u0000\u0112\u0113\u0005"+ + "#\u0000\u0000\u0113-\u0001\u0000\u0000\u0000\u0114\u0118\u0005!\u0000"+ + "\u0000\u0115\u0117\u0003\u0014\n\u0000\u0116\u0115\u0001\u0000\u0000\u0000"+ + "\u0117\u011a\u0001\u0000\u0000\u0000\u0118\u0116\u0001\u0000\u0000\u0000"+ + "\u0118\u0119\u0001\u0000\u0000\u0000\u0119\u011b\u0001\u0000\u0000\u0000"+ + "\u011a\u0118\u0001\u0000\u0000\u0000\u011b\u011c\u0005\"\u0000\u0000\u011c"+ + "/\u0001\u0000\u0000\u0000\u011d\u011e\u0005\'\u0000\u0000\u011e\u011f"+ + "\u0005\u001f\u0000\u0000\u011f\u0120\u0003\u000e\u0007\u0000\u0120\u0121"+ + "\u0005 \u0000\u0000\u0121\u0122\u0003\u0014\n\u0000\u01221\u0001\u0000"+ + "\u0000\u0000\u0123\u0125\u00034\u001a\u0000\u0124\u0126\u00036\u001b\u0000"+ + "\u0125\u0124\u0001\u0000\u0000\u0000\u0125\u0126\u0001\u0000\u0000\u0000"+ + "\u01263\u0001\u0000\u0000\u0000\u0127\u0128\u0005(\u0000\u0000\u0128\u0129"+ + "\u0005\u001f\u0000\u0000\u0129\u012a\u0003\u000e\u0007\u0000\u012a\u012b"+ + "\u0005 \u0000\u0000\u012b\u012c\u0003\u0014\n\u0000\u012c5\u0001\u0000"+ + "\u0000\u0000\u012d\u012e\u0005)\u0000\u0000\u012e\u012f\u0003\u0014\n"+ + "\u0000\u012f7\u0001\u0000\u0000\u0000\u0130\u0131\u0003\u0018\f\u0000"+ + "\u0131\u0132\u0005\u000f\u0000\u0000\u0132\u0133\u0003\u000e\u0007\u0000"+ + "\u01339\u0001\u0000\u0000\u0000\u0134\u0135\u0005+\u0000\u0000\u0135\u0136"+ + "\u0005.\u0000\u0000\u0136\u0137\u0005\u001f\u0000\u0000\u0137\u0138\u0003"+ + "\f\u0006\u0000\u0138\u0139\u0005 \u0000\u0000\u0139;\u0001\u0000\u0000"+ + "\u0000\u013a\u013f\u0005&\u0000\u0000\u013b\u013f\u0003\u001c\u000e\u0000"+ + "\u013c\u013f\u0003:\u001d\u0000\u013d\u013f\u0005.\u0000\u0000\u013e\u013a"+ + "\u0001\u0000\u0000\u0000\u013e\u013b\u0001\u0000\u0000\u0000\u013e\u013c"+ + "\u0001\u0000\u0000\u0000\u013e\u013d\u0001\u0000\u0000\u0000\u013f\u0140"+ + "\u0001\u0000\u0000\u0000\u0140\u0141\u0005\u001e\u0000\u0000\u0141=\u0001"+ + "\u0000\u0000\u0000\u0142\u0143\u0005.\u0000\u0000\u0143\u0144\u0005\u001f"+ + "\u0000\u0000\u0144\u0145\u0003\f\u0006\u0000\u0145\u0146\u0005 \u0000"+ + "\u0000\u0146\u0147\u0005\u001e\u0000\u0000\u0147?\u0001\u0000\u0000\u0000"+ + "\u0148\u0149\u0005#\u0000\u0000\u0149A\u0001\u0000\u0000\u0000\u014a\u014b"+ + "\u0007\u0001\u0000\u0000\u014bC\u0001\u0000\u0000\u0000\u014c\u014d\u0007"+ + "\u0002\u0000\u0000\u014dE\u0001\u0000\u0000\u0000\u014e\u014f\u0005\u0001"+ + "\u0000\u0000\u014f\u0150\u0005.\u0000\u0000\u0150\u0151\u0005\u0002\u0000"+ + "\u0000\u0151G\u0001\u0000\u0000\u0000\"KNVX]bgmqv\u0080\u0087\u008e\u0090"+ + "\u0094\u009d\u00a0\u00a5\u00b9\u00be\u00c2\u00c7\u00ce\u00d3\u00dd\u00e7"+ + "\u00f2\u00fd\u0107\u010a\u0110\u0118\u0125\u013e"; 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 7d5bd62..085376c 100644 --- a/src/main/java/gen/DecafVisitor.java +++ b/src/main/java/gen/DecafVisitor.java @@ -220,4 +220,10 @@ public interface DecafVisitor extends ParseTreeVisitor { * @return the visitor result */ T visitValue(DecafParser.ValueContext ctx); + /** + * Visit a parse tree produced by {@link DecafParser#print}. + * @param ctx the parse tree + * @return the visitor result + */ + T visitPrint(DecafParser.PrintContext ctx); } \ No newline at end of file