public class GrammarSerializerFoo extends Object
Modifier and Type | Field | Description |
---|---|---|
protected ByteArrayOutputStream |
altBuf |
|
protected String |
filename |
|
protected Grammar |
g |
|
protected int |
numElementsInAlt |
|
protected DataOutputStream |
out |
Constructor | Description |
---|---|
GrammarSerializerFoo(Grammar g) |
Modifier and Type | Method | 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
IOException
public void close() throws IOException
IOException
public 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
IOException
Copyright © 1992–2019 ANTLR. All rights reserved.