|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.hydromatic.clapham.parser.wirth.WirthParser
public class WirthParser
Parser for grammars in Wirth Syntax Notation.
Wirth Syntax Notation (WSN) is an alternative to Backus-Naur Form.
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
WirthParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface net.hydromatic.clapham.parser.wirth.WirthParserConstants |
---|
BAR, DEFAULT, DIGIT, DOT, EOF, EQ, IDENTIFIER, LBRACE, LBRACKET, LETTER, LITERAL, LPAREN, QUOT, RBRACE, RBRACKET, RPAREN, tokenImage |
Constructor Summary | |
---|---|
WirthParser(java.io.InputStream stream)
Constructor with InputStream. |
|
WirthParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
WirthParser(java.io.Reader stream)
Constructor. |
|
WirthParser(WirthParserTokenManager tm)
Constructor with generated Token Manager. |
Method Summary | ||
---|---|---|
void |
disable_tracing()
Disable tracing. |
|
void |
enable_tracing()
Enable tracing. |
|
EbnfNode |
Expression()
|
|
EbnfNode |
Factor()
|
|
ParseException |
generateParseException()
Generate ParseException. |
|
Token |
getNextToken()
Get the next Token. |
|
Token |
getToken(int index)
Get the specific Token. |
|
IdentifierNode |
Identifier()
|
|
LiteralNode |
Literal()
|
|
ProductionNode |
Production()
|
|
void |
ReInit(java.io.InputStream stream)
Reinitialise. |
|
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise. |
|
void |
ReInit(java.io.Reader stream)
Reinitialise. |
|
void |
ReInit(WirthParserTokenManager tm)
Reinitialise. |
|
java.util.List<ProductionNode> |
Syntax()
Syntactical Descriptions * |
|
EbnfNode |
Term()
|
|
static
|
toString(java.lang.StringBuilder buf,
java.lang.String start,
java.util.List<E> list,
java.lang.String end)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public WirthParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public WirthParser(java.io.InputStream stream)
public WirthParser(java.io.InputStream stream, java.lang.String encoding)
public WirthParser(java.io.Reader stream)
public WirthParser(WirthParserTokenManager tm)
Method Detail |
---|
public static <E extends EbnfNode> void toString(java.lang.StringBuilder buf, java.lang.String start, java.util.List<E> list, java.lang.String end)
public final java.util.List<ProductionNode> Syntax() throws ParseException
ParseException
public final ProductionNode Production() throws ParseException
ParseException
public final EbnfNode Expression() throws ParseException
ParseException
public final EbnfNode Term() throws ParseException
ParseException
public final EbnfNode Factor() throws ParseException
ParseException
public final IdentifierNode Identifier() throws ParseException
ParseException
public final LiteralNode Literal() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(WirthParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |