|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.parsec.Words
public final class Words
This helper class provides convenient api's to build lexer and parsers for keywords and operators.
Method Summary | |
---|---|
Parser<Tok> |
getLexer()
gets the lexer object. |
java.lang.Object |
getToken(java.lang.String name)
gets the token object identified by the token text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object getToken(java.lang.String name)
name
- the token text.
java.lang.IllegalArgumentException
- if the token object does not exist.public Parser<Tok> getLexer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |