|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sc3d.apt.sss.v3.Tree org.sc3d.apt.sss.v3.Tree.Terminal
public static class Tree.Terminal
The subclass of Tree with 'isTerminal==true', which represents a single Token. In other words, this class represents a string that matches a Grammar.Terminal.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.sc3d.apt.sss.v3.Tree |
---|
Tree.NonTerminal, Tree.Production, Tree.Terminal |
Field Summary | |
---|---|
Token |
t
The Token that the parser found. |
Fields inherited from class org.sc3d.apt.sss.v3.Tree |
---|
isTerminal |
Constructor Summary | |
---|---|
Tree.Terminal(Token t)
Constructs a Terminal. |
Method Summary | |
---|---|
Tree |
parse()
If this Terminal represents a bracket, parses the contents and returns the parse-tree. |
Methods inherited from class org.sc3d.apt.sss.v3.Tree |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Token t
Constructor Detail |
---|
public Tree.Terminal(Token t)
Method Detail |
---|
public Tree parse()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |