public class Antlr4ParserPlugin extends Object implements ParserPlugin
Constructor and Description |
---|
Antlr4ParserPlugin(CompilerConfiguration compilerConfiguration) |
Modifier and Type | Method and Description |
---|---|
ModuleNode |
buildAST(SourceUnit sourceUnit,
ClassLoader classLoader,
Reduction cst) |
Reduction |
parseCST(SourceUnit sourceUnit,
Reader reader) |
public Antlr4ParserPlugin(CompilerConfiguration compilerConfiguration)
public Reduction parseCST(SourceUnit sourceUnit, Reader reader) throws CompilationFailedException
parseCST
in interface ParserPlugin
CompilationFailedException
public ModuleNode buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst) throws ParserException
buildAST
in interface ParserPlugin
ParserException