Changeset 3016


Ignore:
Timestamp:
Apr 12, 2013, 4:38:56 PM (6 years ago)
Author:
bhull
Message:

RE Changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/src/applications/PrintCode.java

    r3005 r3016  
    6565        lexStreams = lexStreams +"\n    "+varName+" = (0)";
    6666        }
     67        lexStreams = lexStreams + "\n   LF = (0)";
    6768        String clearCursors = "";
    6869        for(int i = 0; i<visitor.cursorGenerator.position; i++) {
     
    7576        CodeGenerator codeGenerator = new CodeGenerator(visitor.getNodeStates(),visitor.getCharacterClassVariables(), new PythonGenerator());
    7677        template = template.replace("@pbs_code", clearCursors+"\tm0=~0\n@pbs_code");
    77         template = template.replace("@cc_input", CharacterClassOutputGenerator.generateCharacterClassOutput(visitor.getCharacterClassVariables()));
     78        template = template.replace("@cc_input", CharacterClassOutputGenerator.generateCharacterClassOutput(visitor.getCharacterClassVariables())+"lex.LF = [\\x0A]\n");
    7879        template = template.replace("@pbs_code",codeGenerator.generateCode(syntaxTree).toString());
    7980        template = template.replace("@pbs_debug", debugCode);
Note: See TracChangeset for help on using the changeset viewer.