Example usage for org.antlr.v4.tool ANTLRToolListener interface-usage

List of usage examples for org.antlr.v4.tool ANTLRToolListener interface-usage

Introduction

In this page you can find the example usage for org.antlr.v4.tool ANTLRToolListener interface-usage.

Usage

From source file org.opencypher.tools.grammar.Antlr4ToolFacade.java

public class Antlr4ToolFacade implements ANTLRToolListener {
    public static void assertGeneratesValidParser(String resource) throws Exception {
        Output.Readable buffer = stringBuilder();
        Tool antlr = new Tool();
        Antlr4ToolFacade facade = new Antlr4ToolFacade(antlr, buffer);
        try {