Package net.sf.cb2xml.sablecc.lexer

Examples of net.sf.cb2xml.sablecc.lexer.Lexer


     * @return a copybook instance containing the parse tree for the definition
     */
    public static Copybook parse(String name, Reader reader)
    {       
        Copybook document = null;
        Lexer lexer = null;
        try {
            String preProcessed = CobolPreprocessor.preProcess(reader);
            StringReader sr = new StringReader(preProcessed);
            PushbackReader pbr = new PushbackReader(sr, 1000);
           
            if (debug) {
                lexer = new DebugLexer(pbr);
            } else {
                lexer = new Lexer(pbr);
            }
           
            Parser parser = new Parser(lexer);
            Start ast = parser.parse();
            CopybookAnalyzer copyBookAnalyzer = new CopybookAnalyzer(name, parser);
View Full Code Here

TOP

Related Classes of net.sf.cb2xml.sablecc.lexer.Lexer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.