diff options
Diffstat (limited to 'colm/parsedata.cpp')
-rw-r--r-- | colm/parsedata.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/colm/parsedata.cpp b/colm/parsedata.cpp index 1ed0403d..ba7f14cd 100644 --- a/colm/parsedata.cpp +++ b/colm/parsedata.cpp @@ -1747,7 +1747,7 @@ void ParseData::semanticAnalysis() /* Make the reduced fsm. */ RedFsmBuild reduce( sectionName, this, fsmGraph ); - RedFsm *redFsm = reduce.reduceMachine(); + redFsm = reduce.reduceMachine(); /* Build the parsers used for patterns and replacements. */ makePatternParsers(); @@ -1774,13 +1774,10 @@ void ParseData::semanticAnalysis() /* Parse patterns and replacements. */ parsePatterns(); +} - /* - * Write output. - */ - - openOutput(); - +void ParseData::generateOutput() +{ FsmCodeGen *fsmGen = new FsmCodeGen("<INPUT>", sectionName, *outStream, redFsm, fsmTables ); |