forked from JavaTX/JavaCompilerCore
4075 lines
171 KiB
Java
4075 lines
171 KiB
Java
// created by jay 0.7 (c) 1998 Axel.Schreiner@informatik.uni-osnabrueck.de
|
|
|
|
// line 2 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
|
|
/*
|
|
Backup von JavaParser.jay 10.April 17 Uhr
|
|
*/
|
|
|
|
package de.dhbwstuttgart.parser;
|
|
|
|
import de.dhbwstuttgart.core.AClassOrInterface;
|
|
import de.dhbwstuttgart.syntaxtree.Class;
|
|
import de.dhbwstuttgart.logger.Section;
|
|
import de.dhbwstuttgart.syntaxtree.ImportDeclarations;
|
|
import de.dhbwstuttgart.syntaxtree.Interface;
|
|
import de.dhbwstuttgart.syntaxtree.SourceFile;
|
|
import de.dhbwstuttgart.syntaxtree.misc.UsedId;
|
|
import de.dhbwstuttgart.typeinference.Pair;
|
|
import de.dhbwstuttgart.syntaxtree.type.Type;
|
|
import de.dhbwstuttgart.syntaxtree.type.Void;
|
|
import de.dhbwstuttgart.*;
|
|
import de.dhbwstuttgart.syntaxtree.*;
|
|
import de.dhbwstuttgart.syntaxtree.misc.*;
|
|
import de.dhbwstuttgart.syntaxtree.modifier.*;
|
|
import de.dhbwstuttgart.syntaxtree.operator.*;
|
|
import de.dhbwstuttgart.syntaxtree.type.*;
|
|
import de.dhbwstuttgart.syntaxtree.statement.*;
|
|
import java.util.Vector;
|
|
|
|
public class JavaParser{
|
|
public Vector path = new Vector();
|
|
|
|
//PL 05-07-30 eingefuegt. ANFANG
|
|
private Vector<Type> containedTypes = new Vector<Type>();
|
|
private Vector<UsedId> usedIdsToCheck = new Vector<UsedId>();
|
|
//Vektor aller Typdeklarationen die in aktueller Klasse vorkommen.
|
|
//wird nach Beendigung der Klasse des Attributs der jeweiligen
|
|
//Klasse zugeordnet
|
|
//nach dem Parsen wird mit wandleGeneric2RefType die
|
|
//die RefTypes gesetzt.
|
|
void initContainedTypes() {
|
|
this.containedTypes = new Vector<Type>();
|
|
}
|
|
void initUsedIdsToCheck() {
|
|
this.usedIdsToCheck = new Vector<UsedId>();
|
|
}
|
|
//PL 05-07-30 eingefuegt. ENDE
|
|
|
|
//LUAR 07-05-29 Anfang für Wildcard Test
|
|
public Vector<Pair> testPair = new Vector<Pair>();
|
|
//LUAR 07-05-29 Ende
|
|
// line 53 "-"
|
|
// %token constants
|
|
//{ //ergaenzt PL 23.01.01 wieder entfernt 21.12.01
|
|
public static final int ABSTRACT = 257;
|
|
public static final int BOOLEAN = 258;
|
|
public static final int BREAK = 259;
|
|
public static final int CASE = 260;
|
|
public static final int CATCH = 261;
|
|
public static final int CHAR = 262;
|
|
public static final int CLASS = 263;
|
|
public static final int CONTINUE = 264;
|
|
public static final int DEFAULT = 265;
|
|
public static final int DO = 266;
|
|
public static final int ELSE = 267;
|
|
public static final int EXTENDS = 268;
|
|
public static final int FINAL = 269;
|
|
public static final int FINALLY = 270;
|
|
public static final int FOR = 271;
|
|
public static final int IF = 272;
|
|
public static final int INSTANCEOF = 273;
|
|
public static final int INT = 274;
|
|
public static final int NEW = 275;
|
|
public static final int PRIVATE = 276;
|
|
public static final int PROTECTED = 277;
|
|
public static final int PUBLIC = 278;
|
|
public static final int PACKAGE = 279;
|
|
public static final int IMPORT = 280;
|
|
public static final int INTERFACE = 281;
|
|
public static final int IMPLEMENTS = 282;
|
|
public static final int RETURN = 283;
|
|
public static final int STATIC = 284;
|
|
public static final int SUPER = 285;
|
|
public static final int SWITCH = 286;
|
|
public static final int THIS = 287;
|
|
public static final int THROW = 288;
|
|
public static final int THROWS = 289;
|
|
public static final int TRY = 290;
|
|
public static final int VOID = 291;
|
|
public static final int WHILE = 292;
|
|
public static final int INTLITERAL = 293;
|
|
public static final int LONGLITERAL = 294;
|
|
public static final int DOUBLELITERAL = 295;
|
|
public static final int FLOATLITERAL = 296;
|
|
public static final int BOOLLITERAL = 297;
|
|
public static final int JNULL = 298;
|
|
public static final int CHARLITERAL = 299;
|
|
public static final int STRINGLITERAL = 300;
|
|
public static final int IDENTIFIER = 301;
|
|
public static final int EQUAL = 302;
|
|
public static final int LESSEQUAL = 303;
|
|
public static final int GREATEREQUAL = 304;
|
|
public static final int NOTEQUAL = 305;
|
|
public static final int LOGICALOR = 306;
|
|
public static final int LOGICALAND = 307;
|
|
public static final int INCREMENT = 308;
|
|
public static final int DECREMENT = 309;
|
|
public static final int SHIFTLEFT = 310;
|
|
public static final int SHIFTRIGHT = 311;
|
|
public static final int UNSIGNEDSHIFTRIGHT = 312;
|
|
public static final int SIGNEDSHIFTRIGHT = 313;
|
|
public static final int PLUSEQUAL = 314;
|
|
public static final int MINUSEQUAL = 315;
|
|
public static final int TIMESEQUAL = 316;
|
|
public static final int DIVIDEEQUAL = 317;
|
|
public static final int ANDEQUAL = 318;
|
|
public static final int OREQUAL = 319;
|
|
public static final int XOREQUAL = 320;
|
|
public static final int MODULOEQUAL = 321;
|
|
public static final int SHIFTLEFTEQUAL = 322;
|
|
public static final int SIGNEDSHIFTRIGHTEQUAL = 323;
|
|
public static final int UNSIGNEDSHIFTRIGHTEQUAL = 324;
|
|
public static final int BRACE = 325;
|
|
public static final int RELOP = 326;
|
|
public static final int OP = 327;
|
|
public static final int EOF = 328;
|
|
public static final int LAMBDAASSIGNMENT = 329;
|
|
public static final int ENDOFGENERICVARDECLARATION = 330;
|
|
public static final int yyErrorCode = 256;
|
|
|
|
/** thrown for irrecoverable syntax errors and stack overflow.
|
|
*/
|
|
public static class yyException extends java.lang.Exception {
|
|
public Token token;
|
|
public yyException (String message, Token token) {
|
|
super(message);
|
|
this.token=token;
|
|
}
|
|
}
|
|
|
|
/** must be implemented by a scanner object to supply input to the parser.
|
|
*/
|
|
public interface yyInput {
|
|
/** move on to next token.
|
|
@return false if positioned beyond tokens.
|
|
@throws IOException on input error.
|
|
*/
|
|
boolean advance () throws java.io.IOException;
|
|
/** classifies current token.
|
|
Should not be called if advance() returned false.
|
|
@return current %token or single character.
|
|
*/
|
|
int token ();
|
|
/** associated with current token.
|
|
Should not be called if advance() returned false.
|
|
@return value for token().
|
|
*/
|
|
Object value ();
|
|
}
|
|
|
|
/** simplified error message.
|
|
@see <a href="#yyerror(java.lang.String, java.lang.String[])">yyerror</a>
|
|
*/
|
|
public void yyerror (String message) {
|
|
yyerror(message, null);
|
|
}
|
|
|
|
/** (syntax) error message.
|
|
Can be overwritten to control message format.
|
|
@param message text to be displayed.
|
|
@param expected vector of acceptable tokens, if available.
|
|
*/
|
|
public String yyerror (String message, String[] expected) {
|
|
if (expected != null && expected.length > 0) {
|
|
System.err.print(message+", expecting");
|
|
message+=", expecting";
|
|
for (int n = 0; n < expected.length; ++ n){
|
|
System.err.print(" "+expected[n]);
|
|
message+=" "+expected[n];}
|
|
System.err.println();
|
|
return message;
|
|
} else{
|
|
System.err.println(message);
|
|
return message;}
|
|
}
|
|
|
|
/** debugging support, requires the package jay.yydebug.
|
|
Set to null to suppress debugging messages.
|
|
*/
|
|
//t protected jay.yydebug.yyDebug yydebug;
|
|
|
|
protected static final int yyFinal = 15;
|
|
//t public static final String yyRule [] = {
|
|
//t "$accept : compilationunit",
|
|
//t "compilationunit : typedeclarations",
|
|
//t "compilationunit : importdeclarations typedeclarations",
|
|
//t "compilationunit : packagedeclaration importdeclarations typedeclarations",
|
|
//t "compilationunit : packagedeclaration typedeclarations",
|
|
//t "compilationunit : type type compilationunit",
|
|
//t "packagedeclaration : PACKAGE name ';'",
|
|
//t "importdeclarations : importdeclaration",
|
|
//t "importdeclarations : importdeclarations importdeclaration",
|
|
//t "importdeclaration : IMPORT importqualifiedname ';'",
|
|
//t "typedeclarations : typedeclaration",
|
|
//t "typedeclarations : typedeclarations typedeclaration",
|
|
//t "name : qualifiedname",
|
|
//t "name : simplename",
|
|
//t "typedeclaration : classdeclaration",
|
|
//t "typedeclaration : interfacedeclaration",
|
|
//t "qualifiedname : name '.' IDENTIFIER",
|
|
//t "importqualifiedname : name '.' IDENTIFIER",
|
|
//t "importqualifiedname : name '.' '*'",
|
|
//t "simplename : IDENTIFIER",
|
|
//t "classdeclaration : CLASS classidentifier classbody",
|
|
//t "classdeclaration : modifiers CLASS classidentifier classbody",
|
|
//t "classdeclaration : CLASS classidentifier super classbody",
|
|
//t "classdeclaration : modifiers CLASS classidentifier super classbody",
|
|
//t "classdeclaration : CLASS classidentifier interfaces classbody",
|
|
//t "classdeclaration : modifiers CLASS classidentifier interfaces classbody",
|
|
//t "classdeclaration : CLASS classidentifier super interfaces classbody",
|
|
//t "classdeclaration : modifiers CLASS classidentifier super interfaces classbody",
|
|
//t "interfaceidentifier : IDENTIFIER",
|
|
//t "interfaceidentifier : IDENTIFIER '<' boundedClassParameters '>'",
|
|
//t "classidentifier : IDENTIFIER",
|
|
//t "classidentifier : IDENTIFIER '<' boundedClassParameters '>'",
|
|
//t "interfacedeclaration : INTERFACE interfaceidentifier interfacebody",
|
|
//t "interfacedeclaration : modifiers INTERFACE interfaceidentifier interfacebody",
|
|
//t "interfacedeclaration : INTERFACE interfaceidentifier extendsinterfaces interfacebody",
|
|
//t "interfacedeclaration : modifiers INTERFACE interfaceidentifier extendsinterfaces interfacebody",
|
|
//t "paralist : IDENTIFIER",
|
|
//t "paralist : IDENTIFIER '<' paralist '>'",
|
|
//t "paralist : wildcardparameter",
|
|
//t "paralist : paralist ',' IDENTIFIER",
|
|
//t "paralist : paralist ',' IDENTIFIER '<' paralist '>'",
|
|
//t "paralist : paralist ',' wildcardparameter",
|
|
//t "wildcardparameter : '?'",
|
|
//t "wildcardparameter : '?' EXTENDS referencetype",
|
|
//t "wildcardparameter : '?' SUPER referencetype",
|
|
//t "classbody : '{' '}'",
|
|
//t "classbody : '{' classbodydeclarations '}'",
|
|
//t "modifiers : modifier",
|
|
//t "modifiers : modifiers modifier",
|
|
//t "super : EXTENDS classtype",
|
|
//t "interfaces : IMPLEMENTS interfacetype",
|
|
//t "interfaces : interfaces ',' interfacetype",
|
|
//t "interfacebody : '{' '}'",
|
|
//t "interfacebody : '{' interfacememberdeclarations '}'",
|
|
//t "extendsinterfaces : EXTENDS interfacetype",
|
|
//t "extendsinterfaces : extendsinterfaces ',' interfacetype",
|
|
//t "classbodydeclarations : classbodydeclaration",
|
|
//t "classbodydeclarations : classbodydeclarations classbodydeclaration",
|
|
//t "modifier : PUBLIC",
|
|
//t "modifier : PROTECTED",
|
|
//t "modifier : PRIVATE",
|
|
//t "modifier : STATIC",
|
|
//t "modifier : ABSTRACT",
|
|
//t "modifier : FINAL",
|
|
//t "classtype : classorinterfacetype",
|
|
//t "interfacememberdeclarations : interfacememberdeclaration",
|
|
//t "interfacememberdeclarations : interfacememberdeclarations interfacememberdeclaration",
|
|
//t "interfacetype : classorinterfacetype",
|
|
//t "classbodydeclaration : classmemberdeclaration",
|
|
//t "classbodydeclaration : staticinitializer",
|
|
//t "classbodydeclaration : constructordeclaration",
|
|
//t "classorinterfacetype : name parameter",
|
|
//t "typelist : type",
|
|
//t "typelist : typelist ',' type",
|
|
//t "typelist : typelist ',' wildcardparameter",
|
|
//t "typelist : wildcardparameter",
|
|
//t "parameter :",
|
|
//t "parameter : '<' typelist '>'",
|
|
//t "interfacememberdeclaration : constantdeclaration",
|
|
//t "interfacememberdeclaration : abstractmethoddeclaration",
|
|
//t "classmemberdeclaration : fielddeclaration",
|
|
//t "classmemberdeclaration : methoddeclaration",
|
|
//t "staticinitializer : STATIC block",
|
|
//t "constructordeclaration : constructordeclarator constructorbody",
|
|
//t "constructordeclaration : modifiers constructordeclarator constructorbody",
|
|
//t "constantdeclaration : modifiers type IDENTIFIER '=' expression ';'",
|
|
//t "abstractmethoddeclaration : methodheader ';'",
|
|
//t "fielddeclarator : variabledeclarator '=' expression",
|
|
//t "fielddeclarator : variabledeclarator",
|
|
//t "genericdeclarationlist : '<' boundedMethodParameters '>'",
|
|
//t "fielddeclaration : type fielddeclarator ';'",
|
|
//t "fielddeclaration : fielddeclarator ';'",
|
|
//t "fielddeclaration : genericdeclarationlist type fielddeclarator ';'",
|
|
//t "fielddeclaration : variabledeclarators ';'",
|
|
//t "fielddeclaration : type variabledeclarators ';'",
|
|
//t "fielddeclaration : modifiers type variabledeclarators ';'",
|
|
//t "methoddeclaration : methodheader methodbody",
|
|
//t "block : '{' '}'",
|
|
//t "block : '{' blockstatements '}'",
|
|
//t "constructordeclarator : simplename '(' ')'",
|
|
//t "constructordeclarator : simplename '(' formalparameterlist ')'",
|
|
//t "constructorbody : '{' '}'",
|
|
//t "constructorbody : '{' explicitconstructorinvocation '}'",
|
|
//t "constructorbody : '{' blockstatements '}'",
|
|
//t "constructorbody : '{' explicitconstructorinvocation blockstatements '}'",
|
|
//t "throws : THROWS classtypelist",
|
|
//t "boundedClassParameter : boundedMethodParameter",
|
|
//t "boundedClassParameters : boundedClassParameter",
|
|
//t "boundedClassParameters : boundedClassParameters ',' boundedClassParameter",
|
|
//t "boundedMethodParameter : IDENTIFIER",
|
|
//t "boundedMethodParameter : IDENTIFIER EXTENDS boundedclassidentifierlist",
|
|
//t "boundedclassidentifierlist : referencetype",
|
|
//t "boundedclassidentifierlist : boundedclassidentifierlist '&' referencetype",
|
|
//t "boundedMethodParameters : boundedMethodParameter",
|
|
//t "boundedMethodParameters : boundedMethodParameters ',' boundedMethodParameter",
|
|
//t "methodheader : genericdeclarationlist type methoddeclarator",
|
|
//t "methodheader : type methoddeclarator",
|
|
//t "methodheader : modifiers type methoddeclarator",
|
|
//t "methodheader : modifiers genericdeclarationlist type methoddeclarator",
|
|
//t "methodheader : type methoddeclarator throws",
|
|
//t "methodheader : genericdeclarationlist type methoddeclarator throws",
|
|
//t "methodheader : modifiers type methoddeclarator throws",
|
|
//t "methodheader : modifiers genericdeclarationlist type methoddeclarator throws",
|
|
//t "methodheader : VOID methoddeclarator",
|
|
//t "methodheader : modifiers VOID methoddeclarator",
|
|
//t "methodheader : VOID methoddeclarator throws",
|
|
//t "methodheader : modifiers VOID methoddeclarator throws",
|
|
//t "methodheader : genericdeclarationlist VOID methoddeclarator",
|
|
//t "methodheader : modifiers genericdeclarationlist VOID methoddeclarator",
|
|
//t "methodheader : genericdeclarationlist VOID methoddeclarator throws",
|
|
//t "methodheader : modifiers genericdeclarationlist VOID methoddeclarator throws",
|
|
//t "methodheader : methoddeclarator",
|
|
//t "methodheader : genericdeclarationlist methoddeclarator",
|
|
//t "methodheader : modifiers methoddeclarator",
|
|
//t "methodheader : methoddeclarator throws",
|
|
//t "methodheader : modifiers methoddeclarator throws",
|
|
//t "type : primitivetype",
|
|
//t "type : primitivetype '[' ']'",
|
|
//t "type : referencetype",
|
|
//t "type : referencetype '[' ']'",
|
|
//t "variabledeclarators : variabledeclarator",
|
|
//t "variabledeclarators : variabledeclarators ',' variabledeclarator",
|
|
//t "methodbody : block",
|
|
//t "blockstatements : blockstatement",
|
|
//t "blockstatements : blockstatements blockstatement",
|
|
//t "formalparameterlist : formalparameter",
|
|
//t "formalparameterlist : formalparameterlist ',' formalparameter",
|
|
//t "explicitconstructorinvocation : THIS '(' ')' ';'",
|
|
//t "explicitconstructorinvocation : THIS '(' argumentlist ')' ';'",
|
|
//t "explicitconstructorinvocation : SUPER '(' ')' ';'",
|
|
//t "explicitconstructorinvocation : SUPER '(' argumentlist ')' ';'",
|
|
//t "classtypelist : classtype",
|
|
//t "classtypelist : classtypelist ',' classtype",
|
|
//t "methoddeclarator : IDENTIFIER '(' ')'",
|
|
//t "methoddeclarator : IDENTIFIER '(' formalparameterlist ')'",
|
|
//t "primitivetype : BOOLEAN",
|
|
//t "primitivetype : numerictype",
|
|
//t "referencetype : classorinterfacetype",
|
|
//t "variabledeclarator : variabledeclaratorid",
|
|
//t "blockstatement : localvariabledeclarationstatement",
|
|
//t "blockstatement : statement",
|
|
//t "formalparameter : type variabledeclaratorid",
|
|
//t "formalparameter : variabledeclaratorid",
|
|
//t "argumentlist : expression",
|
|
//t "argumentlist : argumentlist ',' expression",
|
|
//t "numerictype : integraltype",
|
|
//t "variabledeclaratorid : IDENTIFIER",
|
|
//t "variableinitializer : expression",
|
|
//t "localvariabledeclarationstatement : localvariabledeclaration ';'",
|
|
//t "statement : statementwithouttrailingsubstatement",
|
|
//t "statement : ifthenstatement",
|
|
//t "statement : ifthenelsestatement",
|
|
//t "statement : whilestatement",
|
|
//t "statement : forstatement",
|
|
//t "statement : explicitconstructorinvocation",
|
|
//t "expression : assignmentexpression",
|
|
//t "expression : classinstancecreationexpression",
|
|
//t "integraltype : INT",
|
|
//t "integraltype : CHAR",
|
|
//t "localvariabledeclaration : type variabledeclarators",
|
|
//t "localvariabledeclaration : variabledeclarators",
|
|
//t "statementwithouttrailingsubstatement : block",
|
|
//t "statementwithouttrailingsubstatement : emptystatement",
|
|
//t "statementwithouttrailingsubstatement : expressionstatement",
|
|
//t "statementwithouttrailingsubstatement : returnstatement",
|
|
//t "ifthenstatement : IF '(' expression ')' statement",
|
|
//t "ifthenelsestatement : IF '(' expression ')' statementnoshortif ELSE statement",
|
|
//t "whilestatement : WHILE '(' expression ')' statement",
|
|
//t "forstatement : FOR '(' expression ';' expression ';' expression ')' statement",
|
|
//t "forstatement : FOR '(' expression ';' expression ';' ')' statement",
|
|
//t "forstatement : FOR '(' expression ';' ';' expression ')' statement",
|
|
//t "forstatement : FOR '(' ';' expression ';' expression ')' statement",
|
|
//t "forstatement : FOR '(' expression ';' ';' ')' statement",
|
|
//t "forstatement : FOR '(' ';' expression ';' ')' statement",
|
|
//t "forstatement : FOR '(' ';' ';' expression ')' statement",
|
|
//t "forstatement : FOR '(' ';' ';' ')' statement",
|
|
//t "assignmentexpression : conditionalexpression",
|
|
//t "assignmentexpression : assignment",
|
|
//t "emptystatement : ';'",
|
|
//t "expressionstatement : statementexpression ';'",
|
|
//t "returnstatement : RETURN ';'",
|
|
//t "returnstatement : RETURN expression ';'",
|
|
//t "statementnoshortif : statementwithouttrailingsubstatement",
|
|
//t "statementnoshortif : ifthenelsestatementnoshortif",
|
|
//t "statementnoshortif : whilestatementnoshortif",
|
|
//t "conditionalexpression : conditionalorexpression",
|
|
//t "assignment : lefthandside assignmentoperator assignmentexpression",
|
|
//t "assignment : lefthandside assignmentoperator classinstancecreationexpression",
|
|
//t "statementexpression : assignment",
|
|
//t "statementexpression : preincrementexpression",
|
|
//t "statementexpression : predecrementexpression",
|
|
//t "statementexpression : postincrementexpression",
|
|
//t "statementexpression : postdecrementexpression",
|
|
//t "statementexpression : methodinvocation",
|
|
//t "ifthenelsestatementnoshortif : IF '(' expression ')' statementnoshortif ELSE statementnoshortif",
|
|
//t "whilestatementnoshortif : WHILE '(' expression ')' statementnoshortif",
|
|
//t "conditionalorexpression : conditionalandexpression",
|
|
//t "conditionalorexpression : conditionalorexpression LOGICALOR conditionalandexpression",
|
|
//t "lambdaassignmentoperator : LAMBDAASSIGNMENT",
|
|
//t "lambdabody : block",
|
|
//t "lambdabody : expression",
|
|
//t "lambdaexpressionparameter : '(' ')'",
|
|
//t "lambdaexpressionparameter : '(' formalparameterlist ')'",
|
|
//t "lambdaexpression : lambdaexpressionparameter lambdaassignmentoperator lambdabody",
|
|
//t "lefthandside : name",
|
|
//t "assignmentoperator : '='",
|
|
//t "assignmentoperator : TIMESEQUAL",
|
|
//t "assignmentoperator : DIVIDEEQUAL",
|
|
//t "assignmentoperator : MODULOEQUAL",
|
|
//t "assignmentoperator : PLUSEQUAL",
|
|
//t "assignmentoperator : MINUSEQUAL",
|
|
//t "preincrementexpression : INCREMENT unaryexpression",
|
|
//t "predecrementexpression : DECREMENT unaryexpression",
|
|
//t "postincrementexpression : postfixexpression INCREMENT",
|
|
//t "postdecrementexpression : postfixexpression DECREMENT",
|
|
//t "methodinvocation : name '(' ')'",
|
|
//t "methodinvocation : name '(' argumentlist ')'",
|
|
//t "methodinvocation : primary '.' IDENTIFIER '(' ')'",
|
|
//t "methodinvocation : primary '.' IDENTIFIER '(' argumentlist ')'",
|
|
//t "classinstancecreationexpression : NEW classtype '(' ')'",
|
|
//t "classinstancecreationexpression : NEW classtype '(' argumentlist ')'",
|
|
//t "conditionalandexpression : inclusiveorexpression",
|
|
//t "conditionalandexpression : conditionalandexpression LOGICALAND inclusiveorexpression",
|
|
//t "unaryexpression : preincrementexpression",
|
|
//t "unaryexpression : predecrementexpression",
|
|
//t "unaryexpression : '+' unaryexpression",
|
|
//t "unaryexpression : '-' unaryexpression",
|
|
//t "unaryexpression : unaryexpressionnotplusminus",
|
|
//t "postfixexpression : primary",
|
|
//t "postfixexpression : name",
|
|
//t "postfixexpression : postincrementexpression",
|
|
//t "postfixexpression : postdecrementexpression",
|
|
//t "primary : primarynonewarray",
|
|
//t "inclusiveorexpression : exclusiveorexpression",
|
|
//t "inclusiveorexpression : inclusiveorexpression '|' exclusiveorexpression",
|
|
//t "primarynonewarray : literal",
|
|
//t "primarynonewarray : THIS",
|
|
//t "primarynonewarray : methodinvocation",
|
|
//t "primarynonewarray : lambdaexpression",
|
|
//t "unaryexpressionnotplusminus : postfixexpression",
|
|
//t "unaryexpressionnotplusminus : '!' unaryexpression",
|
|
//t "unaryexpressionnotplusminus : castexpression",
|
|
//t "exclusiveorexpression : andexpression",
|
|
//t "exclusiveorexpression : exclusiveorexpression '^' andexpression",
|
|
//t "literal : INTLITERAL",
|
|
//t "literal : BOOLLITERAL",
|
|
//t "literal : CHARLITERAL",
|
|
//t "literal : STRINGLITERAL",
|
|
//t "literal : LONGLITERAL",
|
|
//t "literal : FLOATLITERAL",
|
|
//t "literal : DOUBLELITERAL",
|
|
//t "literal : JNULL",
|
|
//t "castexpression : '(' primitivetype ')' unaryexpression",
|
|
//t "andexpression : equalityexpression",
|
|
//t "andexpression : andexpression '&' equalityexpression",
|
|
//t "equalityexpression : relationalexpression",
|
|
//t "equalityexpression : equalityexpression EQUAL relationalexpression",
|
|
//t "equalityexpression : equalityexpression NOTEQUAL relationalexpression",
|
|
//t "relationalexpression : shiftexpression",
|
|
//t "relationalexpression : relationalexpression '<' shiftexpression",
|
|
//t "relationalexpression : relationalexpression '>' shiftexpression",
|
|
//t "relationalexpression : relationalexpression LESSEQUAL shiftexpression",
|
|
//t "relationalexpression : relationalexpression GREATEREQUAL shiftexpression",
|
|
//t "relationalexpression : relationalexpression INSTANCEOF referencetype",
|
|
//t "shiftexpression : additiveexpression",
|
|
//t "additiveexpression : multiplicativeexpression",
|
|
//t "additiveexpression : additiveexpression '+' multiplicativeexpression",
|
|
//t "additiveexpression : additiveexpression '-' multiplicativeexpression",
|
|
//t "multiplicativeexpression : unaryexpression",
|
|
//t "multiplicativeexpression : multiplicativeexpression '*' unaryexpression",
|
|
//t "multiplicativeexpression : multiplicativeexpression '/' unaryexpression",
|
|
//t "multiplicativeexpression : multiplicativeexpression '%' unaryexpression",
|
|
//t };
|
|
protected static final String yyName [] = {
|
|
"end-of-file",null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,"'!'",null,null,null,"'%'","'&'",
|
|
null,"'('","')'","'*'","'+'","','","'-'","'.'","'/'",null,null,null,
|
|
null,null,null,null,null,null,null,null,"';'","'<'","'='","'>'","'?'",
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
"'['",null,"']'","'^'",null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,"'{'","'|'","'}'",null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
|
|
"ABSTRACT","BOOLEAN","BREAK","CASE","CATCH","CHAR","CLASS","CONTINUE",
|
|
"DEFAULT","DO","ELSE","EXTENDS","FINAL","FINALLY","FOR","IF",
|
|
"INSTANCEOF","INT","NEW","PRIVATE","PROTECTED","PUBLIC","PACKAGE",
|
|
"IMPORT","INTERFACE","IMPLEMENTS","RETURN","STATIC","SUPER","SWITCH",
|
|
"THIS","THROW","THROWS","TRY","VOID","WHILE","INTLITERAL",
|
|
"LONGLITERAL","DOUBLELITERAL","FLOATLITERAL","BOOLLITERAL","JNULL",
|
|
"CHARLITERAL","STRINGLITERAL","IDENTIFIER","EQUAL","LESSEQUAL",
|
|
"GREATEREQUAL","NOTEQUAL","LOGICALOR","LOGICALAND","INCREMENT",
|
|
"DECREMENT","SHIFTLEFT","SHIFTRIGHT","UNSIGNEDSHIFTRIGHT",
|
|
"SIGNEDSHIFTRIGHT","PLUSEQUAL","MINUSEQUAL","TIMESEQUAL",
|
|
"DIVIDEEQUAL","ANDEQUAL","OREQUAL","XOREQUAL","MODULOEQUAL",
|
|
"SHIFTLEFTEQUAL","SIGNEDSHIFTRIGHTEQUAL","UNSIGNEDSHIFTRIGHTEQUAL",
|
|
"BRACE","RELOP","OP","EOF","LAMBDAASSIGNMENT",
|
|
"ENDOFGENERICVARDECLARATION",
|
|
};
|
|
|
|
/** index-checked interface to yyName[].
|
|
@param token single character or %token value.
|
|
@return token name or [illegal] or [unknown].
|
|
*/
|
|
//t public static final String yyname (int token) {
|
|
//t if (token < 0 || token > yyName.length) return "[illegal]";
|
|
//t String name;
|
|
//t if ((name = yyName[token]) != null) return name;
|
|
//t return "[unknown]";
|
|
//t }
|
|
|
|
/** computes list of expected tokens on error by tracing the tables.
|
|
@param state for which to compute the list.
|
|
@return list of token names.
|
|
*/
|
|
protected String[] yyExpecting (int state) {
|
|
// yyCheck durch yyCheckInit.yyCheck; ersetzt PL 25.1.01
|
|
int token, n, len = 0;
|
|
boolean[] ok = new boolean[yyName.length];
|
|
|
|
if ((n = yySindex[state]) != 0)
|
|
for (token = n < 0 ? -n : 0;
|
|
token < yyName.length && n+token < yyTable.length; ++ token)
|
|
if (yyCheckInit.yyCheck[n+token] == token && !ok[token] && yyName[token] != null) {
|
|
++ len;
|
|
ok[token] = true;
|
|
}
|
|
if ((n = yyRindex[state]) != 0)
|
|
for (token = n < 0 ? -n : 0;
|
|
token < yyName.length && n+token < yyTable.length; ++ token)
|
|
if (yyCheckInit.yyCheck[n+token] == token && !ok[token] && yyName[token] != null) {
|
|
++ len;
|
|
ok[token] = true;
|
|
}
|
|
|
|
String result[] = new String[len];
|
|
for (n = token = 0; n < len; ++ token)
|
|
if (ok[token]) result[n++] = yyName[token];
|
|
return result;
|
|
}
|
|
|
|
/** the generated parser, with debugging messages.
|
|
Maintains a state and a value stack, currently with fixed maximum size.
|
|
@param yyLex scanner.
|
|
@param yydebug debug message writer implementing yyDebug, or null.
|
|
@return result of the last reduction, if any.
|
|
@throws yyException on irrecoverable parse error.
|
|
*/
|
|
public Object yyparse (yyInput yyLex, Object yydebug)
|
|
throws java.io.IOException, yyException {
|
|
//t this.yydebug = (jay.yydebug.yyDebug)yydebug;
|
|
return yyparse(yyLex);
|
|
}
|
|
|
|
/** initial size and increment of the state/value stack [default 256].
|
|
This is not final so that it can be overwritten outside of invocations
|
|
of yyparse().
|
|
*/
|
|
protected int yyMax;
|
|
|
|
/** executed at the beginning of a reduce action.
|
|
Used as $$ = yyDefault($1), prior to the user-specified action, if any.
|
|
Can be overwritten to provide deep copy, etc.
|
|
@param first value for $1, or null.
|
|
@return first.
|
|
*/
|
|
protected Object yyDefault (Object first) {
|
|
return first;
|
|
}
|
|
|
|
/** the generated parser.
|
|
Maintains a state and a value stack, currently with fixed maximum size.
|
|
@param yyLex scanner.
|
|
@return result of the last reduction, if any.
|
|
@throws yyException on irrecoverable parse error.
|
|
*/
|
|
public Object yyparse (yyInput yyLex)
|
|
throws java.io.IOException, yyException {
|
|
// yyCheck durch yyCheckInit.yyCheck; ersetzt PL 23.1.01
|
|
yyCheckInit.yyCheckInit(); // initial yyCheck eingefuegt PL 25.1.01
|
|
if (yyMax <= 0) yyMax = 256; // initial size
|
|
int yyState = 0, yyStates[] = new int[yyMax]; // state stack
|
|
Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack
|
|
int yyToken = -1; // current input
|
|
int yyErrorFlag = 0; // #tks to shift
|
|
Scanner yyScanner = (Scanner)yyLex;
|
|
String yyErrorString = "irrecoverable syntax error";
|
|
|
|
yyLoop: for (int yyTop = 0;; ++ yyTop) {
|
|
if (yyTop >= yyStates.length) { // dynamically increase
|
|
int[] i = new int[yyStates.length+yyMax];
|
|
System.arraycopy(yyStates, 0, i, 0, yyStates.length);
|
|
yyStates = i;
|
|
Object[] o = new Object[yyVals.length+yyMax];
|
|
System.arraycopy(yyVals, 0, o, 0, yyVals.length);
|
|
yyVals = o;
|
|
}
|
|
yyStates[yyTop] = yyState;
|
|
yyVals[yyTop] = yyVal;
|
|
//t if (yydebug != null) yydebug.push(yyState, yyVal);
|
|
|
|
yyDiscarded: for (;;) { // discarding a token does not change stack
|
|
int yyN;
|
|
if ((yyN = yyDefRed[yyState]) == 0) { // else [default] reduce (yyN)
|
|
if (yyToken < 0) {
|
|
yyToken = yyLex.advance() ? yyLex.token() : 0;
|
|
//t if (yydebug != null)
|
|
//t yydebug.lex(yyState, yyToken, yyname(yyToken), yyLex.value());
|
|
}
|
|
if ((yyN = yySindex[yyState]) != 0 && (yyN += yyToken) >= 0
|
|
&& yyN < yyTable.length && yyCheckInit.yyCheck[yyN] == yyToken) {
|
|
//t if (yydebug != null)
|
|
//t yydebug.shift(yyState, yyTable[yyN], yyErrorFlag-1);
|
|
yyState = yyTable[yyN]; // shift to yyN
|
|
yyVal = yyLex.value();
|
|
yyToken = -1;
|
|
if (yyErrorFlag > 0) -- yyErrorFlag;
|
|
continue yyLoop;
|
|
}
|
|
if ((yyN = yyRindex[yyState]) != 0 && (yyN += yyToken) >= 0
|
|
&& yyN < yyTable.length && yyCheckInit.yyCheck[yyN] == yyToken)
|
|
yyN = yyTable[yyN]; // reduce (yyN)
|
|
else
|
|
switch (yyErrorFlag) {
|
|
|
|
case 0:
|
|
yyErrorString=yyerror("syntax error", yyExpecting(yyState));
|
|
//t if (yydebug != null) yydebug.error("syntax error");
|
|
|
|
case 1: case 2:
|
|
yyErrorFlag = 3;
|
|
do {
|
|
if ((yyN = yySindex[yyStates[yyTop]]) != 0
|
|
&& (yyN += yyErrorCode) >= 0 && yyN < yyTable.length
|
|
&& yyCheckInit.yyCheck[yyN] == yyErrorCode) {
|
|
//t if (yydebug != null)
|
|
//t yydebug.shift(yyStates[yyTop], yyTable[yyN], 3);
|
|
yyState = yyTable[yyN];
|
|
yyVal = yyLex.value();
|
|
continue yyLoop;
|
|
}
|
|
//t if (yydebug != null) yydebug.pop(yyStates[yyTop]);
|
|
} while (-- yyTop >= 0);
|
|
//t if (yydebug != null) yydebug.reject();
|
|
throw new yyException(yyErrorString, yyScanner.token);
|
|
|
|
case 3:
|
|
if (yyToken == 0) {
|
|
//t if (yydebug != null) yydebug.reject();
|
|
throw new yyException(yyErrorString+"at end-of-file", yyScanner.token);
|
|
}
|
|
//t if (yydebug != null)
|
|
//t yydebug.discard(yyState, yyToken, yyname(yyToken),
|
|
//t yyLex.value());
|
|
yyToken = -1;
|
|
continue yyDiscarded; // leave stack alone
|
|
}
|
|
}
|
|
int yyV = yyTop + 1-yyLen[yyN];
|
|
//t if (yydebug != null)
|
|
//t yydebug.reduce(yyState, yyStates[yyV-1], yyN, yyRule[yyN], yyLen[yyN]);
|
|
yyVal = yyDefault(yyV > yyTop ? null : yyVals[yyV]);
|
|
switch (yyN) {
|
|
case 1:
|
|
// line 247 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((SourceFile)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 2:
|
|
// line 251 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((SourceFile)yyVals[0+yyTop]).addImports(((ImportDeclarations)yyVals[-1+yyTop]));
|
|
yyVal=((SourceFile)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 3:
|
|
// line 256 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Package*/
|
|
((SourceFile)yyVals[0+yyTop]).setPackageName(((UsedId)yyVals[-2+yyTop]));
|
|
((SourceFile)yyVals[0+yyTop]).addImports(((ImportDeclarations)yyVals[-1+yyTop]));
|
|
yyVal=((SourceFile)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 4:
|
|
// line 263 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Package*/
|
|
((SourceFile)yyVals[0+yyTop]).setPackageName(((UsedId)yyVals[-1+yyTop]));
|
|
yyVal=((SourceFile)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 5:
|
|
// line 269 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
this.testPair.add(new Pair(((Type)yyVals[-2+yyTop]),((Type)yyVals[-1+yyTop])));
|
|
yyVal=((SourceFile)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 6:
|
|
// line 275 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Package*/
|
|
yyVal = ((UsedId)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 7:
|
|
// line 281 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ImportDeclarations declarations=new ImportDeclarations();
|
|
declarations.addElement(((UsedId)yyVals[0+yyTop]));
|
|
yyVal=declarations;
|
|
}
|
|
break;
|
|
case 8:
|
|
// line 287 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((ImportDeclarations)yyVals[-1+yyTop]).addElement(((UsedId)yyVals[0+yyTop]));
|
|
yyVal=((ImportDeclarations)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 9:
|
|
// line 293 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((UsedId)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 10:
|
|
// line 298 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
SourceFile Scfile = new SourceFile();
|
|
Scfile.addElement(((AClassOrInterface)yyVals[0+yyTop]));
|
|
yyVal=Scfile;
|
|
}
|
|
break;
|
|
case 11:
|
|
// line 304 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((SourceFile)yyVals[-1+yyTop]).addElement(((AClassOrInterface)yyVals[0+yyTop]));
|
|
yyVal=((SourceFile)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 12:
|
|
// line 310 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((UsedId)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 13:
|
|
// line 314 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((UsedId)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 14:
|
|
// line 319 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Class)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 15:
|
|
// line 323 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interface*/
|
|
yyVal=((Interface)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 16:
|
|
// line 330 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((UsedId)yyVals[-2+yyTop]).set_Name(((Token)yyVals[0+yyTop]).getLexem());
|
|
((UsedId)yyVals[-2+yyTop]).setOffset(((UsedId)yyVals[-2+yyTop]).getOffset());
|
|
yyVal=((UsedId)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 17:
|
|
// line 337 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((UsedId)yyVals[-2+yyTop]).set_Name(((Token)yyVals[0+yyTop]).getLexem());
|
|
((UsedId)yyVals[-2+yyTop]).setOffset(((UsedId)yyVals[-2+yyTop]).getOffset());
|
|
yyVal=((UsedId)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 18:
|
|
// line 343 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((UsedId)yyVals[-2+yyTop]).set_Name("*");
|
|
((UsedId)yyVals[-2+yyTop]).setOffset(((UsedId)yyVals[-2+yyTop]).getOffset());
|
|
yyVal=((UsedId)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 19:
|
|
// line 351 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
UsedId UI = new UsedId(((Token)yyVals[0+yyTop]).getOffset());
|
|
UI.set_Name( ((Token)yyVals[0+yyTop]).getLexem() );
|
|
UI.setOffset(((Token)yyVals[0+yyTop]).getOffset());/*hinzugef�gt hoth: 07.04.2006*/
|
|
yyVal = UI;
|
|
}
|
|
break;
|
|
case 20:
|
|
// line 359 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Um das hier uebersichtlicher zu halten,*/
|
|
/* gibt es einen allumfassenden Konstruktor fuer Class*/
|
|
/* Parameter:*/
|
|
/* String name, */
|
|
/* Modifiers mod,*/
|
|
/* ClassBody classbody, */
|
|
/* Vector<Type> containedtypes, */
|
|
/* UsedId superclass, */
|
|
/* Vector<UsedId> SuperInterfaces, */
|
|
/* Vector<Type> Parameterliste*/
|
|
|
|
yyVal = new Class(((ClassAndParameter)yyVals[-1+yyTop]).getName(), null, ((ClassBody)yyVals[0+yyTop]), containedTypes, null, ((ClassAndParameter)yyVals[-1+yyTop]).getParaVector(), ((Token)yyVals[-2+yyTop]).getOffset());
|
|
this.initContainedTypes();
|
|
this.initUsedIdsToCheck();
|
|
}
|
|
break;
|
|
case 21:
|
|
// line 376 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new Class(((ClassAndParameter)yyVals[-1+yyTop]).getName(), ((Modifiers)yyVals[-3+yyTop]), ((ClassBody)yyVals[0+yyTop]), containedTypes, null, ((ClassAndParameter)yyVals[-1+yyTop]).getParaVector(), ((Token)yyVals[-2+yyTop]).getOffset());
|
|
this.initContainedTypes();
|
|
this.initUsedIdsToCheck();
|
|
}
|
|
break;
|
|
case 22:
|
|
// line 382 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new Class(((ClassAndParameter)yyVals[-2+yyTop]).getName(), null, ((ClassBody)yyVals[0+yyTop]), containedTypes, ((UsedId)yyVals[-1+yyTop]), null, ((ClassAndParameter)yyVals[-2+yyTop]).getParaVector(), ((Token)yyVals[-3+yyTop]).getOffset());
|
|
this.initContainedTypes();
|
|
this.initUsedIdsToCheck();
|
|
}
|
|
break;
|
|
case 23:
|
|
// line 388 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new Class(((ClassAndParameter)yyVals[-2+yyTop]).getName(), ((Modifiers)yyVals[-4+yyTop]), ((ClassBody)yyVals[0+yyTop]), containedTypes, ((UsedId)yyVals[-1+yyTop]), null, ((ClassAndParameter)yyVals[-2+yyTop]).getParaVector(), ((Token)yyVals[-3+yyTop]).getOffset());
|
|
this.initContainedTypes();
|
|
this.initUsedIdsToCheck();
|
|
}
|
|
break;
|
|
case 24:
|
|
// line 395 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new Class(((ClassAndParameter)yyVals[-2+yyTop]).getName(), null, ((ClassBody)yyVals[0+yyTop]), containedTypes, ((InterfaceList)yyVals[-1+yyTop]).getTypeVector(), ((ClassAndParameter)yyVals[-2+yyTop]).getParaVector(), ((Token)yyVals[-3+yyTop]).getOffset());
|
|
this.initContainedTypes();
|
|
this.initUsedIdsToCheck();
|
|
}
|
|
break;
|
|
case 25:
|
|
// line 401 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new Class(((ClassAndParameter)yyVals[-2+yyTop]).getName(), ((Modifiers)yyVals[-4+yyTop]), ((ClassBody)yyVals[0+yyTop]), containedTypes, ((InterfaceList)yyVals[-1+yyTop]).getTypeVector(), ((ClassAndParameter)yyVals[-2+yyTop]).getParaVector(), ((Token)yyVals[-3+yyTop]).getOffset());
|
|
this.initContainedTypes();
|
|
this.initUsedIdsToCheck();
|
|
}
|
|
break;
|
|
case 26:
|
|
// line 407 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new Class(((ClassAndParameter)yyVals[-3+yyTop]).getName(), null, ((ClassBody)yyVals[0+yyTop]), containedTypes, ((UsedId)yyVals[-2+yyTop]), ((InterfaceList)yyVals[-1+yyTop]).getTypeVector(), ((ClassAndParameter)yyVals[-3+yyTop]).getParaVector(), ((Token)yyVals[-4+yyTop]).getOffset());
|
|
this.initContainedTypes();
|
|
this.initUsedIdsToCheck();
|
|
}
|
|
break;
|
|
case 27:
|
|
// line 413 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new Class(((ClassAndParameter)yyVals[-3+yyTop]).getName(), ((Modifiers)yyVals[-5+yyTop]), ((ClassBody)yyVals[0+yyTop]), containedTypes, ((UsedId)yyVals[-2+yyTop]), ((InterfaceList)yyVals[-1+yyTop]).getTypeVector(), ((ClassAndParameter)yyVals[-3+yyTop]).getParaVector(), ((Token)yyVals[-4+yyTop]).getOffset());
|
|
this.initContainedTypes();
|
|
this.initUsedIdsToCheck();
|
|
}
|
|
break;
|
|
case 28:
|
|
// line 420 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* HOTI*/
|
|
/* Verbindet den Namen eines Interfaces mit einer optionalen Parameterliste*/
|
|
yyVal = new InterfaceAndParameter(((Token)yyVals[0+yyTop]).getLexem());
|
|
}
|
|
break;
|
|
case 29:
|
|
// line 426 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new InterfaceAndParameter(((Token)yyVals[-3+yyTop]).getLexem(), ((ParaList)yyVals[-1+yyTop]));
|
|
}
|
|
break;
|
|
case 30:
|
|
// line 431 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Hilfskonstrukt, um die Grammatik ueberschaubar zu halten*/
|
|
/* Verbindet den Namen einer Klasse mit einer optionalen Parameterliste*/
|
|
yyVal = new ClassAndParameter(((Token)yyVals[0+yyTop]).getLexem());
|
|
}
|
|
break;
|
|
case 31:
|
|
// line 437 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = new ClassAndParameter(((Token)yyVals[-3+yyTop]).getLexem(), ((ParaList)yyVals[-1+yyTop]));
|
|
}
|
|
break;
|
|
case 32:
|
|
// line 442 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interface*/
|
|
Interface ic = new Interface(((InterfaceAndParameter)yyVals[-1+yyTop]).getName(), ((Token)yyVals[-2+yyTop]).getOffset());
|
|
ic.setParaList(((InterfaceAndParameter)yyVals[-1+yyTop]).getParaVector());
|
|
ic.setInterfaceBody(((InterfaceBody)yyVals[0+yyTop]));
|
|
ic.setContainedTypes(containedTypes);
|
|
initContainedTypes();
|
|
yyVal = ic;
|
|
}
|
|
break;
|
|
case 33:
|
|
// line 452 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Interface ic = new Interface(((InterfaceAndParameter)yyVals[-1+yyTop]).getName(), ((Modifiers)yyVals[-3+yyTop]), ((Token)yyVals[-2+yyTop]).getOffset());
|
|
ic.setInterfaceBody(((InterfaceBody)yyVals[0+yyTop]));
|
|
ic.setParaList(((InterfaceAndParameter)yyVals[-1+yyTop]).getParaVector());
|
|
ic.setContainedTypes(containedTypes);
|
|
initContainedTypes();
|
|
yyVal = ic;
|
|
}
|
|
break;
|
|
case 34:
|
|
// line 461 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Interface ic = new Interface(((InterfaceAndParameter)yyVals[-2+yyTop]).getName(), ((Token)yyVals[-3+yyTop]).getOffset());
|
|
ic.setParaList(((InterfaceAndParameter)yyVals[-2+yyTop]).getParaVector());
|
|
/*ic.setSuperInterfaces($3.getVector());*/
|
|
ic.setInterfaceBody(((InterfaceBody)yyVals[0+yyTop]));
|
|
ic.setContainedTypes(containedTypes);
|
|
initContainedTypes();
|
|
yyVal = ic;
|
|
}
|
|
break;
|
|
case 35:
|
|
// line 471 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Interface ic = new Interface(((InterfaceAndParameter)yyVals[-2+yyTop]).getName(), ((Modifiers)yyVals[-4+yyTop]), ((Token)yyVals[-3+yyTop]).getOffset());
|
|
ic.setParaList(((InterfaceAndParameter)yyVals[-2+yyTop]).getParaVector());
|
|
/*ic.setSuperInterfaces($4.getVector());*/
|
|
ic.setInterfaceBody(((InterfaceBody)yyVals[0+yyTop]));
|
|
ic.setContainedTypes(containedTypes);
|
|
initContainedTypes();
|
|
yyVal = ic;
|
|
}
|
|
break;
|
|
case 36:
|
|
// line 482 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ParaList pl = new ParaList();
|
|
/* #JB# 05.04.2005 */
|
|
/* ########################################################### */
|
|
pl.getParalist().addElement(new GenericTypeVar(((Token)yyVals[0+yyTop]).getLexem(),null, ((Token)yyVals[0+yyTop]).getOffset()));
|
|
/*pl.getParalist().addElement( new TypePlaceholder($1.getLexem()) );*/
|
|
/* ########################################################### */
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug( "IDENTIFIER --> Paralist f�r " + ((Token)yyVals[0+yyTop]).getLexem() + " TV", Section.PARSER);
|
|
yyVal = pl;
|
|
}
|
|
break;
|
|
case 37:
|
|
// line 493 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ParaList pl = new ParaList();
|
|
RefType t = new RefType( ((Token)yyVals[-3+yyTop]).getLexem(),null,((Token)yyVals[-3+yyTop]).getOffset() );
|
|
t.set_ParaList( ((ParaList)yyVals[-1+yyTop]).get_ParaList() );
|
|
pl.getParalist().addElement(t);
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug( "IDENTIFIER '<' paralist '>' --> Paralist f�r " + ((Token)yyVals[-3+yyTop]).getLexem() + ": RefType", Section.PARSER);
|
|
yyVal = pl;
|
|
}
|
|
break;
|
|
case 38:
|
|
// line 502 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ParaList pl = new ParaList();
|
|
pl.getParalist().addElement(((WildcardType)yyVals[0+yyTop]));
|
|
yyVal = pl;
|
|
}
|
|
break;
|
|
case 39:
|
|
// line 508 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
|
|
/* #JB# 05.04.2005 */
|
|
/* ########################################################### */
|
|
((ParaList)yyVals[-2+yyTop]).getParalist().addElement(new GenericTypeVar(((Token)yyVals[0+yyTop]).getLexem(), null,((Token)yyVals[0+yyTop]).getOffset()));
|
|
/*$1.getParalist().addElement(new TypePlaceholder($3.getLexem()));*/
|
|
/* ########################################################### */
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug( "paralist ',' IDENTIFIER --> Paralist f�r " + ((Token)yyVals[0+yyTop]).getLexem() + ": TV", Section.PARSER);
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug( "paralist: " + ((ParaList)yyVals[-2+yyTop]).getParalist(), Section.PARSER);
|
|
yyVal=((ParaList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 40:
|
|
// line 521 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
RefType t = new RefType( ((Token)yyVals[-3+yyTop]).getLexem(),null ,((Token)yyVals[-3+yyTop]).getOffset() );
|
|
t.set_ParaList( ((ParaList)yyVals[-1+yyTop]).get_ParaList() );
|
|
((ParaList)yyVals[-5+yyTop]).getParalist().addElement(t);
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug( "paralist ',' IDENTIFIER '<' paralist '>' --> Paralist f�r " + ((Token)yyVals[-3+yyTop]).getLexem() + ": RefType", Section.PARSER);
|
|
yyVal=((ParaList)yyVals[-5+yyTop]);
|
|
}
|
|
break;
|
|
case 41:
|
|
// line 529 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((ParaList)yyVals[-2+yyTop]).getParalist().addElement(((WildcardType)yyVals[0+yyTop]));
|
|
yyVal=((ParaList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 42:
|
|
// line 535 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/*Luar 29.11.06 Offset auf -1, da keine Angabe vorhanden*/
|
|
WildcardType wc = new WildcardType(null,-1);
|
|
yyVal = wc;
|
|
}
|
|
break;
|
|
case 43:
|
|
// line 541 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ExtendsWildcardType ewc = new ExtendsWildcardType(((Token)yyVals[-1+yyTop]).getOffset(),((RefType)yyVals[0+yyTop]));
|
|
yyVal = ewc;
|
|
}
|
|
break;
|
|
case 44:
|
|
// line 546 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
SuperWildcardType swc = new SuperWildcardType(((Token)yyVals[-1+yyTop]).getOffset(),((RefType)yyVals[0+yyTop]));
|
|
yyVal = swc;
|
|
}
|
|
break;
|
|
case 45:
|
|
// line 552 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ClassBody CB = new ClassBody();
|
|
yyVal = CB;
|
|
}
|
|
break;
|
|
case 46:
|
|
// line 558 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = ((ClassBody)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 47:
|
|
// line 563 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Modifiers Mod = new Modifiers();
|
|
Mod.addModifier(((Modifier)yyVals[0+yyTop]));
|
|
yyVal = Mod;
|
|
}
|
|
break;
|
|
case 48:
|
|
// line 569 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Modifiers)yyVals[-1+yyTop]).addModifier(((Modifier)yyVals[0+yyTop]));
|
|
yyVal = ((Modifiers)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 49:
|
|
// line 575 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = ((UsedId)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 50:
|
|
// line 580 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interface*/
|
|
InterfaceList il = new InterfaceList();
|
|
il.addInterface(((UsedId)yyVals[0+yyTop]));
|
|
yyVal = il;
|
|
}
|
|
break;
|
|
case 51:
|
|
// line 587 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((InterfaceList)yyVals[-2+yyTop]).addInterface(((UsedId)yyVals[0+yyTop]));
|
|
yyVal = ((InterfaceList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 52:
|
|
// line 593 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interface*/
|
|
yyVal = new InterfaceBody();
|
|
}
|
|
break;
|
|
case 53:
|
|
// line 598 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = ((InterfaceBody)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 54:
|
|
// line 605 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interface*/
|
|
InterfaceList il = new InterfaceList();
|
|
il.addInterface(((UsedId)yyVals[0+yyTop]));
|
|
yyVal = il;
|
|
}
|
|
break;
|
|
case 55:
|
|
// line 612 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((InterfaceList)yyVals[-2+yyTop]).addInterface(((UsedId)yyVals[0+yyTop]));
|
|
yyVal = ((InterfaceList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 56:
|
|
// line 619 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ClassBody CB = new ClassBody();
|
|
CB.addField( ((Field)yyVals[0+yyTop]) );
|
|
yyVal=CB;
|
|
}
|
|
break;
|
|
case 57:
|
|
// line 625 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((ClassBody)yyVals[-1+yyTop]).addField(((Field)yyVals[0+yyTop]));
|
|
yyVal = ((ClassBody)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 58:
|
|
// line 632 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Public Pub = new Public();
|
|
yyVal=Pub;
|
|
}
|
|
break;
|
|
case 59:
|
|
// line 637 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Protected Pro = new Protected();
|
|
yyVal=Pro;
|
|
}
|
|
break;
|
|
case 60:
|
|
// line 642 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Private Pri = new Private();
|
|
yyVal=Pri;
|
|
}
|
|
break;
|
|
case 61:
|
|
// line 647 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Static Sta = new Static();
|
|
yyVal=Sta;
|
|
}
|
|
break;
|
|
case 62:
|
|
// line 652 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Abstract Abs = new Abstract();
|
|
yyVal=Abs;
|
|
}
|
|
break;
|
|
case 63:
|
|
// line 657 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{ Final fin = new Final();
|
|
yyVal = fin;
|
|
}
|
|
break;
|
|
case 64:
|
|
// line 663 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/*PL 05-07-30 eingefuegt containedTypes ANFANG*/
|
|
RefType RT = new RefType(((UsedId)yyVals[0+yyTop]).get_Name_1Element(),null,-1);
|
|
/*RT.set_UsedId($1);*/
|
|
/*RT.setName(RT.get_UsedId().get_Name_1Element());*/
|
|
RT.set_ParaList(((UsedId)yyVals[0+yyTop]).get_RealParaList());
|
|
/*RT.setName($1.get_Name_1Element());*/
|
|
containedTypes.addElement(RT);
|
|
/*PL 05-07-30 eingefuegt containedTypes ENDE*/
|
|
|
|
yyVal = ((UsedId)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 65:
|
|
// line 678 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interface*/
|
|
InterfaceBody ib = new InterfaceBody();
|
|
ib.addElement(((Field)yyVals[0+yyTop]));
|
|
yyVal = ib;
|
|
}
|
|
break;
|
|
case 66:
|
|
// line 685 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((InterfaceBody)yyVals[-1+yyTop]).addElement(((Field)yyVals[0+yyTop]));
|
|
yyVal = ((InterfaceBody)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 67:
|
|
// line 691 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interfaces*/
|
|
yyVal = ((UsedId)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 68:
|
|
// line 697 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Field)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 69:
|
|
// line 702 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 70:
|
|
// line 706 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Field)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 71:
|
|
// line 712 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
if (((Vector)yyVals[0+yyTop]) != null) {
|
|
/*$1.set_ParaList($2.get_ParaList());*/
|
|
((UsedId)yyVals[-1+yyTop]).set_ParaList(((Vector)yyVals[0+yyTop]));/*Änderung von Andreas Stadelmeier. Type statt GenericVarType*/
|
|
/* otth: originale (also diese) Parameterliste retten */
|
|
/*((UsedId)$1).vParaOrg = new Vector<Type>( $2.get_ParaList() );*/
|
|
}
|
|
yyVal=((UsedId)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 72:
|
|
// line 723 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Vector<Type> tl = new Vector<Type>();
|
|
tl.add(((Type)yyVals[0+yyTop]));
|
|
yyVal = tl;
|
|
}
|
|
break;
|
|
case 73:
|
|
// line 729 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Vector)yyVals[-2+yyTop]).add(((Type)yyVals[0+yyTop]));
|
|
yyVal=((Vector)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 74:
|
|
// line 734 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Vector)yyVals[-2+yyTop]).add(((WildcardType)yyVals[0+yyTop]));
|
|
yyVal=((Vector)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 75:
|
|
// line 739 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Vector<Type> tl = new Vector<Type>();
|
|
tl.add(((WildcardType)yyVals[0+yyTop]));
|
|
yyVal = tl;
|
|
}
|
|
break;
|
|
case 76:
|
|
// line 747 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{ yyVal = null; }
|
|
break;
|
|
case 77:
|
|
// line 749 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = ((Vector)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 78:
|
|
// line 754 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interfaces, Spezialform Konstantendef.*/
|
|
yyVal = ((Constant)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 79:
|
|
// line 759 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = ((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 80:
|
|
// line 764 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Field)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 81:
|
|
// line 768 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 82:
|
|
// line 773 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Method STAT = new Method(((Token)yyVals[-1+yyTop]).getOffset());
|
|
DeclId DST = new DeclId();
|
|
DST.set_Name(((Token)yyVals[-1+yyTop]).getLexem());
|
|
STAT.set_DeclId(DST);
|
|
Static ST = new Static();
|
|
Modifiers MOD = new Modifiers();
|
|
MOD.addModifier(ST);
|
|
STAT.set_Modifiers(MOD);
|
|
STAT.set_Block(((Block)yyVals[0+yyTop]));
|
|
yyVal=STAT;
|
|
}
|
|
break;
|
|
case 83:
|
|
// line 787 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Constructor)yyVals[-1+yyTop]).set_Block(((Block)yyVals[0+yyTop]));
|
|
yyVal = ((Constructor)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 84:
|
|
// line 792 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Constructor)yyVals[-1+yyTop]).set_Block(((Block)yyVals[0+yyTop]));
|
|
((Constructor)yyVals[-1+yyTop]).set_Modifiers(((Modifiers)yyVals[-2+yyTop]));
|
|
yyVal = ((Constructor)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 85:
|
|
// line 799 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interface*/
|
|
Constant c = new Constant(((Token)yyVals[-3+yyTop]).getLexem(), ((Modifiers)yyVals[-5+yyTop]));
|
|
c.setType(((Type)yyVals[-4+yyTop]));
|
|
c.setValue(((Expr)yyVals[-1+yyTop]));
|
|
yyVal = c;
|
|
}
|
|
break;
|
|
case 86:
|
|
// line 808 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/* SCJU: Interface*/
|
|
yyVal = ((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 87:
|
|
// line 833 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
FieldDeclaration ret = new FieldDeclaration(((DeclId)yyVals[-2+yyTop]).getOffset());
|
|
ret.set_DeclId(((DeclId)yyVals[-2+yyTop]));
|
|
ret.setWert(((Expr)yyVals[0+yyTop]));
|
|
yyVal=ret;
|
|
}
|
|
break;
|
|
case 88:
|
|
// line 840 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
FieldDeclaration ret = new FieldDeclaration(((DeclId)yyVals[0+yyTop]).getOffset());
|
|
ret.set_DeclId(((DeclId)yyVals[0+yyTop]));
|
|
yyVal=ret;
|
|
}
|
|
break;
|
|
case 89:
|
|
// line 847 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
GenericDeclarationList ret = new GenericDeclarationList(((GenericVarDeclarationList)yyVals[-1+yyTop]).getElements(),((GenericVarDeclarationList)yyVals[-1+yyTop]).getEndOffset());
|
|
yyVal = ret;
|
|
}
|
|
break;
|
|
case 90:
|
|
// line 854 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((FieldDeclaration)yyVals[-1+yyTop]).setType(((Type)yyVals[-2+yyTop]));
|
|
yyVal=((FieldDeclaration)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 91:
|
|
// line 859 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((FieldDeclaration)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 92:
|
|
// line 863 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{/*angefügt von Andreas Stadelmeier*/
|
|
((FieldDeclaration)yyVals[-1+yyTop]).setType(((Type)yyVals[-2+yyTop]));
|
|
((FieldDeclaration)yyVals[-1+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-3+yyTop]));
|
|
yyVal=((FieldDeclaration)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 93:
|
|
// line 870 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((FieldDeclaration)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 94:
|
|
// line 875 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("T->Parser->fielddeclaration ...: type " + ((Type)yyVals[-2+yyTop]), Section.PARSER);
|
|
((FieldDeclaration)yyVals[-1+yyTop]).setType(((Type)yyVals[-2+yyTop]));
|
|
yyVal = ((FieldDeclaration)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 95:
|
|
// line 882 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((FieldDeclaration)yyVals[-1+yyTop]).setType(((Type)yyVals[-2+yyTop]));
|
|
for(int i=0;i<(((FieldDeclaration)yyVals[-1+yyTop]).getDeclIdVector().size());i++)
|
|
{
|
|
((FieldDeclaration)yyVals[-1+yyTop]).getDeclIdVector().elementAt(i).modifiers=((Modifiers)yyVals[-3+yyTop]);
|
|
}
|
|
yyVal = ((FieldDeclaration)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 96:
|
|
// line 892 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[-1+yyTop]).set_Block(((Block)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 97:
|
|
// line 899 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Block Bl = new Block();
|
|
yyVal=Bl;
|
|
}
|
|
break;
|
|
case 98:
|
|
// line 905 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Block)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 99:
|
|
// line 910 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Constructor CON = new Constructor(null); /*TODO: Der Parser kann sowieso nicht zwischen einem Konstruktor und einer Methode unterscheiden. Das hier kann wegfallen...*/
|
|
DeclId DIDCon = new DeclId();
|
|
DIDCon.set_Name(((UsedId)yyVals[-2+yyTop]).get_Name_1Element());
|
|
CON.set_DeclId(DIDCon);
|
|
yyVal=CON;
|
|
}
|
|
break;
|
|
case 100:
|
|
// line 918 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Constructor CONpara = new Constructor(null);
|
|
DeclId DIconpara = new DeclId();
|
|
DIconpara.set_Name(((UsedId)yyVals[-3+yyTop]).get_Name_1Element());
|
|
CONpara.set_DeclId(DIconpara);
|
|
CONpara.setParameterList(((ParameterList)yyVals[-1+yyTop]));
|
|
yyVal=CONpara;
|
|
}
|
|
break;
|
|
case 101:
|
|
// line 928 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Block CBL = new Block();
|
|
yyVal=CBL;
|
|
}
|
|
break;
|
|
case 102:
|
|
// line 933 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Block CBLexpl = new Block();
|
|
CBLexpl.set_Statement(((Statement)yyVals[-1+yyTop]));
|
|
yyVal=CBLexpl;
|
|
}
|
|
break;
|
|
case 103:
|
|
// line 939 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Block)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 104:
|
|
// line 943 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Block CBes = new Block();
|
|
CBes.set_Statement(((Statement)yyVals[-2+yyTop]));
|
|
for(int j=0;j<((Block)yyVals[-1+yyTop]).statements.size();j++)
|
|
{
|
|
CBes.set_Statement((Statement)((Block)yyVals[-1+yyTop]).statements.elementAt(j));
|
|
}
|
|
yyVal=CBes;
|
|
}
|
|
break;
|
|
case 105:
|
|
// line 954 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ExceptionList EL = new ExceptionList();
|
|
EL.set_addElem(((RefType)yyVals[0+yyTop]));
|
|
yyVal=EL;
|
|
}
|
|
break;
|
|
case 106:
|
|
// line 961 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal = ((GenericTypeVar)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 107:
|
|
// line 966 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ParaList p = new ParaList();
|
|
p.add_ParaList(((GenericTypeVar)yyVals[0+yyTop]));
|
|
yyVal=p;
|
|
}
|
|
break;
|
|
case 108:
|
|
// line 972 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((ParaList)yyVals[-2+yyTop]).add_ParaList(((GenericTypeVar)yyVals[0+yyTop]));
|
|
yyVal=((ParaList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 109:
|
|
// line 979 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=new GenericTypeVar(((Token)yyVals[0+yyTop]).getLexem(),null,((Token)yyVals[0+yyTop]).getOffset());
|
|
}
|
|
break;
|
|
case 110:
|
|
// line 983 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
BoundedGenericTypeVar gtv=new BoundedGenericTypeVar(((Token)yyVals[-2+yyTop]).getLexem(), ((BoundedClassIdentifierList)yyVals[0+yyTop]),null, ((Token)yyVals[-2+yyTop]).getOffset() ,((BoundedClassIdentifierList)yyVals[0+yyTop]).getEndOffset());
|
|
/*gtv.setBounds($3);*/
|
|
yyVal=gtv;
|
|
}
|
|
break;
|
|
case 111:
|
|
// line 990 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Vector<ObjectType> vec=new Vector<ObjectType>();
|
|
vec.addElement(((RefType)yyVals[0+yyTop]));
|
|
containedTypes.addElement(((RefType)yyVals[0+yyTop]));
|
|
yyVal=new BoundedClassIdentifierList(vec, ((RefType)yyVals[0+yyTop]).getOffset()+((RefType)yyVals[0+yyTop]).getName().toString().length());
|
|
}
|
|
break;
|
|
case 112:
|
|
// line 997 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((BoundedClassIdentifierList)yyVals[-2+yyTop]).addElement(((RefType)yyVals[0+yyTop]));
|
|
((BoundedClassIdentifierList)yyVals[-2+yyTop]).addOffsetOff(((RefType)yyVals[0+yyTop]));
|
|
containedTypes.addElement(((RefType)yyVals[0+yyTop]));
|
|
yyVal=((BoundedClassIdentifierList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 113:
|
|
// line 1005 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
GenericVarDeclarationList vec=new GenericVarDeclarationList();
|
|
vec.addElement(((GenericTypeVar)yyVals[0+yyTop]));
|
|
yyVal=vec;
|
|
}
|
|
break;
|
|
case 114:
|
|
// line 1011 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((GenericVarDeclarationList)yyVals[-2+yyTop]).addElement(((GenericTypeVar)yyVals[0+yyTop]));
|
|
yyVal=((GenericVarDeclarationList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 115:
|
|
// line 1019 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[0+yyTop]).setType(((Type)yyVals[-1+yyTop]));
|
|
((Method)yyVals[0+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-2+yyTop]));
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 116:
|
|
// line 1025 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[0+yyTop]).setType(((Type)yyVals[-1+yyTop]));
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 117:
|
|
// line 1030 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[0+yyTop]).set_Modifiers(((Modifiers)yyVals[-2+yyTop]));
|
|
((Method)yyVals[0+yyTop]).setType(((Type)yyVals[-1+yyTop]));
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 118:
|
|
// line 1036 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[0+yyTop]).set_Modifiers(((Modifiers)yyVals[-3+yyTop]));
|
|
((Method)yyVals[0+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-2+yyTop]));
|
|
((Method)yyVals[0+yyTop]).setType(((Type)yyVals[-1+yyTop]));
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 119:
|
|
// line 1043 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[-1+yyTop]).setType(((Type)yyVals[-2+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 120:
|
|
// line 1049 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[-1+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-3+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).setType(((Type)yyVals[-2+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 121:
|
|
// line 1056 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[-1+yyTop]).set_Modifiers(((Modifiers)yyVals[-3+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).setType(((Type)yyVals[-2+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 122:
|
|
// line 1063 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[-1+yyTop]).set_Modifiers(((Modifiers)yyVals[-4+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-3+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).setType(((Type)yyVals[-2+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 123:
|
|
// line 1071 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Void Voit = new Void(((Method)yyVals[0+yyTop]),((Token)yyVals[-1+yyTop]).getOffset());
|
|
((Method)yyVals[0+yyTop]).setType(Voit);
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 124:
|
|
// line 1077 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Void voit = new Void(((Method)yyVals[0+yyTop]),((Token)yyVals[-1+yyTop]).getOffset());
|
|
((Method)yyVals[0+yyTop]).set_Modifiers(((Modifiers)yyVals[-2+yyTop]));
|
|
((Method)yyVals[0+yyTop]).setType(voit);
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 125:
|
|
// line 1084 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Void voyt = new Void(((Method)yyVals[-1+yyTop]),((Token)yyVals[-2+yyTop]).getOffset());
|
|
((Method)yyVals[-1+yyTop]).setType(voyt);
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 126:
|
|
// line 1091 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Void voyd = new Void(((Method)yyVals[-1+yyTop]),((Token)yyVals[-2+yyTop]).getOffset());
|
|
((Method)yyVals[-1+yyTop]).set_Modifiers(((Modifiers)yyVals[-3+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).setType(voyd);
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 127:
|
|
// line 1099 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Void Voit = new Void(((Method)yyVals[0+yyTop]),((Token)yyVals[-1+yyTop]).getOffset());
|
|
((Method)yyVals[0+yyTop]).setType(Voit);
|
|
((Method)yyVals[0+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-2+yyTop]));
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 128:
|
|
// line 1106 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Void voit = new Void(((Method)yyVals[0+yyTop]),((Token)yyVals[-1+yyTop]).getOffset());
|
|
((Method)yyVals[0+yyTop]).set_Modifiers(((Modifiers)yyVals[-3+yyTop]));
|
|
((Method)yyVals[0+yyTop]).setType(voit);
|
|
((Method)yyVals[0+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-2+yyTop]));
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 129:
|
|
// line 1114 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Void voyt = new Void(((Method)yyVals[-1+yyTop]),((Token)yyVals[-2+yyTop]).getOffset());
|
|
((Method)yyVals[-1+yyTop]).setType(voyt);
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-3+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 130:
|
|
// line 1122 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Void voyd = new Void(((Method)yyVals[-1+yyTop]),((Token)yyVals[-2+yyTop]).getOffset());
|
|
((Method)yyVals[-1+yyTop]).set_Modifiers(((Modifiers)yyVals[-4+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).setType(voyd);
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
((Method)yyVals[-1+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-3+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 131:
|
|
// line 1132 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) $1.setType(TypePlaceholder.fresh()); */
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 132:
|
|
// line 1137 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) $4.setType(TypePlaceholder.fresh());*/
|
|
((Method)yyVals[0+yyTop]).setGenericParameter(((GenericDeclarationList)yyVals[-1+yyTop]));
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 133:
|
|
// line 1144 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[0+yyTop]).set_Modifiers(((Modifiers)yyVals[-1+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) $2.setType(TypePlaceholder.fresh());*/
|
|
yyVal=((Method)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 134:
|
|
// line 1150 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) $1.setType(TypePlaceholder.fresh());*/
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 135:
|
|
// line 1156 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Method)yyVals[-1+yyTop]).set_Modifiers(((Modifiers)yyVals[-2+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) $2.setType(TypePlaceholder.fresh());*/
|
|
((Method)yyVals[-1+yyTop]).set_ExceptionList(((ExceptionList)yyVals[0+yyTop]));
|
|
yyVal=((Method)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 136:
|
|
// line 1165 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((BaseType)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 137:
|
|
// line 1169 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((BaseType)yyVals[-2+yyTop]).setArray(true);
|
|
}
|
|
break;
|
|
case 138:
|
|
// line 1173 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((RefType)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 139:
|
|
// line 1177 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((RefType)yyVals[-2+yyTop]).setArray(true);
|
|
}
|
|
break;
|
|
case 140:
|
|
// line 1181 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
FieldDeclaration IVD = new FieldDeclaration(((DeclId)yyVals[0+yyTop]).getOffset());
|
|
IVD.getDeclIdVector().addElement( ((DeclId)yyVals[0+yyTop]) );
|
|
IVD.setOffset(((DeclId)yyVals[0+yyTop]).getOffset());
|
|
yyVal = IVD;
|
|
}
|
|
break;
|
|
case 141:
|
|
// line 1188 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((FieldDeclaration)yyVals[-2+yyTop]).getDeclIdVector().addElement(((DeclId)yyVals[0+yyTop]));
|
|
yyVal=((FieldDeclaration)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 142:
|
|
// line 1194 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Block)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 143:
|
|
// line 1199 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Block Blstat = new Block();
|
|
Blstat.set_Statement(((Statement)yyVals[0+yyTop]));
|
|
yyVal=Blstat;
|
|
}
|
|
break;
|
|
case 144:
|
|
// line 1206 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((Block)yyVals[-1+yyTop]).set_Statement(((Statement)yyVals[0+yyTop]));
|
|
yyVal=((Block)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 145:
|
|
// line 1212 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ParameterList PL = new ParameterList();
|
|
PL.set_AddParameter(((FormalParameter)yyVals[0+yyTop]));
|
|
yyVal = PL;
|
|
}
|
|
break;
|
|
case 146:
|
|
// line 1218 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((ParameterList)yyVals[-2+yyTop]).set_AddParameter(((FormalParameter)yyVals[0+yyTop]));
|
|
yyVal = ((ParameterList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 147:
|
|
// line 1224 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ThisCall THCON = new ThisCall(((Token)yyVals[-3+yyTop]).getOffset(),((Token)yyVals[-3+yyTop]).getLexem().length());
|
|
yyVal=THCON;
|
|
}
|
|
break;
|
|
case 148:
|
|
// line 1229 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ThisCall THCONargl = new ThisCall(((Token)yyVals[-4+yyTop]).getOffset(),((Token)yyVals[-4+yyTop]).getLexem().length());
|
|
THCONargl.set_ArgumentList(((ArgumentList)yyVals[-2+yyTop]));
|
|
yyVal=THCONargl;
|
|
}
|
|
break;
|
|
case 149:
|
|
// line 1235 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
SuperCall sCall = new SuperCall(((Token)yyVals[-3+yyTop]).getOffset(),((Token)yyVals[-3+yyTop]).getLexem().length());
|
|
yyVal=sCall;
|
|
}
|
|
break;
|
|
case 150:
|
|
// line 1240 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
SuperCall sCall = new SuperCall(((Token)yyVals[-4+yyTop]).getOffset(),((Token)yyVals[-4+yyTop]).getLexem().length());
|
|
sCall.set_ArgumentList(((ArgumentList)yyVals[-2+yyTop]));
|
|
yyVal=sCall;
|
|
}
|
|
break;
|
|
case 151:
|
|
// line 1247 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/*RefType RT = new RefType(RT.get_UsedId().get_Name_1Element(),null,-1);*/
|
|
RefType RT = new RefType(((UsedId)yyVals[0+yyTop]).get_Name_1Element(),null,-1);
|
|
/*RT.set_UsedId($1);*/
|
|
/*RT.setName(RT.get_UsedId().get_Name_1Element());*/
|
|
yyVal=RT;
|
|
}
|
|
break;
|
|
case 152:
|
|
// line 1255 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((RefType)yyVals[-2+yyTop]).set_UsedId(((UsedId)yyVals[0+yyTop]));
|
|
((RefType)yyVals[-2+yyTop]).setName(((RefType)yyVals[-2+yyTop]).get_UsedId().get_Name_1Element());
|
|
yyVal=((RefType)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 153:
|
|
// line 1262 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Method met = new Method(((Token)yyVals[-2+yyTop]).getOffset());
|
|
/* #JB# 10.04.2005 */
|
|
/* ########################################################### */
|
|
met.setLineNumber(((Token)yyVals[-2+yyTop]).getLineNumber());
|
|
met.setOffset(((Token)yyVals[-2+yyTop]).getOffset());/*hinzugef�gt hoth: 07.04.2006*/
|
|
/* ########################################################### */
|
|
DeclId DImethod = new DeclId();
|
|
DImethod.set_Name(((Token)yyVals[-2+yyTop]).getLexem());
|
|
met.set_DeclId(DImethod);
|
|
yyVal = met;
|
|
}
|
|
break;
|
|
case 154:
|
|
// line 1275 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Method met_para = new Method(((Token)yyVals[-3+yyTop]).getOffset());
|
|
/* #JB# 10.04.2005 */
|
|
/* ########################################################### */
|
|
met_para.setLineNumber(((Token)yyVals[-3+yyTop]).getLineNumber());
|
|
met_para.setOffset(((Token)yyVals[-3+yyTop]).getOffset());/*hinzugef�gt hoth: 07.04.2006*/
|
|
/* ########################################################### */
|
|
DeclId Dimet_para = new DeclId();
|
|
Dimet_para.set_Name(((Token)yyVals[-3+yyTop]).getLexem());
|
|
met_para.set_DeclId(Dimet_para);
|
|
met_para.setParameterList(((ParameterList)yyVals[-1+yyTop]));
|
|
yyVal = met_para;
|
|
}
|
|
break;
|
|
case 155:
|
|
// line 1290 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
BooleanType BT = new BooleanType(null);
|
|
/* #JB# 05.04.2005 */
|
|
/* ########################################################### */
|
|
/*BT.setName($1.getLexem());*/
|
|
/* ########################################################### */
|
|
yyVal=BT;
|
|
}
|
|
break;
|
|
case 156:
|
|
// line 1299 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((BaseType)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 157:
|
|
// line 1305 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("T->Parser->referenctype: " + ((UsedId)yyVals[0+yyTop]), Section.PARSER);
|
|
RefType RT = new RefType(((UsedId)yyVals[0+yyTop]).getQualifiedName(),null,((UsedId)yyVals[0+yyTop]).getOffset());
|
|
|
|
/*ausgetauscht PL 05-07-30*/
|
|
/*RT.set_UsedId($1); */
|
|
/*RT.setName(RT.get_UsedId().get_Name_1Element());*/
|
|
RT.set_ParaList(((UsedId)yyVals[0+yyTop]).get_RealParaList());
|
|
/*RT.setName($1.getQualifiedName());*/
|
|
|
|
|
|
/*PL 05-07-30 eingefuegt containedTypes ANFANG*/
|
|
containedTypes.addElement(RT);
|
|
/*PL 05-07-30 eingefuegt containedTypes ENDE*/
|
|
|
|
yyVal=RT;
|
|
}
|
|
break;
|
|
case 158:
|
|
// line 1327 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((DeclId)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 159:
|
|
// line 1348 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((LocalVarDecl)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 160:
|
|
// line 1352 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Statement)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 161:
|
|
// line 1357 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
FormalParameter FP = new FormalParameter(((DeclId)yyVals[0+yyTop]));
|
|
FP.setType(((Type)yyVals[-1+yyTop]));
|
|
/*FP.set_DeclId($2); //auskommentiert von Andreas Stadelmeier. DeclId wird nun dem Konstruktor von FormalParameter übergeben.*/
|
|
yyVal=FP;
|
|
}
|
|
break;
|
|
case 162:
|
|
// line 1382 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("\nFunktionsdeklaration mit typlosen Parametern: " + ((DeclId)yyVals[0+yyTop]).name, Section.PARSER);
|
|
|
|
FormalParameter FP = new FormalParameter(((DeclId)yyVals[0+yyTop]));
|
|
|
|
/* #JB# 31.03.2005*/
|
|
/* ###########################################################*/
|
|
/*Type T = TypePlaceholder.fresh(); //auskommentiert von Andreas Stadelmeier*/
|
|
/* Type T = new TypePlaceholder(""); /* otth: Name wird automatisch berechnet * /*/
|
|
/* ###########################################################*/
|
|
/*de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("\n--> berechneter Name: " + T.getName(), Section.PARSER);*/
|
|
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) FP.setType( T );*/
|
|
/*FP.set_DeclId($1);*/
|
|
|
|
yyVal=FP;
|
|
}
|
|
break;
|
|
case 163:
|
|
// line 1401 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ArgumentList AL = new ArgumentList();
|
|
AL.expr.addElement(((Expr)yyVals[0+yyTop]));
|
|
yyVal=AL;
|
|
}
|
|
break;
|
|
case 164:
|
|
// line 1407 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
((ArgumentList)yyVals[-2+yyTop]).expr.addElement(((Expr)yyVals[0+yyTop]));
|
|
yyVal=((ArgumentList)yyVals[-2+yyTop]);
|
|
}
|
|
break;
|
|
case 165:
|
|
// line 1413 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((BaseType)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 166:
|
|
// line 1418 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
DeclId DI = new DeclId();
|
|
/* #JB# 10.04.2005 */
|
|
/* ########################################################### */
|
|
DI.setLineNumber(((Token)yyVals[0+yyTop]).getLineNumber());
|
|
DI.setOffset(((Token)yyVals[0+yyTop]).getOffset());/*hinzugef�gt hoth: 07.04.2006*/
|
|
/* ########################################################### */
|
|
DI.set_Name(((Token)yyVals[0+yyTop]).getLexem());
|
|
yyVal=DI;
|
|
}
|
|
break;
|
|
case 167:
|
|
// line 1430 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 168:
|
|
// line 1435 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((LocalVarDecl)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 169:
|
|
// line 1440 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Statement)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 170:
|
|
// line 1444 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((IfStmt)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 171:
|
|
// line 1448 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((IfStmt)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 172:
|
|
// line 1452 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((WhileStmt)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 173:
|
|
// line 1456 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((ForStmt)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 174:
|
|
// line 1459 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Statement)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 175:
|
|
// line 1464 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 176:
|
|
// line 1468 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((NewClass)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 177:
|
|
// line 1473 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
IntegerType IT = new IntegerType(null);
|
|
/* #JB# 05.04.2005 */
|
|
/* ########################################################### */
|
|
/*IT.setName($1.getLexem());*/
|
|
/* ########################################################### */
|
|
yyVal=IT;
|
|
}
|
|
break;
|
|
case 178:
|
|
// line 1482 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
CharacterType CT = new CharacterType(null);
|
|
/* #JB# 05.04.2005 */
|
|
/* ########################################################### */
|
|
/*CT.setName($1.getLexem());*/
|
|
/* ########################################################### */
|
|
yyVal=CT;
|
|
}
|
|
break;
|
|
case 179:
|
|
// line 1492 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("P -> Lokale Variable angelegt!", Section.PARSER);
|
|
LocalVarDecl LVD = new LocalVarDecl(((Type)yyVals[-1+yyTop]).getOffset(),((Type)yyVals[-1+yyTop]).getVariableLength());
|
|
LVD.setType(((Type)yyVals[-1+yyTop]));
|
|
LVD.setDeclidVector(((FieldDeclaration)yyVals[0+yyTop]).getDeclIdVector());
|
|
yyVal = LVD;
|
|
}
|
|
break;
|
|
case 180:
|
|
// line 1503 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("P -> Lokale Variable angelegt!", Section.PARSER);
|
|
LocalVarDecl LVD = new LocalVarDecl(((FieldDeclaration)yyVals[0+yyTop]).getOffset(),((FieldDeclaration)yyVals[0+yyTop]).getVariableLength());
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) LVD.setType(TypePlaceholder.fresh());*/
|
|
LVD.setDeclidVector(((FieldDeclaration)yyVals[0+yyTop]).getDeclIdVector());
|
|
yyVal = LVD;
|
|
}
|
|
break;
|
|
case 181:
|
|
// line 1513 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Block)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 182:
|
|
// line 1517 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((EmptyStmt)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 183:
|
|
// line 1521 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((ExprStmt)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 184:
|
|
// line 1525 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Return)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 185:
|
|
// line 1530 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
IfStmt Ifst = new IfStmt(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
Ifst.set_Expr(((Expr)yyVals[-2+yyTop]));
|
|
Ifst.set_Then_block(((Statement)yyVals[0+yyTop]));
|
|
yyVal=Ifst;
|
|
}
|
|
break;
|
|
case 186:
|
|
// line 1538 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
IfStmt IfstElst = new IfStmt(((Expr)yyVals[-4+yyTop]).getOffset(),((Expr)yyVals[-4+yyTop]).getVariableLength());
|
|
IfstElst.set_Expr(((Expr)yyVals[-4+yyTop]));
|
|
IfstElst.set_Then_block(((Statement)yyVals[-2+yyTop]));
|
|
IfstElst.set_Else_block(((Statement)yyVals[0+yyTop]));
|
|
yyVal=IfstElst;
|
|
}
|
|
break;
|
|
case 187:
|
|
// line 1547 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
WhileStmt Whlst = new WhileStmt(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
Whlst.set_Expr(((Expr)yyVals[-2+yyTop]));
|
|
Whlst.set_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
yyVal=Whlst;
|
|
}
|
|
break;
|
|
case 188:
|
|
// line 1558 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ForStmt Fst = new ForStmt(((Expr)yyVals[-6+yyTop]).getOffset(),((Expr)yyVals[-6+yyTop]).getVariableLength());
|
|
Fst.set_head_Initializer(((Expr)yyVals[-6+yyTop]));
|
|
Fst.set_head_Condition(((Expr)yyVals[-4+yyTop]));
|
|
Fst.set_head_Loop_expr(((Expr)yyVals[-2+yyTop]));
|
|
Fst.set_body_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
|
|
/*Typannahme*/
|
|
yyVal = Fst;
|
|
}
|
|
break;
|
|
case 189:
|
|
// line 1570 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ForStmt Fst = new ForStmt(((Expr)yyVals[-5+yyTop]).getOffset(),((Expr)yyVals[-5+yyTop]).getVariableLength());
|
|
Fst.set_head_Initializer(((Expr)yyVals[-5+yyTop]));
|
|
Fst.set_head_Condition(((Expr)yyVals[-3+yyTop]));
|
|
Fst.set_body_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
|
|
/*Typannahme*/
|
|
yyVal = Fst;
|
|
}
|
|
break;
|
|
case 190:
|
|
// line 1581 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ForStmt Fst = new ForStmt(((Expr)yyVals[-5+yyTop]).getOffset(),((Expr)yyVals[-5+yyTop]).getVariableLength());
|
|
Fst.set_head_Initializer(((Expr)yyVals[-5+yyTop]));
|
|
Fst.set_head_Loop_expr(((Expr)yyVals[-2+yyTop]));
|
|
Fst.set_body_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
|
|
/*Typannahme*/
|
|
yyVal = Fst;
|
|
}
|
|
break;
|
|
case 191:
|
|
// line 1592 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ForStmt Fst = new ForStmt(((Expr)yyVals[-4+yyTop]).getOffset(),((Expr)yyVals[-4+yyTop]).getVariableLength());
|
|
Fst.set_head_Condition(((Expr)yyVals[-4+yyTop]));
|
|
Fst.set_head_Loop_expr(((Expr)yyVals[-2+yyTop]));
|
|
Fst.set_body_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
|
|
/*Typannahme*/
|
|
yyVal = Fst;
|
|
}
|
|
break;
|
|
case 192:
|
|
// line 1603 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ForStmt Fst = new ForStmt(((Expr)yyVals[-4+yyTop]).getOffset(),((Expr)yyVals[-4+yyTop]).getVariableLength());
|
|
Fst.set_head_Initializer(((Expr)yyVals[-4+yyTop]));
|
|
Fst.set_body_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
|
|
/*Typannahme*/
|
|
yyVal = Fst;
|
|
}
|
|
break;
|
|
case 193:
|
|
// line 1613 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ForStmt Fst = new ForStmt(((Expr)yyVals[-3+yyTop]).getOffset(),((Expr)yyVals[-3+yyTop]).getVariableLength());
|
|
Fst.set_head_Condition(((Expr)yyVals[-3+yyTop]));
|
|
Fst.set_body_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
|
|
/*Typannahme*/
|
|
yyVal = Fst;
|
|
}
|
|
break;
|
|
case 194:
|
|
// line 1623 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ForStmt Fst = new ForStmt(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
Fst.set_head_Loop_expr(((Expr)yyVals[-2+yyTop]));
|
|
Fst.set_body_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
|
|
/*Typannahme*/
|
|
yyVal = Fst;
|
|
}
|
|
break;
|
|
case 195:
|
|
// line 1633 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ForStmt Fst = new ForStmt(((Statement)yyVals[0+yyTop]).getOffset(),((Statement)yyVals[0+yyTop]).getVariableLength());
|
|
Fst.set_body_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
|
|
/*Typannahme*/
|
|
yyVal = Fst;
|
|
}
|
|
break;
|
|
case 196:
|
|
// line 1642 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("conditionalexpression", Section.PARSER);
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 197:
|
|
// line 1647 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Assign)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 198:
|
|
// line 1653 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
EmptyStmt Empst = new EmptyStmt();
|
|
yyVal=Empst;
|
|
}
|
|
break;
|
|
case 199:
|
|
// line 1659 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 200:
|
|
// line 1664 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Return ret = new Return(-1,-1);
|
|
yyVal= ret;
|
|
}
|
|
break;
|
|
case 201:
|
|
// line 1669 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Return retexp = new Return(((Expr)yyVals[-1+yyTop]).getOffset(),((Expr)yyVals[-1+yyTop]).getVariableLength());
|
|
retexp.set_ReturnExpr(((Expr)yyVals[-1+yyTop]));
|
|
yyVal=retexp;
|
|
}
|
|
break;
|
|
case 202:
|
|
// line 1676 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Statement)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 203:
|
|
// line 1680 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((IfStmt)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 204:
|
|
// line 1684 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((WhileStmt)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 205:
|
|
// line 1689 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 206:
|
|
// line 1695 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("\nParser --> Zuweisung1!\n", Section.PARSER);
|
|
Assign Ass = new Assign(((UsedId)yyVals[-2+yyTop]).getOffset(),((UsedId)yyVals[-2+yyTop]).getVariableLength());
|
|
LocalOrFieldVar LOFV = new LocalOrFieldVar(((UsedId)yyVals[-2+yyTop]).getOffset(),((UsedId)yyVals[-2+yyTop]).getVariableLength());
|
|
LOFV.set_UsedId(((UsedId)yyVals[-2+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) LOFV.setType(TypePlaceholder.fresh());*/
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) Ass.setType(TypePlaceholder.fresh());*/
|
|
if( ((Operator)yyVals[-1+yyTop]) == null )
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("\nParser --> Zuweisung1 --> " + ((Expr)yyVals[0+yyTop]) + " \n", Section.PARSER);
|
|
Ass.set_Expr( LOFV,((Expr)yyVals[0+yyTop]) );
|
|
}
|
|
else
|
|
{
|
|
Binary Bin = new Binary(((Expr)yyVals[0+yyTop]).getOffset(),((Expr)yyVals[0+yyTop]).getVariableLength());
|
|
Bin.set_Expr1(LOFV);
|
|
Bin.set_Operator(((Operator)yyVals[-1+yyTop]));
|
|
Bin.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("\nParser --> Zuweisung1 --> Binary\n", Section.PARSER);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) Bin.setType(TypePlaceholder.fresh());*/
|
|
Ass.set_Expr( LOFV, Bin );
|
|
}
|
|
yyVal=Ass;
|
|
}
|
|
break;
|
|
case 207:
|
|
// line 1720 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Assign Ass =new Assign(((UsedId)yyVals[-2+yyTop]).getOffset(),((UsedId)yyVals[-2+yyTop]).getVariableLength());
|
|
LocalOrFieldVar LOFV = new LocalOrFieldVar(((UsedId)yyVals[-2+yyTop]).getOffset(),((UsedId)yyVals[-2+yyTop]).getVariableLength());
|
|
LOFV.set_UsedId(((UsedId)yyVals[-2+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) LOFV.setType(TypePlaceholder.fresh());*/
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) Ass.setType(TypePlaceholder.fresh());*/
|
|
if(((Operator)yyVals[-1+yyTop])==null)
|
|
{
|
|
Ass.set_Expr(LOFV,((NewClass)yyVals[0+yyTop]));
|
|
}
|
|
else
|
|
{
|
|
Binary Bin = new Binary(((NewClass)yyVals[0+yyTop]).getOffset(),((NewClass)yyVals[0+yyTop]).getVariableLength());
|
|
Bin.set_Expr1(LOFV);
|
|
Bin.set_Operator(((Operator)yyVals[-1+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) Bin.setType(TypePlaceholder.fresh());*/
|
|
Bin.set_Expr2(((NewClass)yyVals[0+yyTop]));
|
|
Ass.set_Expr(LOFV,Bin);
|
|
}
|
|
yyVal=Ass;
|
|
}
|
|
break;
|
|
case 208:
|
|
// line 1743 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Assign)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 209:
|
|
// line 1747 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 210:
|
|
// line 1751 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 211:
|
|
// line 1755 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 212:
|
|
// line 1759 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 213:
|
|
// line 1763 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((MethodCall)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 214:
|
|
// line 1774 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
IfStmt IfElno = new IfStmt(((Expr)yyVals[-4+yyTop]).getOffset(),((Expr)yyVals[-4+yyTop]).getVariableLength());
|
|
IfElno.set_Expr(((Expr)yyVals[-4+yyTop]));
|
|
IfElno.set_Then_block(((Statement)yyVals[-2+yyTop]));
|
|
IfElno.set_Else_block(((Statement)yyVals[0+yyTop]));
|
|
yyVal=IfElno;
|
|
}
|
|
break;
|
|
case 215:
|
|
// line 1783 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
WhileStmt Whstno = new WhileStmt(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
Whstno.set_Expr(((Expr)yyVals[-2+yyTop]));
|
|
Whstno.set_Loop_block(((Statement)yyVals[0+yyTop]));
|
|
yyVal=Whstno;
|
|
}
|
|
break;
|
|
case 216:
|
|
// line 1791 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 217:
|
|
// line 1795 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary LogOr = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
OrOp OrO = new OrOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
LogOr.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
LogOr.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
LogOr.set_Operator(OrO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) LogOr.setType(TypePlaceholder.fresh());*/
|
|
yyVal=LogOr;
|
|
}
|
|
break;
|
|
case 218:
|
|
// line 1808 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=null;
|
|
}
|
|
break;
|
|
case 219:
|
|
// line 1813 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Block)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 220:
|
|
// line 1817 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
/*Lambdabody kann auch nur aus einer Expression bestehen. In diesem Fall wird ein Block erstellt, welcher als einziges Statement ein return statment mit der expression hat.*/
|
|
/*Bsp.: Aus der Expression |var=="hallo"| wird: |{return var=="hallo";}|*/
|
|
Block ret=new Block();
|
|
ret.statements.add((Statement)new Return(0,0).set_ReturnExpr(((Expr)yyVals[0+yyTop])));
|
|
/*ret.statements.add((ExprStmt)$1);*/
|
|
yyVal=ret;
|
|
}
|
|
break;
|
|
case 221:
|
|
// line 1827 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=null;
|
|
}
|
|
break;
|
|
case 222:
|
|
// line 1831 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((ParameterList)yyVals[-1+yyTop]);
|
|
}
|
|
break;
|
|
case 223:
|
|
// line 1836 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
LambdaExpression lambda = new LambdaExpression(/*((ParameSterList)$2).getOffset(),((ParameterList)$2).getVariableLength()*/0,0);
|
|
if(((ParameterList)yyVals[-2+yyTop])!=null)lambda.setParameterList(((ParameterList)yyVals[-2+yyTop]));
|
|
lambda.setBody((Block)((Block)yyVals[0+yyTop]));
|
|
yyVal=lambda;
|
|
}
|
|
break;
|
|
case 224:
|
|
// line 1855 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((UsedId)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 225:
|
|
// line 1860 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=null;
|
|
}
|
|
break;
|
|
case 226:
|
|
// line 1864 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
TimesOp TEO = new TimesOp(-1,-1);
|
|
yyVal=TEO;
|
|
}
|
|
break;
|
|
case 227:
|
|
// line 1869 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
DivideOp DEO = new DivideOp(-1,-1);
|
|
yyVal=DEO;
|
|
}
|
|
break;
|
|
case 228:
|
|
// line 1874 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
ModuloOp MEO = new ModuloOp(-1,-1);
|
|
yyVal=MEO;
|
|
}
|
|
break;
|
|
case 229:
|
|
// line 1879 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
PlusOp PEO = new PlusOp(-1,-1);
|
|
yyVal=PEO;
|
|
}
|
|
break;
|
|
case 230:
|
|
// line 1884 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
MinusOp MEO = new MinusOp(-1,-1);
|
|
yyVal=MEO;
|
|
}
|
|
break;
|
|
case 231:
|
|
// line 1896 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
PreIncExpr PRINC = new PreIncExpr(((Expr)yyVals[0+yyTop]).getOffset(),((Expr)yyVals[0+yyTop]).getVariableLength());
|
|
PRINC.set_Expr(((Expr)yyVals[0+yyTop]));
|
|
yyVal=PRINC;
|
|
}
|
|
break;
|
|
case 232:
|
|
// line 1903 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
PreDecExpr PRDEC = new PreDecExpr(((Expr)yyVals[0+yyTop]).getOffset(),((Expr)yyVals[0+yyTop]).getVariableLength());
|
|
PRDEC.set_Expr(((Expr)yyVals[0+yyTop]));
|
|
yyVal=PRDEC;
|
|
}
|
|
break;
|
|
case 233:
|
|
// line 1910 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
PostIncExpr PIE = new PostIncExpr(((Expr)yyVals[-1+yyTop]).getOffset(),((Expr)yyVals[-1+yyTop]).getVariableLength());
|
|
PIE.set_Expr(((Expr)yyVals[-1+yyTop]));
|
|
yyVal=PIE;
|
|
}
|
|
break;
|
|
case 234:
|
|
// line 1917 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
PostDecExpr PDE = new PostDecExpr(((Expr)yyVals[-1+yyTop]).getOffset(),((Expr)yyVals[-1+yyTop]).getVariableLength());
|
|
PDE.set_Expr(((Expr)yyVals[-1+yyTop]));
|
|
yyVal=PDE;
|
|
}
|
|
break;
|
|
case 235:
|
|
// line 1925 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("M1", Section.PARSER);
|
|
MethodCall MC = new MethodCall(((UsedId)yyVals[-2+yyTop]).getOffset(),((UsedId)yyVals[-2+yyTop]).getVariableLength());
|
|
UsedId udidmeth = new UsedId(((UsedId)yyVals[-2+yyTop]).getOffset());
|
|
udidmeth.set_Name((String)((((UsedId)yyVals[-2+yyTop]).get_Name()).elementAt(((UsedId)yyVals[-2+yyTop]).get_Name().size()-1)));
|
|
MC.set_UsedId(udidmeth);
|
|
Receiver rec = null;
|
|
if (((UsedId)yyVals[-2+yyTop]).get_Name().size() > 2) {
|
|
|
|
((UsedId)yyVals[-2+yyTop]).removeLast();
|
|
|
|
/*macht aus der Liste von Strings */
|
|
/*in usedid.name einen InstVar */
|
|
InstVar INSTVA = new InstVar(((UsedId)yyVals[-2+yyTop]),((UsedId)yyVals[-2+yyTop]).getOffset(),((UsedId)yyVals[-2+yyTop]).getVariableLength());
|
|
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) INSTVA.setType(TypePlaceholder.fresh());*/
|
|
rec = new Receiver(INSTVA);
|
|
}
|
|
else if (((UsedId)yyVals[-2+yyTop]).get_Name().size() == 2) {
|
|
LocalOrFieldVar LOFV = new LocalOrFieldVar(((UsedId)yyVals[-2+yyTop]).getOffset(),((UsedId)yyVals[-2+yyTop]).getVariableLength());
|
|
((UsedId)yyVals[-2+yyTop]).removeLast();
|
|
LOFV.set_UsedId(((UsedId)yyVals[-2+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) LOFV.setType(TypePlaceholder.fresh());*/
|
|
rec = new Receiver(LOFV);
|
|
}
|
|
MC.set_Receiver(rec);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) MC.setType(TypePlaceholder.fresh());*/
|
|
yyVal=MC;
|
|
}
|
|
break;
|
|
case 236:
|
|
// line 1955 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("M2", Section.PARSER);
|
|
MethodCall MCarg = new MethodCall(((UsedId)yyVals[-3+yyTop]).getOffset(),((UsedId)yyVals[-3+yyTop]).getVariableLength());
|
|
UsedId udidmeth = new UsedId(((UsedId)yyVals[-3+yyTop]).getOffset());
|
|
udidmeth.set_Name((String)((((UsedId)yyVals[-3+yyTop]).get_Name()).elementAt(((UsedId)yyVals[-3+yyTop]).get_Name().size()-1)));
|
|
MCarg.set_UsedId(udidmeth);
|
|
Receiver rec = null;
|
|
if (((UsedId)yyVals[-3+yyTop]).get_Name().size() > 2) {
|
|
|
|
((UsedId)yyVals[-3+yyTop]).removeLast();
|
|
|
|
/*macht aus der Liste von Strings */
|
|
/*in usedid.name einen InstVar */
|
|
InstVar INSTVA = new InstVar(((UsedId)yyVals[-3+yyTop]),((UsedId)yyVals[-3+yyTop]).getOffset(),((UsedId)yyVals[-3+yyTop]).getVariableLength());
|
|
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) INSTVA.setType(TypePlaceholder.fresh());*/
|
|
rec = new Receiver(INSTVA);
|
|
}
|
|
else if (((UsedId)yyVals[-3+yyTop]).get_Name().size() == 2) {
|
|
LocalOrFieldVar LOFV = new LocalOrFieldVar(((UsedId)yyVals[-3+yyTop]).getOffset(),((UsedId)yyVals[-3+yyTop]).getVariableLength());
|
|
((UsedId)yyVals[-3+yyTop]).removeLast();
|
|
LOFV.set_UsedId(((UsedId)yyVals[-3+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) LOFV.setType(TypePlaceholder.fresh());*/
|
|
rec = new Receiver(LOFV);
|
|
}
|
|
MCarg.set_Receiver(rec);
|
|
MCarg.set_ArgumentList(((ArgumentList)yyVals[-1+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) MCarg.setType(TypePlaceholder.fresh());*/
|
|
yyVal=MCarg;
|
|
}
|
|
break;
|
|
case 237:
|
|
// line 1986 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("M3", Section.PARSER);
|
|
MethodCall MCpr = new MethodCall(((Expr)yyVals[-4+yyTop]).getOffset(),((Expr)yyVals[-4+yyTop]).getVariableLength());
|
|
|
|
/* PL 05-08-21 primary ist kein UsedId*/
|
|
/*$1.usedid.set_Name($3.getLexem());*/
|
|
/*MCpr.set_UsedId($1.get_UsedId());*/
|
|
UsedId udidmeth = new UsedId(((Expr)yyVals[-4+yyTop]).getOffset());
|
|
udidmeth.set_Name(((Token)yyVals[-2+yyTop]).getLexem());
|
|
MCpr.set_UsedId(udidmeth);
|
|
|
|
/* #JB# 04.06.2005 */
|
|
/* ########################################################### */
|
|
MCpr.set_Receiver(new Receiver(((Expr)yyVals[-4+yyTop])));
|
|
/* ########################################################### */
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) MCpr.setType(TypePlaceholder.fresh());*/
|
|
yyVal=MCpr;
|
|
}
|
|
break;
|
|
case 238:
|
|
// line 2005 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
de.dhbwstuttgart.logger.Logger.getLogger("parser").debug("M4", Section.PARSER);
|
|
MethodCall MCPA = new MethodCall(((Expr)yyVals[-5+yyTop]).getOffset(),((Expr)yyVals[-5+yyTop]).getVariableLength());
|
|
|
|
/* PL 05-08-21 primary ist kein UsedId*/
|
|
/*$1.usedid.set_Name($3.getLexem());*/
|
|
/*MCPA.set_UsedId($1.get_UsedId());*/
|
|
UsedId udidmeth = new UsedId(((Token)yyVals[-3+yyTop]).getOffset());
|
|
udidmeth.set_Name(((Token)yyVals[-3+yyTop]).getLexem());
|
|
MCPA.set_UsedId(udidmeth);
|
|
|
|
/* #JB# 04.06.2005 */
|
|
/* ########################################################### */
|
|
MCPA.set_Receiver(new Receiver(((Expr)yyVals[-5+yyTop])));
|
|
/* ########################################################### */
|
|
MCPA.set_ArgumentList(((ArgumentList)yyVals[-1+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) MCPA.setType(TypePlaceholder.fresh());*/
|
|
yyVal=MCPA;
|
|
}
|
|
break;
|
|
case 239:
|
|
// line 2028 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
NewClass NC = new NewClass(((UsedId)yyVals[-2+yyTop]).getOffset(),((UsedId)yyVals[-2+yyTop]).getVariableLength());
|
|
NC.set_UsedId(((UsedId)yyVals[-2+yyTop]));
|
|
usedIdsToCheck.addElement(((UsedId)yyVals[-2+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) NC.setType(TypePlaceholder.fresh());*/
|
|
yyVal=NC;
|
|
}
|
|
break;
|
|
case 240:
|
|
// line 2036 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
NewClass NCarg = new NewClass(((UsedId)yyVals[-3+yyTop]).getOffset(),((UsedId)yyVals[-3+yyTop]).getVariableLength());
|
|
NCarg.set_UsedId(((UsedId)yyVals[-3+yyTop]));
|
|
usedIdsToCheck.addElement(((UsedId)yyVals[-3+yyTop]));
|
|
NCarg.set_ArgumentList(((ArgumentList)yyVals[-1+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) NCarg.setType(TypePlaceholder.fresh());*/
|
|
yyVal=NCarg;
|
|
}
|
|
break;
|
|
case 241:
|
|
// line 2046 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 242:
|
|
// line 2050 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary And = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
AndOp AndO = new AndOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
And.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
And.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
And.set_Operator(AndO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) And.setType(TypePlaceholder.fresh());*/
|
|
yyVal=And;
|
|
}
|
|
break;
|
|
case 243:
|
|
// line 2066 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 244:
|
|
// line 2070 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 245:
|
|
// line 2074 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
PositivExpr POSEX=new PositivExpr(((Expr)yyVals[0+yyTop]).getOffset(),((Expr)yyVals[0+yyTop]).getVariableLength());
|
|
UnaryPlus UP= new UnaryPlus();
|
|
POSEX.set_UnaryPlus(UP);
|
|
POSEX.set_Expr(((Expr)yyVals[0+yyTop]));
|
|
yyVal=POSEX;
|
|
}
|
|
break;
|
|
case 246:
|
|
// line 2082 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
NegativeExpr NEGEX=new NegativeExpr(((Expr)yyVals[0+yyTop]).getOffset(),((Expr)yyVals[0+yyTop]).getVariableLength());
|
|
UnaryMinus UM=new UnaryMinus();
|
|
NEGEX.set_UnaryMinus(UM);
|
|
NEGEX.set_Expr(((Expr)yyVals[0+yyTop]));
|
|
yyVal=NEGEX;
|
|
}
|
|
break;
|
|
case 247:
|
|
// line 2090 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 248:
|
|
// line 2095 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 249:
|
|
// line 2099 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
if (((UsedId)yyVals[0+yyTop]).get_Name().size() > 1) {
|
|
|
|
/*macht aus der Liste von Strings */
|
|
/*in usedid.name einen InstVar */
|
|
InstVar INSTVA = new InstVar(((UsedId)yyVals[0+yyTop]),((UsedId)yyVals[0+yyTop]).getOffset(),((UsedId)yyVals[0+yyTop]).getVariableLength());
|
|
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) INSTVA.setType(TypePlaceholder.fresh());*/
|
|
yyVal = INSTVA;
|
|
}
|
|
else {
|
|
LocalOrFieldVar Postincexpr = new LocalOrFieldVar(((UsedId)yyVals[0+yyTop]).getOffset(),((UsedId)yyVals[0+yyTop]).getVariableLength());
|
|
Postincexpr.set_UsedId(((UsedId)yyVals[0+yyTop]));
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) Postincexpr.setType(TypePlaceholder.fresh());*/
|
|
yyVal=Postincexpr;
|
|
}
|
|
}
|
|
break;
|
|
case 250:
|
|
// line 2117 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 251:
|
|
// line 2121 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 252:
|
|
// line 2126 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 253:
|
|
// line 2131 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 255:
|
|
// line 2137 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Literal)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 256:
|
|
// line 2141 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
This T = new This(((Token)yyVals[0+yyTop]).getOffset(),((Token)yyVals[0+yyTop]).getLexem().length());
|
|
UsedId UT = new UsedId(((Token)yyVals[0+yyTop]).getOffset());
|
|
UT.set_Name(((Token)yyVals[0+yyTop]).getLexem());
|
|
T.set_UsedId(UT);
|
|
yyVal=T;
|
|
}
|
|
break;
|
|
case 257:
|
|
// line 2162 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((MethodCall)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 258:
|
|
// line 2166 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 259:
|
|
// line 2171 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{yyVal=((Expr)yyVals[0+yyTop]);}
|
|
break;
|
|
case 260:
|
|
// line 2173 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{NotExpr NE=new NotExpr(((Expr)yyVals[0+yyTop]).getOffset(),((Expr)yyVals[0+yyTop]).getVariableLength());
|
|
UnaryNot UN=new UnaryNot();
|
|
NE.set_UnaryNot(UN);
|
|
NE.set_Expr(((Expr)yyVals[0+yyTop]));
|
|
yyVal=NE;
|
|
}
|
|
break;
|
|
case 261:
|
|
// line 2179 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{yyVal=((CastExpr)yyVals[0+yyTop]);}
|
|
break;
|
|
case 262:
|
|
// line 2181 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{yyVal=((Expr)yyVals[0+yyTop]);}
|
|
break;
|
|
case 264:
|
|
// line 2186 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{IntLiteral IL = new IntLiteral();
|
|
IL.set_Int(((Token)yyVals[0+yyTop]).String2Int());
|
|
yyVal = IL;
|
|
}
|
|
break;
|
|
case 265:
|
|
// line 2191 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{BoolLiteral BL = new BoolLiteral();
|
|
BL.set_Bool(((Token)yyVals[0+yyTop]).String2Bool());
|
|
yyVal = BL;
|
|
}
|
|
break;
|
|
case 266:
|
|
// line 2195 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{CharLiteral CL = new CharLiteral();
|
|
CL.set_Char(((Token)yyVals[0+yyTop]).CharInString());
|
|
yyVal=CL;
|
|
}
|
|
break;
|
|
case 267:
|
|
// line 2200 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
StringLiteral ST = new StringLiteral();
|
|
ST.set_String(((Token)yyVals[0+yyTop]).get_String());
|
|
yyVal=ST;
|
|
}
|
|
break;
|
|
case 268:
|
|
// line 2205 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{ LongLiteral LL = new LongLiteral();
|
|
LL.set_Long(((Token)yyVals[0+yyTop]).String2Long());
|
|
yyVal = LL;
|
|
}
|
|
break;
|
|
case 269:
|
|
// line 2209 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
FloatLiteral FL = new FloatLiteral();
|
|
FL.set_Float(((Token)yyVals[0+yyTop]).String2Float());
|
|
yyVal = FL;
|
|
}
|
|
break;
|
|
case 270:
|
|
// line 2214 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
DoubleLiteral DL = new DoubleLiteral();
|
|
DL.set_Double(((Token)yyVals[0+yyTop]).String2Double());
|
|
yyVal = DL;
|
|
}
|
|
break;
|
|
case 271:
|
|
// line 2220 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Null NN = new Null();
|
|
yyVal=NN;
|
|
}
|
|
break;
|
|
case 272:
|
|
// line 2226 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
CastExpr CaEx=new CastExpr(((Expr)yyVals[0+yyTop]).getOffset(),((Expr)yyVals[0+yyTop]).getVariableLength());
|
|
CaEx.set_Type(((BaseType)yyVals[-2+yyTop]));
|
|
CaEx.set_Expr(((Expr)yyVals[0+yyTop]));
|
|
yyVal=CaEx;
|
|
}
|
|
break;
|
|
case 273:
|
|
// line 2235 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 274:
|
|
// line 2239 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
}
|
|
break;
|
|
case 275:
|
|
// line 2243 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 276:
|
|
// line 2247 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary EQ = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
EqualOp EO = new EqualOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
EQ.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
EQ.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
EQ.set_Operator(EO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) EQ.setType(TypePlaceholder.fresh());*/
|
|
yyVal=EQ;
|
|
}
|
|
break;
|
|
case 277:
|
|
// line 2257 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary NEQ = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
NotEqualOp NEO = new NotEqualOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
NEQ.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
NEQ.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
NEQ.set_Operator(NEO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) NEQ.setType(TypePlaceholder.fresh());*/
|
|
yyVal=NEQ;
|
|
}
|
|
break;
|
|
case 278:
|
|
// line 2268 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 279:
|
|
// line 2272 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary LO = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
LessOp LOO = new LessOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
LO.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
LO.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
LO.set_Operator(LOO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) LO.setType(TypePlaceholder.fresh());*/
|
|
yyVal=LO;
|
|
}
|
|
break;
|
|
case 280:
|
|
// line 2282 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary GO = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
GreaterOp GOO = new GreaterOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
GO.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
GO.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
GO.set_Operator( GOO );
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) GO.setType(TypePlaceholder.fresh());*/
|
|
yyVal=GO;
|
|
}
|
|
break;
|
|
case 281:
|
|
// line 2292 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary LE = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
LessEquOp LEO = new LessEquOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
LE.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
LE.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
LE.set_Operator(LEO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) LE.setType(TypePlaceholder.fresh());*/
|
|
yyVal=LE;
|
|
}
|
|
break;
|
|
case 282:
|
|
// line 2302 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary GE = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
GreaterEquOp GEO = new GreaterEquOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
GE.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
GE.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
GE.set_Operator(GEO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) GE.setType(TypePlaceholder.fresh());*/
|
|
yyVal=GE;
|
|
}
|
|
break;
|
|
case 283:
|
|
// line 2312 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
InstanceOf ISO=new InstanceOf(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
ISO.set_Expr(((Expr)yyVals[-2+yyTop]));
|
|
ISO.set_Type(((RefType)yyVals[0+yyTop]));
|
|
yyVal=ISO;
|
|
}
|
|
break;
|
|
case 284:
|
|
// line 2320 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 285:
|
|
// line 2325 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 286:
|
|
// line 2329 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary AD = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
PlusOp PO = new PlusOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
AD.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
AD.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
AD.set_Operator(PO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) AD.setType(TypePlaceholder.fresh());*/
|
|
yyVal=AD;
|
|
}
|
|
break;
|
|
case 287:
|
|
// line 2339 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary MI = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
MinusOp MO = new MinusOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
MI.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
MI.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
MI.set_Operator(MO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) MI.setType(TypePlaceholder.fresh());*/
|
|
yyVal=MI;
|
|
}
|
|
break;
|
|
case 288:
|
|
// line 2350 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
yyVal=((Expr)yyVals[0+yyTop]);
|
|
}
|
|
break;
|
|
case 289:
|
|
// line 2354 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary ML = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
TimesOp TO = new TimesOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
ML.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
ML.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
ML.set_Operator(TO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) ML.setType(TypePlaceholder.fresh());*/
|
|
yyVal=ML;
|
|
}
|
|
break;
|
|
case 290:
|
|
// line 2364 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary DV = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
DivideOp DO = new DivideOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
DV.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
DV.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
DV.set_Operator(DO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) DV.setType(TypePlaceholder.fresh());*/
|
|
yyVal = DV;
|
|
}
|
|
break;
|
|
case 291:
|
|
// line 2374 "./../src/de/dhbwstuttgart/parser/JavaParser.jay"
|
|
{
|
|
Binary MD = new Binary(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
ModuloOp MO = new ModuloOp(((Expr)yyVals[-2+yyTop]).getOffset(),((Expr)yyVals[-2+yyTop]).getVariableLength());
|
|
MD.set_Expr1(((Expr)yyVals[-2+yyTop]));
|
|
MD.set_Expr2(((Expr)yyVals[0+yyTop]));
|
|
MD.set_Operator(MO);
|
|
/*auskommentiert von Andreas Stadelmeier (a10023) MD.setType(TypePlaceholder.fresh());*/
|
|
yyVal =MD;
|
|
}
|
|
break;
|
|
// line 3144 "-"
|
|
}
|
|
yyTop -= yyLen[yyN];
|
|
yyState = yyStates[yyTop];
|
|
int yyM = yyLhs[yyN];
|
|
if (yyState == 0 && yyM == 0) {
|
|
//t if (yydebug != null) yydebug.shift(0, yyFinal);
|
|
yyState = yyFinal;
|
|
if (yyToken < 0) {
|
|
yyToken = yyLex.advance() ? yyLex.token() : 0;
|
|
//t if (yydebug != null)
|
|
//t yydebug.lex(yyState, yyToken,yyname(yyToken), yyLex.value());
|
|
}
|
|
if (yyToken == 0) {
|
|
//t if (yydebug != null) yydebug.accept(yyVal);
|
|
return yyVal;
|
|
}
|
|
continue yyLoop;
|
|
}
|
|
if ((yyN = yyGindex[yyM]) != 0 && (yyN += yyState) >= 0
|
|
&& yyN < yyTable.length && yyCheckInit.yyCheck[yyN] == yyState)
|
|
yyState = yyTable[yyN];
|
|
else
|
|
yyState = yyDgoto[yyM];
|
|
//t if (yydebug != null) yydebug.shift(yyStates[yyTop], yyState);
|
|
continue yyLoop;
|
|
}
|
|
}
|
|
}
|
|
|
|
protected static final short yyLhs [] = { -1,
|
|
0, 0, 0, 0, 0, 99, 27, 27, 26, 93,
|
|
93, 28, 28, 106, 106, 24, 25, 25, 23, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 9, 9, 8,
|
|
8, 2, 2, 2, 2, 113, 113, 113, 113, 113,
|
|
113, 116, 116, 116, 7, 7, 41, 41, 29, 33,
|
|
33, 3, 3, 34, 34, 16, 16, 42, 42, 42,
|
|
42, 42, 42, 30, 4, 4, 32, 17, 17, 17,
|
|
31, 114, 114, 114, 114, 115, 115, 5, 5, 18,
|
|
18, 111, 107, 107, 10, 6, 20, 20, 11, 12,
|
|
12, 12, 12, 12, 12, 14, 43, 43, 108, 108,
|
|
109, 109, 109, 109, 49, 95, 98, 98, 94, 94,
|
|
96, 96, 97, 97, 13, 13, 13, 13, 13, 13,
|
|
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
|
|
13, 13, 13, 13, 13, 40, 40, 40, 40, 19,
|
|
19, 44, 45, 45, 51, 51, 110, 110, 110, 110,
|
|
39, 39, 15, 15, 37, 37, 38, 21, 81, 81,
|
|
50, 50, 104, 104, 36, 22, 79, 47, 82, 82,
|
|
82, 82, 82, 82, 72, 72, 35, 35, 48, 48,
|
|
80, 80, 80, 80, 87, 88, 84, 85, 85, 85,
|
|
85, 85, 85, 85, 85, 70, 70, 90, 78, 91,
|
|
91, 83, 83, 83, 69, 100, 100, 73, 73, 73,
|
|
73, 73, 73, 89, 86, 68, 68, 102, 46, 46,
|
|
52, 52, 71, 103, 101, 101, 101, 101, 101, 101,
|
|
74, 75, 76, 77, 105, 105, 105, 105, 92, 92,
|
|
67, 67, 58, 58, 58, 58, 58, 56, 56, 56,
|
|
56, 55, 66, 66, 54, 54, 54, 54, 57, 57,
|
|
57, 65, 65, 53, 53, 53, 53, 53, 53, 53,
|
|
53, 112, 64, 64, 63, 63, 63, 62, 62, 62,
|
|
62, 62, 62, 61, 60, 60, 60, 59, 59, 59,
|
|
59,
|
|
};
|
|
protected static final short yyLen [] = { 2,
|
|
1, 2, 3, 2, 3, 3, 1, 2, 3, 1,
|
|
2, 1, 1, 1, 1, 3, 3, 3, 1, 3,
|
|
4, 4, 5, 4, 5, 5, 6, 1, 4, 1,
|
|
4, 3, 4, 4, 5, 1, 4, 1, 3, 6,
|
|
3, 1, 3, 3, 2, 3, 1, 2, 2, 2,
|
|
3, 2, 3, 2, 3, 1, 2, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 2, 1, 1, 1, 1,
|
|
2, 1, 3, 3, 1, 0, 3, 1, 1, 1,
|
|
1, 2, 2, 3, 6, 2, 3, 1, 3, 3,
|
|
2, 4, 2, 3, 4, 2, 2, 3, 3, 4,
|
|
2, 3, 3, 4, 2, 1, 1, 3, 1, 3,
|
|
1, 3, 1, 3, 3, 2, 3, 4, 3, 4,
|
|
4, 5, 2, 3, 3, 4, 3, 4, 4, 5,
|
|
1, 2, 2, 2, 3, 1, 3, 1, 3, 1,
|
|
3, 1, 1, 2, 1, 3, 4, 5, 4, 5,
|
|
1, 3, 3, 4, 1, 1, 1, 1, 1, 1,
|
|
2, 1, 1, 3, 1, 1, 1, 2, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 2, 1,
|
|
1, 1, 1, 1, 5, 7, 5, 9, 8, 8,
|
|
8, 7, 7, 7, 6, 1, 1, 1, 2, 2,
|
|
3, 1, 1, 1, 1, 3, 3, 1, 1, 1,
|
|
1, 1, 1, 7, 5, 1, 3, 1, 1, 1,
|
|
2, 3, 3, 1, 1, 1, 1, 1, 1, 1,
|
|
2, 2, 2, 2, 3, 4, 5, 6, 4, 5,
|
|
1, 3, 1, 1, 2, 2, 1, 1, 1, 1,
|
|
1, 1, 1, 3, 1, 1, 1, 1, 1, 2,
|
|
1, 1, 3, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 4, 1, 3, 1, 3, 3, 1, 3, 3,
|
|
3, 3, 3, 1, 1, 3, 3, 1, 3, 3,
|
|
3,
|
|
};
|
|
protected static final short yyDefRed [] = { 0,
|
|
62, 155, 178, 0, 63, 177, 60, 59, 58, 0,
|
|
0, 0, 61, 19, 0, 14, 15, 13, 12, 7,
|
|
0, 0, 157, 165, 156, 0, 0, 0, 0, 47,
|
|
0, 0, 10, 0, 0, 0, 0, 0, 0, 0,
|
|
8, 0, 0, 0, 71, 0, 0, 0, 0, 0,
|
|
48, 11, 0, 0, 0, 0, 0, 0, 20, 0,
|
|
0, 6, 9, 0, 0, 0, 0, 32, 0, 16,
|
|
0, 72, 0, 75, 137, 139, 5, 0, 0, 0,
|
|
0, 106, 107, 0, 49, 64, 67, 50, 0, 0,
|
|
0, 0, 45, 0, 80, 0, 81, 0, 0, 56,
|
|
68, 0, 0, 0, 158, 0, 0, 0, 70, 0,
|
|
69, 22, 0, 0, 24, 0, 18, 0, 54, 0,
|
|
52, 0, 65, 79, 78, 0, 0, 0, 0, 0,
|
|
34, 0, 0, 0, 77, 21, 0, 0, 33, 0,
|
|
0, 0, 31, 0, 82, 0, 0, 0, 113, 0,
|
|
0, 132, 0, 142, 96, 0, 134, 46, 57, 0,
|
|
93, 91, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 83, 26, 51, 29, 53, 66,
|
|
0, 86, 0, 55, 43, 44, 73, 74, 23, 0,
|
|
25, 35, 111, 0, 108, 0, 0, 0, 0, 0,
|
|
0, 264, 268, 270, 269, 265, 271, 266, 267, 0,
|
|
0, 0, 198, 97, 0, 0, 140, 0, 0, 181,
|
|
0, 159, 0, 0, 255, 252, 0, 0, 258, 0,
|
|
209, 210, 0, 0, 183, 169, 143, 160, 172, 173,
|
|
170, 171, 182, 184, 208, 0, 0, 174, 125, 153,
|
|
162, 0, 145, 0, 0, 89, 0, 0, 0, 0,
|
|
151, 0, 166, 141, 0, 256, 0, 0, 0, 0,
|
|
0, 0, 247, 288, 0, 0, 278, 0, 0, 0,
|
|
0, 0, 0, 0, 196, 175, 87, 243, 244, 250,
|
|
251, 176, 197, 257, 261, 99, 0, 119, 94, 90,
|
|
0, 0, 0, 135, 0, 0, 84, 101, 0, 0,
|
|
0, 27, 0, 0, 0, 200, 0, 0, 0, 0,
|
|
0, 231, 232, 221, 0, 0, 0, 98, 144, 168,
|
|
218, 0, 0, 233, 234, 199, 229, 230, 226, 227,
|
|
228, 225, 0, 161, 0, 154, 114, 129, 120, 92,
|
|
0, 0, 0, 245, 246, 260, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 100, 126, 0, 0, 121, 95, 103,
|
|
102, 0, 0, 112, 0, 0, 0, 201, 0, 163,
|
|
0, 0, 0, 0, 222, 235, 0, 219, 223, 220,
|
|
0, 206, 207, 146, 152, 0, 0, 289, 290, 291,
|
|
0, 0, 283, 281, 282, 279, 280, 0, 0, 0,
|
|
0, 0, 0, 0, 130, 122, 104, 0, 0, 0,
|
|
0, 0, 149, 0, 0, 147, 0, 0, 236, 0,
|
|
239, 0, 272, 85, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 185, 0, 204, 203, 164, 150, 148, 187,
|
|
237, 0, 240, 195, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 238, 194, 193, 0, 192, 0, 0,
|
|
0, 0, 0, 186, 191, 190, 189, 0, 0, 0,
|
|
188, 0, 215, 0, 214,
|
|
};
|
|
protected static final short yyDgoto [] = { 15,
|
|
16, 17, 68, 122, 123, 124, 59, 35, 40, 125,
|
|
94, 95, 96, 97, 98, 99, 100, 101, 216, 103,
|
|
217, 105, 18, 19, 37, 20, 21, 271, 60, 85,
|
|
23, 88, 61, 69, 24, 25, 26, 27, 262, 219,
|
|
29, 30, 220, 155, 221, 399, 222, 223, 157, 253,
|
|
325, 224, 225, 226, 227, 272, 273, 274, 275, 276,
|
|
277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
|
|
229, 390, 230, 288, 289, 290, 291, 235, 0, 236,
|
|
237, 238, 454, 239, 240, 455, 241, 242, 456, 243,
|
|
244, 292, 31, 82, 83, 194, 150, 84, 32, 293,
|
|
343, 332, 246, 391, 294, 33, 109, 110, 175, 248,
|
|
111, 295, 0, 73, 45, 74,
|
|
};
|
|
protected static final short yySindex [] = { 1370,
|
|
0, 0, 0, -232, 0, 0, 0, 0, 0, -228,
|
|
-228, -198, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
1095, 104, 0, 0, 0, 60, 103, -23, 1210, 0,
|
|
1557, 1095, 0, 99, -92, 256, 215, 233, 247, -80,
|
|
0, 1557, 11, -59, 0, 208, 236, 1370, -232, -198,
|
|
0, 0, 1095, 1557, 33, -228, -228, 2576, 0, -93,
|
|
-12, 0, 0, -34, 33, -228, 2606, 0, 18, 0,
|
|
-47, 0, 162, 0, 0, 0, 0, -92, -80, 1557,
|
|
72, 0, 0, 192, 0, 0, 0, 0, 222, 56,
|
|
356, 33, 0, 234, 0, 222, 0, 150, 2642, 0,
|
|
0, 40, 404, 409, 0, 431, 172, 1875, 0, 351,
|
|
0, 0, -12, -228, 0, 0, 0, 228, 0, 356,
|
|
0, 2679, 0, 0, 0, 234, 416, 56, 1875, -228,
|
|
0, -228, -228, -59, 0, 0, -93, -12, 0, 18,
|
|
-228, 33, 0, 2133, 0, 356, 150, -25, 0, 237,
|
|
56, 0, 172, 0, 0, -228, 0, 0, 0, 176,
|
|
0, 0, 967, 185, 356, 150, 49, 432, 56, 343,
|
|
150, 172, 351, 2177, 0, 0, 0, 0, 0, 0,
|
|
56, 0, 194, 0, 0, 0, 0, 0, 0, -12,
|
|
0, 0, 0, 462, 0, 461, 465, 481, 467, 469,
|
|
470, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
994, 994, 0, 0, 232, 458, 0, 52, 176, 0,
|
|
2221, 0, 459, 188, 0, 0, 473, 137, 0, 464,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 5, 0, 0, 0, 0,
|
|
0, 176, 0, 203, 33, 0, 150, 150, 468, 409,
|
|
0, 476, 0, 0, -228, 0, 232, 994, 994, 994,
|
|
206, 137, 0, 0, 358, 334, 0, 117, 96, 490,
|
|
442, 413, 231, 238, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 310, 0, 0, 0,
|
|
150, 56, 56, 0, 150, 291, 0, 0, 2277, 2333,
|
|
164, 0, -228, 537, 967, 0, 488, 624, 641, 967,
|
|
206, 0, 0, 0, 345, 668, 458, 0, 0, 0,
|
|
0, 697, 252, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 967, 0, 241, 0, 0, 0, 0, 0,
|
|
-228, 518, 55, 0, 0, 0, 994, 994, 994, 994,
|
|
994, -228, 994, 994, 994, 994, 994, 994, 994, 994,
|
|
994, 994, 994, 0, 0, 150, 150, 0, 0, 0,
|
|
0, 2377, 967, 0, 724, 500, 521, 0, 507, 0,
|
|
363, 508, 383, 530, 0, 0, 388, 0, 0, 0,
|
|
535, 0, 0, 0, 0, 751, 994, 0, 0, 0,
|
|
358, 358, 0, 0, 0, 0, 0, 117, 117, 96,
|
|
490, 442, 413, 231, 0, 0, 0, 517, 768, 522,
|
|
807, 2421, 0, 967, 524, 0, 525, 2465, 0, 824,
|
|
0, 397, 0, 0, 2465, 545, 860, 911, 528, 548,
|
|
552, 0, 0, 326, 0, 0, 0, 0, 0, 0,
|
|
0, 410, 0, 0, 2465, 2465, 553, 2465, 557, 938,
|
|
967, 967, 2465, 0, 0, 0, 2465, 0, 2465, 2465,
|
|
561, 562, 567, 0, 0, 0, 0, 2465, 2421, 2421,
|
|
0, 348, 0, 2421, 0,
|
|
};
|
|
protected static final short yyRindex [] = { 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 1133, 0, 0, 0, 2519, 2548, 0, 0, 0,
|
|
619, 0, 0, -77, 0, 0, 0, 0, -75, 0,
|
|
0, 620, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 621, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
251, 0, 0, 0, 0, 0, 0, 0, 0, 622,
|
|
279, 0, 0, 0, 0, 0, 0, 0, 2709, 0,
|
|
-9, 0, 0, 0, 0, 0, 0, 13, 0, 0,
|
|
0, 0, 0, 338, 0, -5, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 297, 0, 0, 0, 41,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 35, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 369, 47, 0, 0, 0, 0,
|
|
63, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 293, 0, 0, 0, 0, 0, -44,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 141,
|
|
0, 0, 0, 0, 0, 564, 0, 101, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 1263, 0, 0, 0,
|
|
0, 0, -49, 22, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, -46, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 85, 88, 0, 574,
|
|
0, 94, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
569, 2064, 0, 0, 1969, 1694, 0, 1855, 1738, 1274,
|
|
1300, 1384, -20, 1410, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
95, 0, 0, 0, 125, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
1421, 0, 0, 0, 0, 0, 576, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 325, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 138, 175, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
1989, 2026, 0, 0, 0, 0, 0, 1895, 1914, 1749,
|
|
1464, 1552, 1578, 1622, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 2089, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0,
|
|
};
|
|
protected static final short yyGindex [] = { 589,
|
|
0, 0, -15, 0, 529, 0, 452, 591, 593, 0,
|
|
277, 0, 4, 0, 1737, 0, 547, 0, -24, -37,
|
|
3, 333, 20, 0, 0, 68, 623, 1, 578, -128,
|
|
-51, 25, -13, 575, 0, 0, 391, -56, 0, 551,
|
|
30, 9, -82, 0, -138, 0, 0, 0, 505, 315,
|
|
79, 0, 0, 0, 0, -141, 0, 734, 92, 0,
|
|
119, 93, 292, 296, 299, 290, 295, 0, 0, 329,
|
|
0, -154, 0, -54, -1, 66, 84, 0, 0, -376,
|
|
-202, 1052, -102, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 332, 177, -72, 541, 0, 0, 614, 0, 159,
|
|
0, 0, 0, -266, 259, 165, 0, 579, 515, 516,
|
|
0, 0, 0, 0, 0, 555,
|
|
};
|
|
protected static final short yyTable [] = { 257,
|
|
22, 256, 228, 71, 86, 87, 145, 117, 287, 211,
|
|
36, 38, 213, 154, 87, 250, 216, 216, 329, 149,
|
|
216, 216, 216, 216, 216, 216, 216, 261, 22, 58,
|
|
58, 114, 228, 102, 166, 309, 19, 51, 216, 216,
|
|
13, 216, 67, 317, 22, 30, 113, 28, 22, 166,
|
|
19, 166, 393, 131, 13, 452, 22, 22, 22, 397,
|
|
104, 130, 87, 139, 138, 342, 22, 22, 34, 168,
|
|
127, 131, 14, 216, 102, 185, 186, 106, 87, 228,
|
|
212, 19, 167, 160, 193, 13, 19, 108, 41, 231,
|
|
119, 326, 160, 123, 22, 407, 129, 43, 161, 22,
|
|
19, 104, 39, 216, 86, 116, 329, 299, 22, 104,
|
|
58, 44, 452, 452, 22, 259, 51, 452, 106, 231,
|
|
41, 133, 22, 190, 192, 127, 22, 106, 108, 22,
|
|
22, 19, 22, 22, 22, 131, 352, 51, 177, 442,
|
|
67, 22, 232, 127, 218, 46, 115, 306, 22, 43,
|
|
46, 129, 105, 124, 184, 260, 22, 123, 55, 386,
|
|
387, 224, 264, 44, 22, 394, 231, 228, 228, 116,
|
|
22, 382, 232, 462, 218, 56, 365, 400, 366, 329,
|
|
19, 166, 347, 117, 166, 133, 19, 66, 57, 57,
|
|
30, 76, 28, 47, 327, 52, 128, 42, 2, 166,
|
|
19, 19, 3, 148, 30, 134, 52, 127, 54, 233,
|
|
115, 321, 321, 86, 6, 22, 105, 124, 52, 232,
|
|
132, 218, 405, 135, 383, 296, 254, 234, 428, 80,
|
|
430, 19, 2, 118, 2, 142, 3, 133, 3, 233,
|
|
228, 14, 297, 346, 52, 326, 345, 117, 6, 398,
|
|
6, 43, 216, 143, 231, 231, 384, 234, 250, 250,
|
|
128, 257, 257, 256, 256, 22, 116, 22, 321, 321,
|
|
321, 142, 324, 63, 446, 210, 449, 14, 64, 457,
|
|
255, 216, 216, 216, 216, 216, 233, 216, 216, 178,
|
|
228, 19, 467, 469, 42, 13, 228, 118, 256, 86,
|
|
75, 43, 245, 228, 234, 413, 65, 232, 232, 218,
|
|
218, 70, 42, 22, 62, 481, 482, 483, 337, 338,
|
|
339, 340, 109, 228, 228, 341, 228, 231, 76, 251,
|
|
251, 228, 245, 81, 160, 228, 110, 228, 228, 141,
|
|
109, 19, 16, 126, 144, 22, 228, 228, 228, 379,
|
|
374, 22, 228, 345, 110, 17, 146, 321, 321, 321,
|
|
321, 321, 22, 321, 321, 321, 321, 321, 321, 321,
|
|
321, 321, 321, 321, 233, 233, 360, 231, 361, 245,
|
|
232, 140, 218, 231, 170, 395, 492, 493, 345, 362,
|
|
231, 495, 234, 234, 359, 148, 88, 367, 126, 357,
|
|
368, 76, 247, 435, 358, 170, 434, 321, 249, 249,
|
|
231, 231, 166, 231, 224, 224, 224, 224, 231, 363,
|
|
364, 224, 231, 437, 231, 231, 434, 166, 439, 166,
|
|
232, 434, 247, 231, 231, 231, 232, 463, 156, 231,
|
|
434, 19, 2, 232, 334, 335, 3, 233, 19, 19,
|
|
474, 411, 412, 434, 19, 19, 19, 19, 6, 418,
|
|
419, 19, 162, 232, 232, 234, 232, 245, 245, 163,
|
|
164, 232, 165, 174, 182, 232, 263, 232, 232, 247,
|
|
251, 414, 415, 416, 417, 210, 232, 232, 232, 2,
|
|
300, 2, 232, 3, 311, 3, 251, 233, 2, 313,
|
|
314, 160, 3, 233, 315, 6, 318, 6, 319, 320,
|
|
233, 112, 115, 270, 6, 234, 331, 330, 333, 351,
|
|
267, 234, 336, 268, 151, 269, 350, 369, 234, 136,
|
|
233, 233, 210, 233, 120, 370, 371, 372, 233, 316,
|
|
245, 210, 233, 373, 233, 233, 388, 251, 234, 234,
|
|
28, 234, 401, 233, 233, 233, 234, 406, 431, 233,
|
|
234, 432, 234, 234, 176, 433, 436, 247, 247, 270,
|
|
438, 234, 234, 234, 440, 444, 267, 234, 48, 268,
|
|
447, 269, 458, 459, 344, 465, 470, 471, 189, 191,
|
|
245, 472, 473, 477, 72, 385, 245, 479, 28, 251,
|
|
2, 488, 489, 245, 3, 249, 249, 490, 107, 249,
|
|
249, 249, 249, 249, 494, 249, 6, 128, 1, 2,
|
|
4, 3, 180, 245, 245, 136, 245, 249, 249, 224,
|
|
249, 245, 88, 302, 179, 245, 77, 245, 245, 78,
|
|
247, 312, 79, 14, 153, 159, 245, 245, 245, 107,
|
|
180, 249, 245, 140, 53, 137, 270, 353, 172, 404,
|
|
420, 423, 249, 267, 389, 421, 268, 424, 269, 422,
|
|
298, 402, 128, 270, 403, 304, 181, 251, 118, 183,
|
|
267, 392, 195, 268, 187, 269, 173, 307, 188, 310,
|
|
247, 0, 249, 0, 0, 0, 247, 0, 252, 0,
|
|
270, 0, 0, 247, 0, 0, 0, 267, 396, 0,
|
|
268, 0, 269, 0, 252, 0, 0, 0, 0, 0,
|
|
303, 0, 0, 247, 247, 0, 247, 0, 0, 270,
|
|
0, 247, 0, 0, 0, 247, 267, 247, 247, 268,
|
|
0, 269, 0, 0, 0, 0, 247, 247, 247, 0,
|
|
0, 0, 247, 0, 0, 265, 270, 0, 0, 0,
|
|
0, 348, 349, 267, 0, 252, 268, 266, 269, 0,
|
|
0, 0, 0, 202, 203, 204, 205, 206, 207, 208,
|
|
209, 14, 429, 270, 0, 0, 0, 0, 211, 212,
|
|
267, 441, 0, 268, 0, 269, 0, 0, 0, 0,
|
|
270, 0, 0, 0, 0, 375, 0, 267, 445, 378,
|
|
268, 265, 269, 0, 0, 0, 0, 252, 0, 144,
|
|
0, 0, 0, 266, 0, 0, 0, 0, 0, 202,
|
|
203, 204, 205, 206, 207, 208, 209, 14, 0, 270,
|
|
0, 249, 0, 0, 211, 212, 267, 0, 0, 268,
|
|
0, 269, 0, 0, 0, 0, 270, 0, 0, 0,
|
|
0, 0, 0, 267, 461, 448, 268, 0, 269, 0,
|
|
249, 249, 249, 249, 249, 249, 249, 249, 0, 0,
|
|
425, 426, 224, 224, 224, 224, 0, 0, 0, 224,
|
|
0, 0, 270, 0, 0, 252, 0, 0, 265, 267,
|
|
466, 0, 268, 0, 269, 0, 0, 0, 0, 0,
|
|
266, 0, 0, 0, 0, 265, 202, 203, 204, 205,
|
|
206, 207, 208, 209, 14, 0, 0, 266, 0, 0,
|
|
0, 211, 212, 202, 203, 204, 205, 206, 207, 208,
|
|
209, 14, 265, 270, 322, 323, 0, 0, 211, 212,
|
|
267, 468, 0, 268, 266, 269, 0, 0, 0, 0,
|
|
202, 203, 204, 205, 206, 207, 208, 209, 14, 0,
|
|
270, 265, 0, 0, 0, 211, 212, 267, 480, 0,
|
|
268, 0, 269, 266, 0, 0, 0, 0, 0, 202,
|
|
203, 204, 205, 206, 207, 208, 209, 14, 265, 270,
|
|
0, 354, 355, 356, 211, 212, 267, 0, 0, 268,
|
|
266, 269, 0, 0, 0, 0, 202, 203, 204, 205,
|
|
206, 207, 208, 209, 14, 265, 270, 0, 0, 0,
|
|
0, 211, 212, 267, 0, 0, 268, 266, 269, 0,
|
|
0, 0, 265, 202, 203, 204, 205, 206, 207, 208,
|
|
209, 14, 0, 0, 266, 0, 0, 0, 211, 212,
|
|
202, 203, 204, 205, 206, 207, 208, 209, 14, 0,
|
|
0, 0, 0, 0, 0, 211, 212, 0, 0, 0,
|
|
0, 265, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
408, 409, 410, 266, 0, 0, 0, 0, 265, 202,
|
|
203, 204, 205, 206, 207, 208, 209, 14, 0, 0,
|
|
266, 0, 0, 0, 211, 212, 202, 203, 204, 205,
|
|
206, 207, 208, 209, 14, 0, 0, 0, 0, 0,
|
|
0, 211, 212, 0, 265, 0, 0, 0, 0, 0,
|
|
443, 0, 0, 0, 0, 0, 266, 0, 0, 0,
|
|
0, 0, 202, 203, 204, 205, 206, 207, 208, 209,
|
|
14, 0, 0, 0, 0, 0, 0, 211, 212, 76,
|
|
76, 0, 76, 76, 76, 76, 76, 76, 0, 76,
|
|
0, 0, 0, 0, 0, 265, 0, 0, 0, 0,
|
|
0, 76, 0, 0, 76, 0, 0, 266, 0, 0,
|
|
0, 0, 0, 202, 203, 204, 205, 206, 207, 208,
|
|
209, 14, 265, 0, 0, 0, 0, 0, 211, 212,
|
|
0, 0, 0, 76, 266, 0, 76, 0, 0, 0,
|
|
202, 203, 204, 205, 206, 207, 208, 209, 14, 0,
|
|
0, 265, 0, 0, 0, 211, 212, 0, 0, 0,
|
|
0, 0, 0, 266, 0, 76, 76, 0, 0, 202,
|
|
203, 204, 205, 206, 207, 208, 209, 14, 0, 0,
|
|
0, 0, 0, 0, 211, 212, 0, 0, 0, 0,
|
|
266, 0, 0, 0, 0, 0, 202, 203, 204, 205,
|
|
206, 207, 208, 209, 14, 0, 0, 0, 0, 248,
|
|
248, 211, 212, 248, 248, 248, 248, 248, 0, 248,
|
|
262, 0, 0, 0, 262, 262, 262, 262, 262, 262,
|
|
262, 248, 248, 0, 248, 0, 0, 0, 0, 0,
|
|
0, 0, 262, 262, 0, 262, 253, 253, 0, 0,
|
|
253, 253, 253, 253, 253, 253, 253, 0, 0, 0,
|
|
0, 1, 0, 0, 0, 0, 248, 4, 253, 253,
|
|
0, 253, 0, 5, 0, 0, 0, 262, 0, 0,
|
|
7, 8, 9, 0, 11, 12, 0, 0, 13, 0,
|
|
0, 0, 0, 0, 0, 0, 248, 0, 0, 76,
|
|
76, 0, 0, 0, 76, 76, 0, 262, 0, 0,
|
|
0, 76, 0, 0, 0, 76, 76, 0, 76, 76,
|
|
76, 76, 76, 76, 76, 0, 76, 0, 0, 0,
|
|
241, 241, 0, 253, 241, 241, 241, 241, 241, 241,
|
|
241, 0, 0, 76, 76, 76, 76, 76, 76, 76,
|
|
76, 76, 241, 241, 0, 241, 205, 205, 0, 0,
|
|
205, 205, 205, 205, 205, 205, 205, 249, 249, 0,
|
|
0, 249, 249, 249, 249, 249, 1, 249, 205, 205,
|
|
0, 205, 49, 0, 0, 0, 0, 241, 5, 249,
|
|
249, 0, 249, 453, 0, 7, 8, 9, 0, 460,
|
|
50, 0, 0, 13, 0, 0, 464, 0, 0, 0,
|
|
263, 0, 0, 205, 263, 263, 263, 263, 263, 263,
|
|
263, 0, 0, 0, 249, 0, 475, 476, 0, 478,
|
|
0, 0, 263, 263, 484, 263, 0, 0, 485, 0,
|
|
486, 487, 0, 205, 0, 248, 0, 0, 0, 491,
|
|
453, 460, 0, 0, 249, 484, 262, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 263, 0, 0,
|
|
0, 0, 0, 0, 248, 248, 248, 248, 248, 248,
|
|
248, 248, 253, 0, 0, 262, 262, 262, 262, 262,
|
|
262, 262, 262, 0, 0, 0, 0, 263, 254, 254,
|
|
0, 0, 254, 254, 254, 254, 254, 254, 254, 0,
|
|
0, 253, 253, 253, 253, 253, 253, 253, 253, 0,
|
|
254, 254, 0, 254, 242, 242, 0, 0, 242, 242,
|
|
242, 242, 242, 242, 242, 0, 1, 2, 0, 0,
|
|
0, 3, 4, 0, 0, 0, 242, 242, 5, 242,
|
|
0, 0, 0, 6, 0, 7, 8, 9, 10, 11,
|
|
12, 0, 0, 13, 0, 0, 241, 0, 217, 217,
|
|
0, 0, 217, 217, 217, 217, 217, 217, 217, 0,
|
|
14, 242, 0, 0, 0, 254, 0, 0, 0, 0,
|
|
217, 217, 205, 217, 0, 241, 241, 241, 241, 241,
|
|
241, 241, 241, 249, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 205, 205, 205, 205, 217, 205, 205, 205, 0,
|
|
0, 0, 249, 249, 249, 249, 249, 249, 249, 249,
|
|
284, 284, 0, 0, 284, 284, 263, 284, 0, 284,
|
|
284, 0, 0, 0, 0, 217, 0, 0, 0, 0,
|
|
0, 0, 284, 284, 0, 284, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 263, 263, 263, 263, 263,
|
|
263, 263, 263, 0, 273, 273, 0, 0, 273, 273,
|
|
273, 273, 273, 273, 273, 274, 274, 284, 0, 274,
|
|
274, 274, 274, 274, 274, 274, 273, 273, 0, 273,
|
|
0, 0, 0, 0, 0, 0, 0, 274, 274, 0,
|
|
274, 0, 0, 1, 0, 0, 0, 284, 0, 4,
|
|
0, 0, 0, 0, 254, 5, 147, 0, 0, 0,
|
|
152, 273, 7, 8, 9, 0, 0, 12, 0, 0,
|
|
13, 0, 274, 166, 171, 0, 0, 0, 0, 0,
|
|
242, 0, 0, 254, 254, 254, 254, 254, 254, 254,
|
|
254, 273, 152, 0, 166, 171, 0, 0, 0, 0,
|
|
0, 0, 274, 0, 0, 0, 0, 0, 0, 242,
|
|
242, 242, 242, 242, 242, 242, 242, 257, 0, 258,
|
|
0, 275, 275, 0, 217, 275, 275, 275, 275, 275,
|
|
275, 275, 0, 0, 0, 301, 0, 0, 305, 0,
|
|
0, 0, 0, 275, 0, 0, 0, 258, 0, 305,
|
|
0, 0, 0, 217, 217, 217, 217, 217, 0, 217,
|
|
217, 276, 276, 0, 92, 276, 276, 276, 276, 276,
|
|
276, 276, 0, 0, 0, 0, 0, 0, 275, 0,
|
|
277, 277, 0, 276, 277, 277, 277, 277, 277, 277,
|
|
277, 0, 0, 0, 0, 0, 284, 0, 0, 0,
|
|
0, 0, 277, 0, 0, 0, 0, 0, 275, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 276, 0,
|
|
0, 0, 0, 0, 0, 284, 284, 284, 284, 284,
|
|
284, 284, 284, 0, 0, 0, 285, 277, 0, 285,
|
|
273, 285, 285, 285, 285, 0, 0, 0, 276, 0,
|
|
0, 274, 0, 0, 0, 0, 286, 285, 285, 286,
|
|
285, 286, 286, 286, 286, 0, 0, 277, 376, 377,
|
|
273, 273, 0, 273, 273, 273, 273, 286, 286, 0,
|
|
286, 274, 274, 0, 274, 274, 274, 274, 0, 0,
|
|
0, 0, 285, 287, 0, 0, 287, 0, 287, 287,
|
|
287, 287, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 286, 0, 287, 287, 0, 287, 0, 0,
|
|
0, 0, 285, 0, 0, 0, 0, 0, 0, 0,
|
|
259, 259, 0, 0, 259, 259, 259, 259, 259, 259,
|
|
259, 0, 286, 0, 0, 0, 0, 0, 0, 287,
|
|
0, 0, 259, 259, 0, 259, 0, 0, 169, 0,
|
|
0, 1, 2, 0, 0, 0, 3, 0, 0, 0,
|
|
0, 0, 0, 5, 0, 0, 0, 169, 6, 287,
|
|
7, 8, 9, 0, 0, 0, 275, 259, 13, 275,
|
|
275, 275, 275, 275, 0, 169, 0, 0, 0, 0,
|
|
0, 0, 215, 0, 0, 120, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 259, 0, 0,
|
|
0, 213, 0, 0, 0, 0, 276, 0, 0, 276,
|
|
276, 276, 276, 276, 0, 0, 0, 0, 0, 0,
|
|
0, 169, 0, 169, 0, 277, 215, 0, 277, 277,
|
|
277, 277, 277, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 213, 0, 0, 0, 0,
|
|
0, 285, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 144, 0, 214, 0, 0,
|
|
215, 286, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
285, 285, 285, 285, 285, 285, 285, 285, 0, 213,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
286, 286, 286, 286, 286, 286, 286, 286, 287, 144,
|
|
0, 308, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 215, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 287, 287, 287,
|
|
287, 287, 287, 287, 287, 213, 259, 0, 0, 0,
|
|
0, 0, 0, 144, 0, 328, 169, 0, 0, 0,
|
|
169, 0, 0, 0, 0, 202, 0, 0, 0, 169,
|
|
169, 0, 169, 0, 0, 259, 259, 259, 259, 259,
|
|
259, 169, 215, 169, 0, 169, 0, 0, 0, 0,
|
|
169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
2, 213, 0, 0, 3, 0, 169, 169, 0, 144,
|
|
0, 380, 0, 196, 197, 0, 6, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 198, 215, 199, 0, 200,
|
|
0, 0, 0, 0, 201, 202, 203, 204, 205, 206,
|
|
207, 208, 209, 210, 2, 213, 0, 0, 3, 0,
|
|
211, 212, 0, 0, 0, 0, 0, 196, 197, 0,
|
|
6, 0, 0, 0, 0, 144, 0, 381, 0, 198,
|
|
215, 199, 0, 200, 0, 0, 0, 0, 201, 202,
|
|
203, 204, 205, 206, 207, 208, 209, 210, 2, 213,
|
|
0, 0, 3, 0, 211, 212, 0, 0, 0, 0,
|
|
0, 196, 197, 0, 6, 0, 0, 0, 0, 144,
|
|
0, 427, 0, 198, 215, 199, 0, 200, 0, 0,
|
|
0, 0, 201, 202, 203, 204, 205, 206, 207, 208,
|
|
209, 210, 0, 213, 0, 0, 0, 0, 211, 212,
|
|
0, 0, 0, 0, 2, 0, 0, 0, 3, 0,
|
|
0, 0, 0, 144, 0, 0, 0, 196, 197, 0,
|
|
6, 0, 0, 0, 0, 0, 0, 0, 0, 198,
|
|
0, 199, 136, 200, 0, 0, 0, 0, 201, 202,
|
|
203, 204, 205, 206, 207, 208, 209, 210, 0, 0,
|
|
136, 0, 0, 0, 211, 212, 0, 144, 0, 0,
|
|
2, 138, 0, 0, 3, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 196, 197, 0, 6, 0, 0, 138,
|
|
0, 0, 0, 0, 0, 198, 0, 199, 0, 200,
|
|
0, 0, 0, 0, 201, 202, 203, 204, 205, 206,
|
|
207, 208, 209, 210, 2, 92, 0, 0, 3, 0,
|
|
211, 212, 0, 0, 0, 0, 0, 196, 197, 0,
|
|
6, 0, 0, 0, 0, 0, 0, 0, 0, 198,
|
|
0, 199, 0, 200, 0, 92, 0, 0, 201, 202,
|
|
203, 204, 205, 206, 207, 208, 209, 210, 0, 0,
|
|
0, 0, 0, 0, 211, 212, 0, 0, 0, 0,
|
|
0, 196, 450, 0, 0, 0, 0, 0, 0, 0,
|
|
93, 92, 0, 198, 0, 199, 0, 200, 0, 0,
|
|
0, 0, 451, 202, 203, 204, 205, 206, 207, 208,
|
|
209, 14, 0, 0, 0, 0, 0, 0, 211, 212,
|
|
121, 0, 0, 0, 0, 196, 197, 0, 92, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 198, 0, 199,
|
|
0, 200, 0, 0, 0, 0, 201, 202, 203, 204,
|
|
205, 206, 207, 208, 209, 14, 158, 0, 61, 0,
|
|
0, 0, 211, 212, 0, 136, 136, 0, 0, 0,
|
|
136, 136, 0, 0, 0, 0, 0, 136, 0, 0,
|
|
0, 0, 136, 0, 136, 136, 136, 136, 136, 136,
|
|
0, 0, 136, 179, 138, 138, 0, 0, 0, 138,
|
|
138, 0, 0, 0, 0, 0, 138, 0, 0, 136,
|
|
0, 138, 0, 138, 138, 138, 138, 138, 138, 0,
|
|
0, 138, 1, 2, 0, 0, 0, 3, 0, 0,
|
|
0, 0, 0, 0, 5, 0, 0, 0, 138, 6,
|
|
0, 7, 8, 9, 0, 0, 0, 0, 0, 89,
|
|
0, 0, 1, 2, 0, 0, 90, 3, 0, 0,
|
|
0, 0, 0, 0, 5, 0, 91, 0, 0, 6,
|
|
0, 7, 8, 9, 0, 0, 0, 0, 0, 13,
|
|
0, 0, 0, 0, 0, 0, 90, 0, 1, 2,
|
|
0, 0, 0, 3, 0, 0, 120, 0, 0, 0,
|
|
5, 0, 0, 0, 0, 6, 0, 7, 8, 9,
|
|
0, 0, 0, 0, 0, 89, 0, 0, 0, 0,
|
|
0, 0, 90, 0, 0, 1, 2, 0, 0, 0,
|
|
3, 0, 91, 0, 0, 0, 0, 5, 0, 0,
|
|
0, 0, 6, 0, 7, 8, 9, 0, 0, 0,
|
|
0, 0, 13, 0, 0, 61, 61, 0, 0, 90,
|
|
61, 0, 0, 0, 0, 0, 0, 61, 0, 120,
|
|
0, 0, 61, 0, 61, 61, 61, 0, 0, 0,
|
|
0, 0, 61, 0, 0, 0, 0, 0, 0, 61,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 61,
|
|
};
|
|
protected short yyCheck[] = new short[3011];
|
|
}
|
|
class yyCheck0 {
|
|
protected static final short yyCheck0 [] = { 46,
|
|
0, 46, 144, 63, 56, 57, 89, 42, 163, 59,
|
|
10, 11, 59, 96, 66, 41, 37, 38, 221, 92,
|
|
41, 42, 43, 44, 45, 46, 47, 156, 28, 123,
|
|
123, 44, 174, 58, 44, 174, 46, 29, 59, 60,
|
|
46, 62, 123, 198, 44, 123, 60, 123, 48, 59,
|
|
60, 61, 319, 69, 60, 432, 56, 57, 58, 326,
|
|
58, 44, 114, 79, 78, 61, 66, 67, 301, 107,
|
|
67, 59, 301, 94, 99, 132, 133, 58, 130, 221,
|
|
59, 91, 107, 44, 141, 91, 46, 58, 21, 144,
|
|
66, 40, 44, 59, 94, 41, 67, 46, 59, 99,
|
|
60, 99, 301, 124, 156, 59, 309, 59, 108, 107,
|
|
123, 60, 489, 490, 114, 153, 108, 494, 99, 174,
|
|
53, 59, 122, 137, 140, 122, 126, 108, 99, 129,
|
|
130, 91, 132, 133, 134, 123, 265, 129, 114, 406,
|
|
123, 141, 144, 59, 144, 91, 59, 172, 148, 46,
|
|
91, 122, 59, 59, 130, 153, 156, 123, 60, 314,
|
|
315, 61, 160, 60, 164, 320, 221, 309, 310, 123,
|
|
170, 310, 174, 440, 174, 268, 60, 332, 62, 382,
|
|
40, 41, 255, 59, 44, 123, 46, 268, 282, 282,
|
|
268, 91, 268, 91, 219, 31, 59, 21, 258, 59,
|
|
60, 61, 262, 40, 282, 44, 42, 123, 32, 144,
|
|
123, 211, 212, 265, 274, 215, 123, 123, 54, 221,
|
|
268, 221, 351, 62, 61, 41, 148, 144, 383, 53,
|
|
385, 91, 258, 59, 258, 44, 262, 285, 262, 174,
|
|
382, 301, 164, 41, 80, 40, 44, 123, 274, 332,
|
|
274, 46, 273, 62, 309, 310, 313, 174, 308, 309,
|
|
123, 308, 309, 308, 309, 265, 301, 267, 268, 269,
|
|
270, 44, 41, 59, 429, 301, 431, 301, 46, 434,
|
|
44, 302, 303, 304, 305, 306, 221, 308, 309, 62,
|
|
432, 301, 447, 448, 44, 301, 438, 123, 62, 351,
|
|
93, 46, 144, 445, 221, 362, 60, 309, 310, 309,
|
|
310, 301, 62, 313, 59, 470, 471, 472, 314, 315,
|
|
316, 317, 44, 465, 466, 321, 468, 382, 93, 308,
|
|
309, 473, 174, 301, 44, 477, 44, 479, 480, 268,
|
|
62, 301, 46, 67, 123, 345, 488, 489, 490, 59,
|
|
41, 351, 494, 44, 62, 59, 301, 357, 358, 359,
|
|
360, 361, 362, 363, 364, 365, 366, 367, 368, 369,
|
|
370, 371, 372, 373, 309, 310, 43, 432, 45, 221,
|
|
382, 44, 382, 438, 108, 41, 489, 490, 44, 273,
|
|
445, 494, 309, 310, 37, 40, 59, 302, 122, 42,
|
|
305, 301, 144, 41, 47, 129, 44, 407, 308, 309,
|
|
465, 466, 44, 468, 314, 315, 316, 317, 473, 303,
|
|
304, 321, 477, 41, 479, 480, 44, 59, 41, 61,
|
|
432, 44, 174, 488, 489, 490, 438, 41, 289, 494,
|
|
44, 301, 258, 445, 308, 309, 262, 382, 308, 309,
|
|
41, 360, 361, 44, 314, 315, 316, 317, 274, 367,
|
|
368, 321, 59, 465, 466, 382, 468, 309, 310, 61,
|
|
40, 473, 301, 123, 59, 477, 301, 479, 480, 221,
|
|
148, 363, 364, 365, 366, 301, 488, 489, 490, 258,
|
|
59, 258, 494, 262, 301, 262, 164, 432, 258, 38,
|
|
40, 44, 262, 438, 40, 274, 40, 274, 40, 40,
|
|
445, 60, 61, 33, 274, 432, 329, 59, 46, 44,
|
|
40, 438, 59, 43, 291, 45, 59, 38, 445, 78,
|
|
465, 466, 301, 468, 301, 94, 124, 307, 473, 59,
|
|
382, 301, 477, 306, 479, 480, 59, 215, 465, 466,
|
|
0, 468, 301, 488, 489, 490, 473, 40, 59, 494,
|
|
477, 41, 479, 480, 113, 59, 59, 309, 310, 33,
|
|
41, 488, 489, 490, 40, 59, 40, 494, 28, 43,
|
|
59, 45, 59, 59, 252, 41, 59, 40, 137, 138,
|
|
432, 40, 267, 41, 44, 59, 438, 41, 48, 267,
|
|
258, 41, 41, 445, 262, 37, 38, 41, 58, 41,
|
|
42, 43, 44, 45, 267, 47, 274, 67, 0, 0,
|
|
0, 0, 59, 465, 466, 301, 468, 59, 60, 61,
|
|
62, 473, 59, 291, 59, 477, 48, 479, 480, 49,
|
|
382, 190, 50, 301, 94, 99, 488, 489, 490, 99,
|
|
122, 147, 494, 79, 32, 78, 33, 267, 108, 345,
|
|
369, 372, 94, 40, 41, 370, 43, 373, 45, 371,
|
|
166, 343, 122, 33, 343, 171, 126, 345, 65, 129,
|
|
40, 41, 142, 43, 134, 45, 108, 173, 134, 174,
|
|
432, -1, 124, -1, -1, -1, 438, -1, 148, -1,
|
|
33, -1, -1, 445, -1, -1, -1, 40, 41, -1,
|
|
43, -1, 45, -1, 164, -1, -1, -1, -1, -1,
|
|
170, -1, -1, 465, 466, -1, 468, -1, -1, 33,
|
|
-1, 473, -1, -1, -1, 477, 40, 479, 480, 43,
|
|
-1, 45, -1, -1, -1, -1, 488, 489, 490, -1,
|
|
-1, -1, 494, -1, -1, 275, 33, -1, -1, -1,
|
|
-1, 257, 258, 40, -1, 215, 43, 287, 45, -1,
|
|
-1, -1, -1, 293, 294, 295, 296, 297, 298, 299,
|
|
300, 301, 59, 33, -1, -1, -1, -1, 308, 309,
|
|
40, 41, -1, 43, -1, 45, -1, -1, -1, -1,
|
|
33, -1, -1, -1, -1, 301, -1, 40, 41, 305,
|
|
43, 275, 45, -1, -1, -1, -1, 267, -1, 123,
|
|
-1, -1, -1, 287, -1, -1, -1, -1, -1, 293,
|
|
294, 295, 296, 297, 298, 299, 300, 301, -1, 33,
|
|
-1, 273, -1, -1, 308, 309, 40, -1, -1, 43,
|
|
-1, 45, -1, -1, -1, -1, 33, -1, -1, -1,
|
|
-1, -1, -1, 40, 41, 59, 43, -1, 45, -1,
|
|
302, 303, 304, 305, 306, 307, 308, 309, -1, -1,
|
|
376, 377, 314, 315, 316, 317, -1, -1, -1, 321,
|
|
-1, -1, 33, -1, -1, 345, -1, -1, 275, 40,
|
|
41, -1, 43, -1, 45, -1, -1, -1, -1, -1,
|
|
287, -1, -1, -1, -1, 275, 293, 294, 295, 296,
|
|
297, 298, 299, 300, 301, -1, -1, 287, -1, -1,
|
|
-1, 308, 309, 293, 294, 295, 296, 297, 298, 299,
|
|
300, 301, 275, 33, 211, 212, -1, -1, 308, 309,
|
|
40, 41, -1, 43, 287, 45, -1, -1, -1, -1,
|
|
293, 294, 295, 296, 297, 298, 299, 300, 301, -1,
|
|
33, 275, -1, -1, -1, 308, 309, 40, 41, -1,
|
|
43, -1, 45, 287, -1, -1, -1, -1, -1, 293,
|
|
294, 295, 296, 297, 298, 299, 300, 301, 275, 33,
|
|
};
|
|
}
|
|
class yyCheck1 {
|
|
protected static final short yyCheck1 [] = { -1,
|
|
268, 269, 270, 308, 309, 40, -1, -1, 43, 287,
|
|
45, -1, -1, -1, -1, 293, 294, 295, 296, 297,
|
|
298, 299, 300, 301, 275, 33, -1, -1, -1, -1,
|
|
308, 309, 40, -1, -1, 43, 287, 45, -1, -1,
|
|
-1, 275, 293, 294, 295, 296, 297, 298, 299, 300,
|
|
301, -1, -1, 287, -1, -1, -1, 308, 309, 293,
|
|
294, 295, 296, 297, 298, 299, 300, 301, -1, -1,
|
|
-1, -1, -1, -1, 308, 309, -1, -1, -1, -1,
|
|
275, -1, -1, -1, -1, -1, -1, -1, -1, 357,
|
|
358, 359, 287, -1, -1, -1, -1, 275, 293, 294,
|
|
295, 296, 297, 298, 299, 300, 301, -1, -1, 287,
|
|
-1, -1, -1, 308, 309, 293, 294, 295, 296, 297,
|
|
298, 299, 300, 301, -1, -1, -1, -1, -1, -1,
|
|
308, 309, -1, 275, -1, -1, -1, -1, -1, 407,
|
|
-1, -1, -1, -1, -1, 287, -1, -1, -1, -1,
|
|
-1, 293, 294, 295, 296, 297, 298, 299, 300, 301,
|
|
-1, -1, -1, -1, -1, -1, 308, 309, 37, 38,
|
|
-1, 40, 41, 42, 43, 44, 45, -1, 47, -1,
|
|
-1, -1, -1, -1, 275, -1, -1, -1, -1, -1,
|
|
59, -1, -1, 62, -1, -1, 287, -1, -1, -1,
|
|
-1, -1, 293, 294, 295, 296, 297, 298, 299, 300,
|
|
301, 275, -1, -1, -1, -1, -1, 308, 309, -1,
|
|
-1, -1, 91, 287, -1, 94, -1, -1, -1, 293,
|
|
294, 295, 296, 297, 298, 299, 300, 301, -1, -1,
|
|
275, -1, -1, -1, 308, 309, -1, -1, -1, -1,
|
|
-1, -1, 287, -1, 123, 124, -1, -1, 293, 294,
|
|
295, 296, 297, 298, 299, 300, 301, -1, -1, -1,
|
|
-1, -1, -1, 308, 309, -1, -1, -1, -1, 287,
|
|
-1, -1, -1, -1, -1, 293, 294, 295, 296, 297,
|
|
298, 299, 300, 301, -1, -1, -1, -1, 37, 38,
|
|
308, 309, 41, 42, 43, 44, 45, -1, 47, 37,
|
|
-1, -1, -1, 41, 42, 43, 44, 45, 46, 47,
|
|
59, 60, -1, 62, -1, -1, -1, -1, -1, -1,
|
|
-1, 59, 60, -1, 62, 37, 38, -1, -1, 41,
|
|
42, 43, 44, 45, 46, 47, -1, -1, -1, -1,
|
|
257, -1, -1, -1, -1, 94, 263, 59, 60, -1,
|
|
62, -1, 269, -1, -1, -1, 94, -1, -1, 276,
|
|
277, 278, -1, 280, 281, -1, -1, 284, -1, -1,
|
|
-1, -1, -1, -1, -1, 124, -1, -1, 257, 258,
|
|
-1, -1, -1, 262, 263, -1, 124, -1, -1, -1,
|
|
269, -1, -1, -1, 273, 274, -1, 276, 277, 278,
|
|
279, 280, 281, 282, -1, 284, -1, -1, -1, 37,
|
|
38, -1, 124, 41, 42, 43, 44, 45, 46, 47,
|
|
-1, -1, 301, 302, 303, 304, 305, 306, 307, 308,
|
|
309, 59, 60, -1, 62, 37, 38, -1, -1, 41,
|
|
42, 43, 44, 45, 46, 47, 37, 38, -1, -1,
|
|
41, 42, 43, 44, 45, 257, 47, 59, 60, -1,
|
|
62, 263, -1, -1, -1, -1, 94, 269, 59, 60,
|
|
-1, 62, 432, -1, 276, 277, 278, -1, 438, 281,
|
|
-1, -1, 284, -1, -1, 445, -1, -1, -1, 37,
|
|
-1, -1, 94, 41, 42, 43, 44, 45, 46, 47,
|
|
-1, -1, -1, 94, -1, 465, 466, -1, 468, -1,
|
|
-1, 59, 60, 473, 62, -1, -1, 477, -1, 479,
|
|
480, -1, 124, -1, 273, -1, -1, -1, 488, 489,
|
|
490, -1, -1, 124, 494, 273, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 94, -1, -1, -1,
|
|
-1, -1, -1, 302, 303, 304, 305, 306, 307, 308,
|
|
309, 273, -1, -1, 302, 303, 304, 305, 306, 307,
|
|
308, 309, -1, -1, -1, -1, 124, 37, 38, -1,
|
|
-1, 41, 42, 43, 44, 45, 46, 47, -1, -1,
|
|
302, 303, 304, 305, 306, 307, 308, 309, -1, 59,
|
|
60, -1, 62, 37, 38, -1, -1, 41, 42, 43,
|
|
44, 45, 46, 47, -1, 257, 258, -1, -1, -1,
|
|
262, 263, -1, -1, -1, 59, 60, 269, 62, -1,
|
|
-1, -1, 274, -1, 276, 277, 278, 279, 280, 281,
|
|
-1, -1, 284, -1, -1, 273, -1, 37, 38, -1,
|
|
-1, 41, 42, 43, 44, 45, 46, 47, -1, 301,
|
|
94, -1, -1, -1, 124, -1, -1, -1, -1, 59,
|
|
60, 273, 62, -1, 302, 303, 304, 305, 306, 307,
|
|
308, 309, 273, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
302, 303, 304, 305, 94, 307, 308, 309, -1, -1,
|
|
-1, 302, 303, 304, 305, 306, 307, 308, 309, 37,
|
|
38, -1, -1, 41, 42, 273, 44, -1, 46, 47,
|
|
-1, -1, -1, -1, 124, -1, -1, -1, -1, -1,
|
|
-1, 59, 60, -1, 62, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 302, 303, 304, 305, 306, 307,
|
|
308, 309, -1, 37, 38, -1, -1, 41, 42, 43,
|
|
44, 45, 46, 47, 37, 38, 94, -1, 41, 42,
|
|
43, 44, 45, 46, 47, 59, 60, -1, 62, -1,
|
|
-1, -1, -1, -1, -1, -1, 59, 60, -1, 62,
|
|
-1, -1, 257, -1, -1, -1, 124, -1, 263, -1,
|
|
-1, -1, -1, 273, 269, 90, -1, -1, -1, 94,
|
|
94, 276, 277, 278, -1, -1, 281, -1, -1, 284,
|
|
-1, 94, 107, 108, -1, -1, -1, -1, -1, 273,
|
|
-1, -1, 302, 303, 304, 305, 306, 307, 308, 309,
|
|
124, 126, -1, 128, 129, -1, -1, -1, -1, -1,
|
|
-1, 124, -1, -1, -1, -1, -1, -1, 302, 303,
|
|
304, 305, 306, 307, 308, 309, 151, -1, 153, -1,
|
|
37, 38, -1, 273, 41, 42, 43, 44, 45, 46,
|
|
47, -1, -1, -1, 169, -1, -1, 172, -1, -1,
|
|
-1, -1, 59, -1, -1, -1, 181, -1, 183, -1,
|
|
-1, -1, 302, 303, 304, 305, 306, -1, 308, 309,
|
|
37, 38, -1, 60, 41, 42, 43, 44, 45, 46,
|
|
47, -1, -1, -1, -1, -1, -1, 94, -1, 37,
|
|
38, -1, 59, 41, 42, 43, 44, 45, 46, 47,
|
|
-1, -1, -1, -1, -1, 273, -1, -1, -1, -1,
|
|
-1, 59, -1, -1, -1, -1, -1, 124, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 94, -1, -1,
|
|
-1, -1, -1, -1, 302, 303, 304, 305, 306, 307,
|
|
};
|
|
}
|
|
class yyCheck2 {
|
|
protected static final short yyCheck2 [] = { 308,
|
|
309, -1, -1, -1, 38, 94, -1, 41, 273, 43,
|
|
44, 45, 46, -1, -1, -1, 124, -1, -1, 273,
|
|
-1, -1, -1, -1, 38, 59, 60, 41, 62, 43,
|
|
44, 45, 46, -1, -1, 124, 302, 303, 303, 304,
|
|
-1, 306, 307, 308, 309, 59, 60, -1, 62, 303,
|
|
304, -1, 306, 307, 308, 309, -1, -1, -1, -1,
|
|
94, 38, -1, -1, 41, -1, 43, 44, 45, 46,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
94, -1, 59, 60, -1, 62, -1, -1, -1, -1,
|
|
124, -1, -1, -1, -1, -1, -1, -1, 37, 38,
|
|
-1, -1, 41, 42, 43, 44, 45, 46, 47, -1,
|
|
124, -1, -1, -1, -1, -1, -1, 94, -1, -1,
|
|
59, 60, -1, 62, -1, -1, 40, -1, -1, 257,
|
|
258, -1, -1, -1, 262, -1, -1, -1, -1, -1,
|
|
-1, 269, -1, -1, -1, 59, 274, 124, 276, 277,
|
|
278, -1, -1, -1, 302, 94, 284, 305, 306, 307,
|
|
308, 309, -1, 291, -1, -1, -1, -1, -1, -1,
|
|
40, -1, -1, 301, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 124, -1, -1, -1, 59,
|
|
-1, -1, -1, -1, 302, -1, -1, 305, 306, 307,
|
|
308, 309, -1, -1, -1, -1, -1, -1, -1, 123,
|
|
-1, 125, -1, 302, 40, -1, 305, 306, 307, 308,
|
|
309, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 59, -1, -1, -1, -1, -1, 273,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 123, -1, 125, -1, -1, 40, 273,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 302, 303,
|
|
304, 305, 306, 307, 308, 309, -1, 59, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 302, 303,
|
|
304, 305, 306, 307, 308, 309, 273, 123, -1, 125,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 40, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 302, 303, 304, 305, 306,
|
|
307, 308, 309, 59, 273, -1, -1, -1, -1, -1,
|
|
-1, 123, -1, 125, 258, -1, -1, -1, 262, -1,
|
|
-1, -1, -1, 267, -1, -1, -1, 271, 272, -1,
|
|
274, -1, -1, 302, 303, 304, 305, 306, 307, 283,
|
|
40, 285, -1, 287, -1, -1, -1, -1, 292, 293,
|
|
294, 295, 296, 297, 298, 299, 300, 301, 258, 59,
|
|
-1, -1, 262, -1, 308, 309, -1, 123, -1, 125,
|
|
-1, 271, 272, -1, 274, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 283, 40, 285, -1, 287, -1, -1,
|
|
-1, -1, 292, 293, 294, 295, 296, 297, 298, 299,
|
|
300, 301, 258, 59, -1, -1, 262, -1, 308, 309,
|
|
-1, -1, -1, -1, -1, 271, 272, -1, 274, -1,
|
|
-1, -1, -1, 123, -1, 125, -1, 283, 40, 285,
|
|
-1, 287, -1, -1, -1, -1, 292, 293, 294, 295,
|
|
296, 297, 298, 299, 300, 301, 258, 59, -1, -1,
|
|
262, -1, 308, 309, -1, -1, -1, -1, -1, 271,
|
|
272, -1, 274, -1, -1, -1, -1, 123, -1, 125,
|
|
-1, 283, 40, 285, -1, 287, -1, -1, -1, -1,
|
|
292, 293, 294, 295, 296, 297, 298, 299, 300, 301,
|
|
-1, 59, -1, -1, -1, -1, 308, 309, -1, -1,
|
|
-1, -1, 258, -1, -1, -1, 262, -1, -1, -1,
|
|
-1, 123, -1, -1, -1, 271, 272, -1, 274, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 283, -1, 285,
|
|
44, 287, -1, -1, -1, -1, 292, 293, 294, 295,
|
|
296, 297, 298, 299, 300, 301, -1, -1, 62, -1,
|
|
-1, -1, 308, 309, -1, 123, -1, -1, 258, 44,
|
|
-1, -1, 262, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, 271, 272, -1, 274, -1, -1, 62, -1, -1,
|
|
-1, -1, -1, 283, -1, 285, -1, 287, -1, -1,
|
|
-1, -1, 292, 293, 294, 295, 296, 297, 298, 299,
|
|
300, 301, 258, 60, -1, -1, 262, -1, 308, 309,
|
|
-1, -1, -1, -1, -1, 271, 272, -1, 274, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 283, -1, 285,
|
|
-1, 287, -1, 60, -1, -1, 292, 293, 294, 295,
|
|
296, 297, 298, 299, 300, 301, -1, -1, -1, -1,
|
|
-1, -1, 308, 309, -1, -1, -1, -1, -1, 271,
|
|
272, -1, -1, -1, -1, -1, -1, -1, 125, 60,
|
|
-1, 283, -1, 285, -1, 287, -1, -1, -1, -1,
|
|
292, 293, 294, 295, 296, 297, 298, 299, 300, 301,
|
|
-1, -1, -1, -1, -1, -1, 308, 309, 125, -1,
|
|
-1, -1, -1, 271, 272, -1, 60, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 283, -1, 285, -1, 287,
|
|
-1, -1, -1, -1, 292, 293, 294, 295, 296, 297,
|
|
298, 299, 300, 301, 125, -1, 60, -1, -1, -1,
|
|
308, 309, -1, 257, 258, -1, -1, -1, 262, 263,
|
|
-1, -1, -1, -1, -1, 269, -1, -1, -1, -1,
|
|
274, -1, 276, 277, 278, 279, 280, 281, -1, -1,
|
|
284, 125, 257, 258, -1, -1, -1, 262, 263, -1,
|
|
-1, -1, -1, -1, 269, -1, -1, 301, -1, 274,
|
|
-1, 276, 277, 278, 279, 280, 281, -1, -1, 284,
|
|
257, 258, -1, -1, -1, 262, -1, -1, -1, -1,
|
|
-1, -1, 269, -1, -1, -1, 301, 274, -1, 276,
|
|
277, 278, -1, -1, -1, -1, -1, 284, -1, -1,
|
|
257, 258, -1, -1, 291, 262, -1, -1, -1, -1,
|
|
-1, -1, 269, -1, 301, -1, -1, 274, -1, 276,
|
|
277, 278, -1, -1, -1, -1, -1, 284, -1, -1,
|
|
-1, -1, -1, -1, 291, -1, 257, 258, -1, -1,
|
|
-1, 262, -1, -1, 301, -1, -1, -1, 269, -1,
|
|
-1, -1, -1, 274, -1, 276, 277, 278, -1, -1,
|
|
-1, -1, -1, 284, -1, -1, -1, -1, -1, -1,
|
|
291, -1, -1, 257, 258, -1, -1, -1, 262, -1,
|
|
301, -1, -1, -1, -1, 269, -1, -1, -1, -1,
|
|
274, -1, 276, 277, 278, -1, -1, -1, -1, -1,
|
|
284, -1, -1, 257, 258, -1, -1, 291, 262, -1,
|
|
-1, -1, -1, -1, -1, 269, -1, 301, -1, -1,
|
|
274, -1, 276, 277, 278, -1, -1, -1, -1, -1,
|
|
284, -1, -1, -1, -1, -1, -1, 291, -1, -1,
|
|
};
|
|
}
|
|
class yyCheck3 {
|
|
protected static final short yyCheck3 [] = { -1,
|
|
-1, -1, -1, -1, -1, -1, 301,
|
|
};
|
|
}
|
|
class yyCheckInit {
|
|
static short[] yyCheck = new short[3011];
|
|
protected static void yyCheckInit () {
|
|
int numyycheck;
|
|
int yyCheckerun = 0;
|
|
for (numyycheck = 0; numyycheck <= 1000; numyycheck++) {
|
|
if (yyCheckerun < 3011) {
|
|
yyCheck[yyCheckerun] = yyCheck0.yyCheck0[numyycheck];
|
|
yyCheckerun++;
|
|
}
|
|
}
|
|
for (numyycheck = 0; numyycheck <= 1000; numyycheck++) {
|
|
if (yyCheckerun < 3011) {
|
|
yyCheck[yyCheckerun] = yyCheck1.yyCheck1[numyycheck];
|
|
yyCheckerun++;
|
|
}
|
|
}
|
|
for (numyycheck = 0; numyycheck <= 1000; numyycheck++) {
|
|
if (yyCheckerun < 3011) {
|
|
yyCheck[yyCheckerun] = yyCheck2.yyCheck2[numyycheck];
|
|
yyCheckerun++;
|
|
}
|
|
}
|
|
for (numyycheck = 0; numyycheck <= 1000; numyycheck++) {
|
|
if (yyCheckerun < 3011) {
|
|
yyCheck[yyCheckerun] = yyCheck3.yyCheck3[numyycheck];
|
|
yyCheckerun++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|