Package antlr.debug.misc

Examples of antlr.debug.misc.ASTFrame


        if ( showTree ) {
            CommonAST.setVerboseStringConversion(true, tokenNames);
            ASTFactory factory = new ASTFactory();
            AST r = factory.create(0,"AST ROOT");
            r.setFirstChild(t);
            final ASTFrame frame = new ASTFrame("Groovy AST", r);
            frame.setVisible(true);
            frame.addWindowListener(
                new WindowAdapter() {
                   public void windowClosing (WindowEvent e) {
                       frame.setVisible(false); // hide the Frame
                       frame.dispose();
                       System.exit(0);
                   }
                }
            );
            if (verboseSystem.out.println(t.toStringList());
View Full Code Here


        Gpr.debug(debug, "Ruleset Name: '" + ruleSetName + "'");
        fis.addFuzzyRuleSet(ruleSetName, ruleSet);

        // Show tree?
        if( verbose ) {
          ASTFrame astFrame = new ASTFrame("Tree", parseTree);
          astFrame.setVisible(true);
        }
      }
    } catch(Exception e) {
      Gpr.debug("Exception: " + e);
      e.printStackTrace();
View Full Code Here

    if ( showTree ) {
      CommonAST.setVerboseStringConversion(true, tokenNames);
      ASTFactory factory = new ASTFactory();
      AST r = factory.create(0,"AST ROOT");
      r.setFirstChild(t);
      final ASTFrame frame = new ASTFrame("Groovy AST", r);
      frame.setVisible(true);
      frame.addWindowListener(
        new WindowAdapter() {
                   public void windowClosing (WindowEvent e) {
                       frame.setVisible(false); // hide the Frame
                       frame.dispose();
                       System.exit(0);
                   }
            }
      );
      if (verboseSystem.out.println(t.toStringList());
View Full Code Here

  public int getLine() {
    return line_;
  }
 
  public void displayTree(AST r){
    final ASTFrame frame = new ASTFrame("Java AST", r);
    frame.setVisible(true);
    frame.addWindowListener(
      new WindowAdapter() {
               public void windowClosing (WindowEvent e) {
                   frame.setVisible(true); // hide the Frame
                   frame.dispose();
                   System.exit(0);
               }
          }
    );
  }
View Full Code Here

TOP

Related Classes of antlr.debug.misc.ASTFrame

Copyright © 2018 www.massapicom. 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.