|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.grammatica.output.CSharpTokenizerFile
The C# tokenizer file generator. This class encapsulates all the C# code necessary for creating a tokenizer.
Constructor Summary | |
CSharpTokenizerFile(CSharpParserGenerator gen)
Creates a new tokenizer file. |
Method Summary | |
void |
addToken(TokenPattern pattern,
net.percederberg.grammatica.output.CSharpConstantsFile constants)
Adds a token pattern definition to this file. |
protected java.lang.String |
getConstructorCall(java.lang.String param)
Creates source code performing a call to the constructor for the tokenizer. |
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 CSharpTokenizerFile(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 file generatorprotected java.lang.String getConstructorCall(java.lang.String param)
param
- the input parameters
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 |