Package antlr

Examples of antlr.ASTFactory


protected ExpressionParser(TokenStream lexer, int k) {
  super(lexer,k);
  tokenNames = _tokenNames;
  buildTokenTypeASTClassMap();
  astFactory = new ASTFactory(getTokenTypeToASTClassMap());
}
View Full Code Here


public ExpressionParser(ParserSharedInputState state) {
  super(state,1);
  tokenNames = _tokenNames;
  buildTokenTypeASTClassMap();
  astFactory = new ASTFactory(getTokenTypeToASTClassMap());
}
View Full Code Here

  public FCLParser(ParserSharedInputState state) {
    super(state, 1);
    tokenNames = _tokenNames;
    buildTokenTypeASTClassMap();
    astFactory = new ASTFactory(getTokenTypeToASTClassMap());
  }
View Full Code Here

  protected FCLParser(TokenBuffer tokenBuf, int k) {
    super(tokenBuf, k);
    tokenNames = _tokenNames;
    buildTokenTypeASTClassMap();
    astFactory = new ASTFactory(getTokenTypeToASTClassMap());
  }
View Full Code Here

  protected FCLParser(TokenStream lexer, int k) {
    super(lexer, k);
    tokenNames = _tokenNames;
    buildTokenTypeASTClassMap();
    astFactory = new ASTFactory(getTokenTypeToASTClassMap());
  };
View Full Code Here

    protected PtalonRecognizer(TokenBuffer tokenBuf, int k) {
        super(tokenBuf, k);
        tokenNames = _tokenNames;
        buildTokenTypeASTClassMap();
        astFactory = new ASTFactory(getTokenTypeToASTClassMap());
    }
View Full Code Here

    protected PtalonRecognizer(TokenStream lexer, int k) {
        super(lexer, k);
        tokenNames = _tokenNames;
        buildTokenTypeASTClassMap();
        astFactory = new ASTFactory(getTokenTypeToASTClassMap());
    }
View Full Code Here

    public PtalonRecognizer(ParserSharedInputState state) {
        super(state, 2);
        tokenNames = _tokenNames;
        buildTokenTypeASTClassMap();
        astFactory = new ASTFactory(getTokenTypeToASTClassMap());
    }
View Full Code Here

    }
    public void doTreeAction(String f, AST t, String[] tokenNames) {
      if ( t==null ) return;
      if ( showTree ) {
         ((CommonAST)t).setVerboseStringConversion(true, tokenNames);
         ASTFactory factory = new ASTFactory();
         AST r = factory.create(0,"AST ROOT");
         r.setFirstChild(t);
         ASTFrame frame = new ASTFrame("Pascal AST", r);
         frame.setVisible(true);
         //System.out.println(t.toStringList());
      }
View Full Code Here

protected PascalParser(TokenBuffer tokenBuf, int k) {
  super(tokenBuf,k);
  tokenNames = _tokenNames;
  buildTokenTypeASTClassMap();
  astFactory = new ASTFactory(getTokenTypeToASTClassMap());
}
View Full Code Here

TOP

Related Classes of antlr.ASTFactory

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.