public class GrammarSerializerFoo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ByteArrayOutputStream |
altBuf |
protected String |
filename |
protected Grammar |
g |
protected int |
numElementsInAlt |
protected DataOutputStream |
out |
| Constructor and Description |
|---|
GrammarSerializerFoo(Grammar g) |
| Modifier and Type | Method and Description |
|---|---|
void |
alt(GrammarAST alt) |
void |
block(int nalts) |
void |
charLiteral(GrammarAST t) |
void |
close() |
void |
endAlt() |
void |
endRule() |
void |
grammar(int grammarTokenType,
String name) |
void |
not() |
void |
open(String filename) |
void |
range() |
void |
rule(String name) |
void |
ruleRef(GrammarAST t) |
void |
token(GrammarAST t) |
void |
wildcard(GrammarAST t) |
void |
writeString(DataOutputStream out,
String s) |
protected DataOutputStream out
protected String filename
protected Grammar g
protected ByteArrayOutputStream altBuf
protected int numElementsInAlt
public GrammarSerializerFoo(Grammar g)
public void open(String filename) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void grammar(int grammarTokenType,
String name)
public void rule(String name)
public void endRule()
public void block(int nalts)
public void alt(GrammarAST alt)
public void endAlt()
public void ruleRef(GrammarAST t)
public void token(GrammarAST t)
public void charLiteral(GrammarAST t)
public void wildcard(GrammarAST t)
public void range()
public void not()
public void writeString(DataOutputStream out, String s) throws IOException
IOExceptionCopyright © 1992–2014 ANTLR. All rights reserved.