|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.parser.DefaultRubyParser
Nested Class Summary | |
protected static class |
DefaultRubyParser.YyCheckClass
|
protected static class |
DefaultRubyParser.YyDefRedClass
|
protected static class |
DefaultRubyParser.YyDgotoClass
|
static class |
DefaultRubyParser.yyException
thrown for irrecoverable syntax errors and stack overflow. |
protected static class |
DefaultRubyParser.YyGindexClass
|
protected static class |
DefaultRubyParser.YyLenClass
|
protected static class |
DefaultRubyParser.YyLhsClass
|
protected static class |
DefaultRubyParser.YyNameClass
|
protected static class |
DefaultRubyParser.YyRindexClass
|
protected static class |
DefaultRubyParser.YySindexClass
|
protected static class |
DefaultRubyParser.YyTableClass
|
Field Summary | |
static int |
k__FILE__
|
static int |
k__LINE__
|
static int |
kALIAS
|
static int |
kAND
|
static int |
kBEGIN
|
static int |
kBREAK
|
static int |
kCASE
|
static int |
kCLASS
|
static int |
kDEF
|
static int |
kDEFINED
|
static int |
kDO
|
static int |
kDO_BLOCK
|
static int |
kDO_COND
|
static int |
kELSE
|
static int |
kELSIF
|
static int |
kEND
|
static int |
kENSURE
|
static int |
kFALSE
|
static int |
kFOR
|
static int |
kIF
|
static int |
kIF_MOD
|
static int |
kIN
|
static int |
klBEGIN
|
static int |
klEND
|
static int |
kMODULE
|
static int |
kNEXT
|
static int |
kNIL
|
static int |
kNOT
|
static int |
kOR
|
static int |
kREDO
|
static int |
kRESCUE
|
static int |
kRESCUE_MOD
|
static int |
kRETRY
|
static int |
kRETURN
|
static int |
kSELF
|
static int |
kSUPER
|
static int |
kTHEN
|
static int |
kTRUE
|
static int |
kUNDEF
|
static int |
kUNLESS
|
static int |
kUNLESS_MOD
|
static int |
kUNTIL
|
static int |
kUNTIL_MOD
|
static int |
kWHEN
|
static int |
kWHILE
|
static int |
kWHILE_MOD
|
static int |
kYIELD
|
static int |
LAST_TOKEN
|
static int |
tAMPER
|
static int |
tANDOP
|
static int |
tAREF
|
static int |
tARRAY
|
static int |
tASET
|
static int |
tASSOC
|
static int |
tBACK_REF
|
static int |
tCMP
|
static int |
tCOLON2
|
static int |
tCOLON3
|
static int |
tCONSTANT
|
static int |
tCVAR
|
static int |
tDOT2
|
static int |
tDOT3
|
static int |
tDREGEXP
|
static int |
tDSTRING
|
static int |
tDXSTRING
|
static int |
tEQ
|
static int |
tEQQ
|
static int |
tFID
|
static int |
tFLOAT
|
static int |
tGEQ
|
static int |
tGVAR
|
static int |
tIDENTIFIER
|
static int |
tINTEGER
|
static int |
tIVAR
|
static int |
tLBRACE
|
static int |
tLBRACK
|
static int |
tLEQ
|
static int |
tLPAREN
|
static int |
tLSHFT
|
static int |
tMATCH
|
static int |
tNEQ
|
static int |
tNMATCH
|
static int |
tNTH_REF
|
static int |
tOP_ASGN
|
static int |
tOROP
|
static int |
tPOW
|
static int |
tREGEXP
|
static int |
tRSHFT
|
static int |
tSTAR
|
static int |
tSTRING
|
static int |
tSYMBEG
|
static int |
tUMINUS
|
static int |
tUPLUS
|
static int |
tXSTRING
|
static int |
yyErrorCode
|
protected static int |
yyFinal
debugging support, requires the package jay.yydebug. |
protected int |
yyMax
initial size and increment of the state/value stack [default 256]. |
Constructor Summary | |
DefaultRubyParser()
|
Method Summary | |
void |
init(IConfiguration configuration)
|
IParserResult |
parse(ILexerSource source)
The parse method use an lexer stream and parse it to an AST node structure |
void |
setErrorHandler(IErrorHandler errorHandler)
|
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. |
void |
yyerror(java.lang.String message,
java.lang.Object 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(IYaccLexer yyLex)
the generated parser. |
java.lang.Object |
yyparse(IYaccLexer yyLex,
java.lang.Object yydebug)
the generated parser, with debugging messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int kCLASS
public static final int kMODULE
public static final int kDEF
public static final int kUNDEF
public static final int kBEGIN
public static final int kRESCUE
public static final int kENSURE
public static final int kEND
public static final int kIF
public static final int kUNLESS
public static final int kTHEN
public static final int kELSIF
public static final int kELSE
public static final int kCASE
public static final int kWHEN
public static final int kWHILE
public static final int kUNTIL
public static final int kFOR
public static final int kBREAK
public static final int kNEXT
public static final int kREDO
public static final int kRETRY
public static final int kIN
public static final int kDO
public static final int kDO_COND
public static final int kDO_BLOCK
public static final int kRETURN
public static final int kYIELD
public static final int kSUPER
public static final int kSELF
public static final int kNIL
public static final int kTRUE
public static final int kFALSE
public static final int kAND
public static final int kOR
public static final int kNOT
public static final int kIF_MOD
public static final int kUNLESS_MOD
public static final int kWHILE_MOD
public static final int kUNTIL_MOD
public static final int kRESCUE_MOD
public static final int kALIAS
public static final int kDEFINED
public static final int klBEGIN
public static final int klEND
public static final int k__LINE__
public static final int k__FILE__
public static final int tIDENTIFIER
public static final int tFID
public static final int tGVAR
public static final int tIVAR
public static final int tCONSTANT
public static final int tCVAR
public static final int tINTEGER
public static final int tFLOAT
public static final int tSTRING
public static final int tXSTRING
public static final int tREGEXP
public static final int tDXSTRING
public static final int tDREGEXP
public static final int tBACK_REF
public static final int tNTH_REF
public static final int tDSTRING
public static final int tARRAY
public static final int tUPLUS
public static final int tUMINUS
public static final int tPOW
public static final int tCMP
public static final int tEQ
public static final int tEQQ
public static final int tNEQ
public static final int tGEQ
public static final int tLEQ
public static final int tANDOP
public static final int tOROP
public static final int tMATCH
public static final int tNMATCH
public static final int tDOT2
public static final int tDOT3
public static final int tAREF
public static final int tASET
public static final int tLSHFT
public static final int tRSHFT
public static final int tCOLON2
public static final int tCOLON3
public static final int tOP_ASGN
public static final int tASSOC
public static final int tLPAREN
public static final int tLBRACK
public static final int tLBRACE
public static final int tSTAR
public static final int tAMPER
public static final int tSYMBEG
public static final int LAST_TOKEN
public static final int yyErrorCode
protected static final int yyFinal
protected int yyMax
Constructor Detail |
public DefaultRubyParser()
Method Detail |
public void setErrorHandler(IErrorHandler errorHandler)
setErrorHandler
in interface IParser
public void yyerror(java.lang.String message)
public void yyerror(java.lang.String message, java.lang.Object expected)
message
- text to be displayed.expected
- vector of acceptable tokens, if available.protected java.lang.String[] yyExpecting(int state)
state
- for which to compute the list.
public java.lang.Object yyparse(IYaccLexer yyLex, java.lang.Object yydebug) throws java.io.IOException, DefaultRubyParser.yyException
yyLex
- The lexer.yydebug
- debug message writer implementing yyDebug, or null.
DefaultRubyParser.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(IYaccLexer yyLex) throws java.io.IOException, DefaultRubyParser.yyException
yyLex
- The lexer.
DefaultRubyParser.yyException
- on irrecoverable parse error.
java.io.IOException
public IParserResult parse(ILexerSource source)
parse
in interface IParser
public void init(IConfiguration configuration)
init
in interface IParser
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |