public class PParserState extends java.lang.Object implements State
start(), commit(), and
abort() cannot be nested within each other.| Constructor and Description |
|---|
PParserState()
Create a new packrat parser state object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void reset(java.lang.String file)
Stateresetting attribute.public void start()
Statestateful attribute.public void commit()
Statestateful attribute.public void abort()
Statestateful attribute.public void open()
public void content()
public void newline()
public void close()
Copyright © 2014. All Rights Reserved.