|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.umlv.tatoo.runtime.tools.builder.Builder.ParserBuilder<T,N,P,V>
T - type of terminals.N - type of non terminals.P - type of productions.V - type of versions.public static class Builder.ParserBuilder<T,N,P,V>
A parser builder able to configure the version of the grammar and the start non terminal that will be used by the parser.
| Method Summary | |
|---|---|
Parser<T,N,P,V> |
create()
Create a new parser. |
Builder.ExpertParserBuilder<T,N,P,V> |
expert()
Returns a parser builder in expert mode. |
Builder.ParserBuilder<T,N,P,V> |
start(N start)
Set the start non terminal. |
Builder.ParserBuilder<T,N,P,V> |
trace()
Trace all calls to the parser listener. |
Builder.ParserBuilder<T,N,P,V> |
version(V version)
Set the grammar version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Builder.ParserBuilder<T,N,P,V> start(N start)
start - a start non terminal.
public Builder.ParserBuilder<T,N,P,V> version(V version)
version - a grammar version.
public Builder.ParserBuilder<T,N,P,V> trace()
public Builder.ExpertParserBuilder<T,N,P,V> expert()
public Parser<T,N,P,V> create()
default lookahead map is used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||