Create antlr qsortLexer - Java Parser

Java examples for Parser:antlr

Description

Create antlr qsortLexer

Demo Code

import org.antlr.runtime.*;

public class Main {
    public static void main(String[] args) throws Exception {
        CharStream input = new ANTLRFileStream(args[0]);
        qsortLexer lex = new qsortLexer(input);
        CommonTokenStream tokens = new CommonTokenStream(lex);
        // System.out.println("tokens="+tokens);
        qsortParser parser = new qsortParser(tokens);
        parser.program();/*from   w w  w.  j a  va  2  s  .c  o m*/
    }
}

Related Tutorials