|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.parser.PParserState
public class PParserState
Parser state for parsing Rats! grammars. Note that
this class supports only a single state-modifying transaction. In
other words, calls to start(), commit(), and
abort() cannot be nested within each other.
| Constructor Summary | |
|---|---|
PParserState()
Create a new packrat parser state object. |
|
| Method Summary | |
|---|---|
void |
abort()
Abort a state-modifying transaction. |
void |
close()
Record a closing brace. |
void |
commit()
Commit a state-modifying transaction. |
void |
content()
Record any character besides spaces. |
java.util.List<java.lang.Integer> |
indentations()
Retrieve the list of indentation levels. |
void |
newline()
Record a newline. |
void |
open()
Record an opening brace. |
void |
reset(java.lang.String file)
Reset the global state object. |
void |
start()
Start a new state-modifying transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PParserState()
| Method Detail |
|---|
public void reset(java.lang.String file)
Stateresetting attribute.
reset in interface Statefile - The file name.public void start()
Statestateful attribute.
start in interface Statepublic void commit()
Statestateful attribute.
commit in interface Statepublic void abort()
Statestateful attribute.
abort in interface Statepublic void open()
public void content()
public void newline()
public void close()
public java.util.List<java.lang.Integer> indentations()
newline() since the last
invocation of start().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||