public final class PParser extends ParserBase
xtc.parser.PGrammar.
This class has been generated by the Rats! parser
generator, version 2.1.0, (C) 2004-2011 Robert Grimm.| Modifier and Type | Field and Description |
|---|---|
protected PParserState |
yyState
The global state object.
|
FIRST_COLUMN, FIRST_LINE, INCR_SIZE, INIT_SIZE, NEWLINE, yyColumns, yyCount, yyData, yyEOF, yyReader| Constructor and Description |
|---|
PParser(java.io.Reader reader,
java.lang.String file)
Create a new packrat parser.
|
PParser(java.io.Reader reader,
java.lang.String file,
int size)
Create a new packrat parser.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
newColumn()
Create a new column.
|
Result |
pAttribute(int yyStart)
Parse nonterminal xtc.parser.PGrammar.Attribute.
|
Result |
pModule(int yyStart)
Parse nonterminal xtc.parser.PGrammar.Module.
|
apply, apply, cast, cast, character, column, difference, format, isEOF, lineAt, location, peek, resetTo, setLocation, setLocation, signal, valueprotected final PParserState yyState
public PParser(java.io.Reader reader,
java.lang.String file)
reader - The reader.file - The file name.public PParser(java.io.Reader reader,
java.lang.String file,
int size)
reader - The file reader.file - The file name.size - The file size.protected Column newColumn()
ParserBasenewColumn in class ParserBasepublic Result pModule(int yyStart) throws java.io.IOException
yyStart - The index.java.io.IOException - Signals an I/O error.public Result pAttribute(int yyStart) throws java.io.IOException
yyStart - The index.java.io.IOException - Signals an I/O error.Copyright © 2014. All Rights Reserved.