|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpj.Rfc
public class Rfc
RFC-style grammar for pj.
| Nested Class Summary | |
|---|---|
static class |
Rfc.Scanner
embedded pj scanner. |
static interface |
Rfc.yyActions
interface between grammar and actions. |
static class |
Rfc.yyException
thrown for irrecoverable syntax errors and stack overflow. |
static interface |
Rfc.yyInput
must be implemented by a scanner object to supply input to the parser. |
| Field Summary | |
|---|---|
static int |
__error
|
static int |
Epilog
|
static int |
Id
|
static int |
LEFT
|
static int |
Lex
|
static int |
Lit
|
static int |
Lit1
|
static int |
Mac
|
static int |
NONASSOC
|
static int |
PACKAGE
|
static int |
PREC
|
static int |
RIGHT
|
static int |
SCAN
|
static int |
SCREEN
|
static int |
SEP
|
static int |
SKIP
|
static int |
Sym
|
static int |
TOKEN
|
protected Rfc.yyActions |
yyAct
current factory. |
protected static short[] |
yyCheck
parser tables. |
protected static short[] |
yyDefRed
parser tables. |
protected static short[] |
yyDgoto
parser tables. |
static int |
yyErrorCode
|
protected static int |
yyFinal
number of final state. |
protected static short[] |
yyGindex
parser tables. |
protected static short[] |
yyLen
parser tables. |
protected static short[] |
yyLhs
parser tables. |
protected int |
yyMax
initial size and increment of the state/value stack [default 256]. |
protected static String[] |
yyNames
maps symbol value to printable name. |
protected static short[] |
yyRindex
parser tables. |
protected static short[] |
yySindex
parser tables. |
protected static short[] |
yyTable
parser tables. |
| Constructor Summary | |
|---|---|
Rfc()
|
|
| Method Summary | |
|---|---|
protected Object |
yyDefault(Object first)
executed at the beginning of a reduce action. |
void |
yyerror(String message)
simplified error message. |
void |
yyerror(String message,
String[] expected)
(syntax) error message. |
protected String[] |
yyExpecting(int state)
computes list of expected tokens on error by tracing the tables. |
Object |
yyparse(Rfc.yyInput yyLex)
the generated parser. |
Object |
yyparse(Rfc.yyInput yyLex,
Object yydebug)
the generated parser, with debugging messages. |
List |
yyparse(Rfc.yyInput yyLex,
Object yydebug,
Rfc.yyActions yyAct)
entry point for parser with trace. |
List |
yyparse(Rfc.yyInput yyLex,
Rfc.yyActions yyAct)
entry point for parser without trace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Rfc.yyActions yyAct
public static final int Epilog
public static final int Id
public static final int LEFT
public static final int Lex
public static final int Lit
public static final int Lit1
public static final int Mac
public static final int NONASSOC
public static final int PACKAGE
public static final int PREC
public static final int RIGHT
public static final int SCAN
public static final int SCREEN
public static final int SEP
public static final int SKIP
public static final int Sym
public static final int TOKEN
public static final int __error
public static final int yyErrorCode
protected static final int yyFinal
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 static final short[] yyCheck
protected static final String[] yyNames
yyExpecting(int)protected int yyMax
yyparse(pj.Rfc.yyInput, java.lang.Object, pj.Rfc.yyActions).
| Constructor Detail |
|---|
public Rfc()
| Method Detail |
|---|
public List yyparse(Rfc.yyInput yyLex,
Object yydebug,
Rfc.yyActions yyAct)
throws IOException,
Rfc.yyException
IOException
Rfc.yyException
public List yyparse(Rfc.yyInput yyLex,
Rfc.yyActions yyAct)
throws IOException,
Rfc.yyException
IOException
Rfc.yyExceptionpublic void yyerror(String message)
yyerror(java.lang.String, java.lang.String[])
public void yyerror(String message,
String[] expected)
message - text to be displayed.expected - list of acceptable tokens, if available.protected String[] yyExpecting(int state)
state - for which to compute the list.
public Object yyparse(Rfc.yyInput yyLex,
Object yydebug)
throws IOException,
Rfc.yyException
yyLex - scanner.yydebug - debug message writer implementing yyDebug, or null.
Rfc.yyException - on irrecoverable parse error.
IOExceptionprotected Object yyDefault(Object first)
first - value for $1, or null.
public Object yyparse(Rfc.yyInput yyLex)
throws IOException,
Rfc.yyException
yyLex - scanner.
Rfc.yyException - on irrecoverable parse error.
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||