|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.percederberg.grammatica.output.CSharpParserFile
The C# parser file generator. This class encapsulates all the C# code necessary for creating a parser.
| Constructor Summary | |
CSharpParserFile(CSharpParserGenerator gen,
CSharpTokenizerFile tokenizer)
Creates a new parser file. |
|
| Method Summary | |
void |
addProduction(ProductionPattern pattern,
net.percederberg.grammatica.output.CSharpConstantsFile constants)
Adds a production pattern definition to this file. |
void |
addProductionConstant(ProductionPattern pattern)
Adds a production constant definition to this file. |
void |
writeCode()
Writes the file source code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CSharpParserFile(CSharpParserGenerator gen,
CSharpTokenizerFile tokenizer)
gen - the parser generator to usetokenizer - the tokenizer file generator| Method Detail |
public void addProductionConstant(ProductionPattern pattern)
pattern - the production pattern
public void addProduction(ProductionPattern pattern,
net.percederberg.grammatica.output.CSharpConstantsFile constants)
pattern - the production patternconstants - the constants file generator
public void writeCode()
throws java.io.IOException
java.io.IOException - if the output file couldn't be created
correctly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||