|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.common.parser.Parser
public class Parser
This class implements the core parse tree generation algorithm. The core algorithm is implemented in the parse() method, and the parser is configured by passing in:
| Constructor Summary | |
|---|---|
Parser(Scanner scanner)
Creates a new instance of Parser. |
|
| Method Summary | |
|---|---|
java.util.List<Node> |
getProgram()
Accessor that returns the root level nodes of the program. |
boolean |
parse()
Implements the core parsing algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser(Scanner scanner)
scanner - the syntax scanner| Method Detail |
|---|
public boolean parse()
public java.util.List<Node> getProgram()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||