Menu ▾ ▴

#56 CobolParser / ParsingCoordinator changes

v1.0 (example)
closed-fixed
nobody
None
5
2015-11-10
2015-11-09
No

Please change CobolParser.parse to public and change parameter reader to Reader (from FileReader)

and add the following method to ParsingCoordinator

public ParseResults parse(File file,  Reader reader) throws IOException {
    CobolParser parser = new CobolParser();

    parser.setFormat(format);
    parser.setKeepingTrackOfTokens(keepingTrackOfTokens);

    parser.setPreprocessing(preprocessing);
    parser.setCopybooks(copybooks);

    parser.setBuildTrees(buildTrees);
    ParseResults results = parser.parse(file, reader);

    return results;
}

This way I can use Koopa Parser in my Eclipse Cobol Editor plugin with a DocumentReader as an input.

Discussion

  • KrisDS

    KrisDS - 2015-11-10

    An Eclipse Cobol Editor plugin ? Cool. :-)
    Is that a public project ?

    I applied your changes in [r308].

     

    Related

    Commit: [r308]

  • KrisDS

    KrisDS - 2015-11-10
    • status: open --> closed-fixed
     

Log in to post a comment.