Search in sources :

Example 1 with SmaliLexer

use of com.googlecode.d2j.smali.antlr4.SmaliLexer in project dex2jar by pxb1988.

the class Smali method smali0.

private static void smali0(DexFileVisitor dcv, CharStream is) throws IOException {
    SmaliLexer lexer = new SmaliLexer(is);
    CommonTokenStream ts = new CommonTokenStream(lexer);
    SmaliParser parser = new SmaliParser(ts);
    for (SmaliParser.SFileContext ctx : parser.sFiles().sFile()) {
        AntlrSmaliUtil.acceptFile(ctx, dcv);
    }
}
Also used : SmaliParser(com.googlecode.d2j.smali.antlr4.SmaliParser) SmaliLexer(com.googlecode.d2j.smali.antlr4.SmaliLexer)

Aggregations

SmaliLexer (com.googlecode.d2j.smali.antlr4.SmaliLexer)1 SmaliParser (com.googlecode.d2j.smali.antlr4.SmaliParser)1