Examples of GrammarTreeVisitor


Examples of org.antlr.v4.parse.GrammarTreeVisitor

    return false;
  }

  public Set<String> getStringLiterals() {
    final Set<String> strings = new LinkedHashSet<String>();
    GrammarTreeVisitor collector = new GrammarTreeVisitor() {
      @Override
      public void stringRef(TerminalAST ref) {
        strings.add(ref.getText());
      }
      @Override
      public ErrorManager getErrorManager() { return tool.errMgr; }
    };
    collector.visitGrammar(ast);
    return strings;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.