public class JavaParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JavaParser.yyException
thrown for irrecoverable syntax errors and stack overflow.
|
static interface |
JavaParser.yyInput
must be implemented by a scanner object to supply input to the parser.
|
Modifier and Type | Field and Description |
---|---|
static int |
ABSTRACT |
static int |
ANDEQUAL |
static int |
BOOLEAN |
static int |
BOOLLITERAL |
static int |
BRACE |
static int |
BREAK |
static int |
CASE |
static int |
CATCH |
static int |
CHAR |
static int |
CHARLITERAL |
static int |
CLASS |
private Menge<Type> |
containedTypes |
static int |
CONTINUE |
static int |
DECREMENT |
static int |
DEFAULT |
static int |
DIVIDEEQUAL |
static int |
DO |
static int |
DOUBLELITERAL |
static int |
ELSE |
static int |
ENDOFGENERICVARDECLARATION |
static int |
EOF |
static int |
EQUAL |
static int |
EXTENDS |
static int |
FINAL |
static int |
FINALLY |
static int |
FLOATLITERAL |
static int |
FOR |
static int |
GREATEREQUAL |
static int |
IDENTIFIER |
static int |
IF |
static int |
IMPLEMENTS |
static int |
IMPORT |
static int |
INCREMENT |
static int |
INSTANCEOF |
static int |
INT |
static int |
INTERFACE |
static int |
INTLITERAL |
static int |
JNULL |
static int |
LAMBDAASSIGNMENT |
static int |
LESSEQUAL |
static int |
LOGICALAND |
static int |
LOGICALOR |
static int |
LONGLITERAL |
static int |
MINUSEQUAL |
static int |
MODULOEQUAL |
static int |
NEW |
static int |
NOTEQUAL |
static int |
OP |
static int |
OREQUAL |
static int |
PACKAGE |
Menge |
path |
static int |
PLUSEQUAL |
static int |
PRIVATE |
static int |
PROTECTED |
static int |
PUBLIC |
static int |
RELOP |
static int |
RETURN |
static int |
SHIFTLEFT |
static int |
SHIFTLEFTEQUAL |
static int |
SHIFTRIGHT |
static int |
SIGNEDSHIFTRIGHT |
static int |
SIGNEDSHIFTRIGHTEQUAL |
static int |
STATIC |
static int |
STRINGLITERAL |
static int |
SUPER |
static int |
SWITCH |
Menge<Pair> |
testPair |
static int |
THIS |
static int |
THROW |
static int |
THROWS |
static int |
TIMESEQUAL |
static int |
TRY |
static int |
UNSIGNEDSHIFTRIGHT |
static int |
UNSIGNEDSHIFTRIGHTEQUAL |
private Menge<UsedId> |
usedIdsToCheck |
static int |
VOID |
static int |
WHILE |
static int |
XOREQUAL |
protected short[] |
yyCheck |
protected static short[] |
yyDefRed |
protected static short[] |
yyDgoto |
static int |
yyErrorCode |
protected static int |
yyFinal
debugging support, requires the package jay.yydebug.
|
protected static short[] |
yyGindex |
protected static short[] |
yyLen |
protected static short[] |
yyLhs |
protected int |
yyMax
initial size and increment of the state/value stack [default 256].
|
protected static java.lang.String[] |
yyName |
protected static short[] |
yyRindex |
protected static short[] |
yySindex |
protected static short[] |
yyTable |
Constructor and Description |
---|
JavaParser() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
initContainedTypes() |
(package private) void |
initUsedIdsToCheck() |
protected java.lang.Object |
yyDefault(java.lang.Object first)
executed at the beginning of a reduce action.
|
void |
yyerror(java.lang.String message)
simplified error message.
|
java.lang.String |
yyerror(java.lang.String message,
java.lang.String[] expected)
(syntax) error message.
|
protected java.lang.String[] |
yyExpecting(int state)
computes list of expected tokens on error by tracing the tables.
|
java.lang.Object |
yyparse(JavaParser.yyInput yyLex)
the generated parser.
|
java.lang.Object |
yyparse(JavaParser.yyInput yyLex,
java.lang.Object yydebug)
the generated parser, with debugging messages.
|
public Menge path
public static final int ABSTRACT
public static final int BOOLEAN
public static final int BREAK
public static final int CASE
public static final int CATCH
public static final int CHAR
public static final int CLASS
public static final int CONTINUE
public static final int DEFAULT
public static final int DO
public static final int ELSE
public static final int EXTENDS
public static final int FINAL
public static final int FINALLY
public static final int FOR
public static final int IF
public static final int INSTANCEOF
public static final int INT
public static final int NEW
public static final int PRIVATE
public static final int PROTECTED
public static final int PUBLIC
public static final int PACKAGE
public static final int IMPORT
public static final int INTERFACE
public static final int IMPLEMENTS
public static final int RETURN
public static final int STATIC
public static final int SUPER
public static final int SWITCH
public static final int THIS
public static final int THROW
public static final int THROWS
public static final int TRY
public static final int VOID
public static final int WHILE
public static final int INTLITERAL
public static final int LONGLITERAL
public static final int DOUBLELITERAL
public static final int FLOATLITERAL
public static final int BOOLLITERAL
public static final int JNULL
public static final int CHARLITERAL
public static final int STRINGLITERAL
public static final int IDENTIFIER
public static final int EQUAL
public static final int LESSEQUAL
public static final int GREATEREQUAL
public static final int NOTEQUAL
public static final int LOGICALOR
public static final int LOGICALAND
public static final int INCREMENT
public static final int DECREMENT
public static final int SHIFTLEFT
public static final int SHIFTRIGHT
public static final int UNSIGNEDSHIFTRIGHT
public static final int SIGNEDSHIFTRIGHT
public static final int PLUSEQUAL
public static final int MINUSEQUAL
public static final int TIMESEQUAL
public static final int DIVIDEEQUAL
public static final int ANDEQUAL
public static final int OREQUAL
public static final int XOREQUAL
public static final int MODULOEQUAL
public static final int SHIFTLEFTEQUAL
public static final int SIGNEDSHIFTRIGHTEQUAL
public static final int UNSIGNEDSHIFTRIGHTEQUAL
public static final int BRACE
public static final int RELOP
public static final int OP
public static final int EOF
public static final int LAMBDAASSIGNMENT
public static final int ENDOFGENERICVARDECLARATION
public static final int yyErrorCode
protected static final int yyFinal
protected static final java.lang.String[] yyName
protected int yyMax
protected static final short[] yyLhs
protected static final short[] yyLen
protected static final short[] yyDefRed
protected static final short[] yyDgoto
protected static final short[] yySindex
protected static final short[] yyRindex
protected static final short[] yyGindex
protected static final short[] yyTable
protected short[] yyCheck
void initContainedTypes()
void initUsedIdsToCheck()
public void yyerror(java.lang.String message)
public java.lang.String yyerror(java.lang.String message, java.lang.String[] expected)
message
- text to be displayed.expected
- Menge of acceptable tokens, if available.protected java.lang.String[] yyExpecting(int state)
state
- for which to compute the list.public java.lang.Object yyparse(JavaParser.yyInput yyLex, java.lang.Object yydebug) throws java.io.IOException, JavaParser.yyException
yyLex
- scanner.yydebug
- debug message writer implementing yyDebug, or null.JavaParser.yyException
- on irrecoverable parse error.java.io.IOException
protected java.lang.Object yyDefault(java.lang.Object first)
first
- value for $1, or null.public java.lang.Object yyparse(JavaParser.yyInput yyLex) throws java.io.IOException, JavaParser.yyException
yyLex
- scanner.JavaParser.yyException
- on irrecoverable parse error.java.io.IOException