Package jflex.generator
Class Emitters
java.lang.Object
jflex.generator.Emitters
Factory class for Emitter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Emitter
createFileEmitter
(File inputLexFile, LexParse parser, DFA dfa) Creates an Emitter that generates the java code in a file.static Emitter
createPrintWriterEmitter
(LexParse parser, DFA dfa, PrintWriter writer) Create Emitter that writes to writer
-
Constructor Details
-
Emitters
private Emitters()
-
-
Method Details
-
createFileEmitter
public static Emitter createFileEmitter(File inputLexFile, LexParse parser, DFA dfa) throws IOException Creates an Emitter that generates the java code in a file. The output file name is inferred from the class defined in the grammar.- Parameters:
inputLexFile
- input grammar.parser
- aLexParse
.dfa
- aDFA
.- Returns:
Emitter
.- Throws:
IOException
- if any.
-
createPrintWriterEmitter
Create Emitter that writes to writer
-