|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.grammatica.output.CSharpAnalyzerFile
The C# analyzer file generator. This class encapsulates all the C# code necessary for creating a analyzer class file.
Constructor Summary | |
CSharpAnalyzerFile(CSharpParserGenerator gen)
Creates a new analyzer file. |
Method Summary | |
void |
addProduction(ProductionPattern pattern,
net.percederberg.grammatica.output.CSharpConstantsFile constants)
Adds the production analysis methods to this file. |
void |
addToken(TokenPattern pattern,
net.percederberg.grammatica.output.CSharpConstantsFile constants)
Adds the token analysis methods 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 CSharpAnalyzerFile(CSharpParserGenerator gen)
gen
- the parser generator to useMethod Detail |
public void addToken(TokenPattern pattern, net.percederberg.grammatica.output.CSharpConstantsFile constants)
pattern
- the token patternconstants
- the constants filepublic void addProduction(ProductionPattern pattern, net.percederberg.grammatica.output.CSharpConstantsFile constants)
pattern
- the production patternconstants
- the constants filepublic 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 |