|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xtc.parser.ParserBase orc.parser.OrcParserRats
public final class OrcParserRats
Packrat parser for grammar orc.parser.OrcParserRats
.
Field Summary |
---|
Fields inherited from class xtc.parser.ParserBase |
---|
FIRST_COLUMN, FIRST_LINE, INCR_SIZE, INIT_SIZE, NEWLINE, yyColumns, yyCount, yyData, yyEOF, yyReader |
Constructor Summary | |
---|---|
OrcParserRats(Config config,
java.io.Reader reader,
java.lang.String filename)
|
|
OrcParserRats(java.io.Reader reader,
java.lang.String file)
Create a new packrat parser. |
|
OrcParserRats(java.io.Reader reader,
java.lang.String file,
int size)
Create a new packrat parser. |
Method Summary | ||
---|---|---|
protected void |
abort(xtc.parser.ParseError error)
Signal an unrecoverable error in the parse. |
|
protected
|
at(int start,
int end,
E e)
Attach a source location to an expression. |
|
protected
|
at(Locatable start,
int end,
E e)
Attach a source location to a postfix operator. |
|
protected
|
at(Locatable start,
Locatable end,
E e)
Attach a source location to an infix binary operator. |
|
protected xtc.parser.Column |
newColumn()
|
|
xtc.parser.Result |
pModule(int yyStart)
Parse nonterminal orc.parser.OrcParserRats.Module. |
|
xtc.parser.Result |
pProgram(int yyStart)
Parse nonterminal orc.parser.OrcParserRats.Program. |
Methods inherited from class xtc.parser.ParserBase |
---|
apply, apply, cast, cast, character, column, difference, format, isEOF, lineAt, location, peek, resetTo, setLocation, setLocation, signal, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrcParserRats(java.io.Reader reader, java.lang.String file)
reader
- The reader.file
- The file name.public OrcParserRats(java.io.Reader reader, java.lang.String file, int size)
reader
- The file reader.file
- The file name.size
- The file size.public OrcParserRats(Config config, java.io.Reader reader, java.lang.String filename)
Method Detail |
---|
protected xtc.parser.Column newColumn()
newColumn
in class xtc.parser.ParserBase
public xtc.parser.Result pProgram(int yyStart) throws java.io.IOException
yyStart
- The index.
java.io.IOException
- Signals an I/O error.public xtc.parser.Result pModule(int yyStart) throws java.io.IOException
yyStart
- The index.
java.io.IOException
- Signals an I/O error.protected final <E extends Locatable> E at(int start, int end, E e)
yyValue = at(yyStart, yyCount, yyValue)
protected final <E extends Locatable> E at(Locatable start, Locatable end, E e)
protected final <E extends Locatable> E at(Locatable start, int end, E e)
protected final void abort(xtc.parser.ParseError error) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |