Ejemplo n.º 1
0
	public bool testSpecificHomoCreate() {
		factory = new ASTFactory();
		factory.setASTNodeType("MyAST");
		AST t = factory.create();
		factory.setASTNodeType("antlr.CommonAST"); // put it back
		return checkNode(t, typeof(MyAST), Token.INVALID_TYPE);
	}
Ejemplo n.º 2
0
    public bool testSpecificHomoCreate()
    {
        factory = new ASTFactory();
        factory.setASTNodeType("MyAST");
        AST t = factory.create();

        factory.setASTNodeType("antlr.CommonAST");         // put it back
        return(checkNode(t, typeof(MyAST), Token.INVALID_TYPE));
    }
Ejemplo n.º 3
0
 /// <summary>
 /// Specify the type of node to create during tree building.
 /// </summary>
 /// <param name="cl">Fully qualified AST Node type name.</param>
 public virtual void  setASTNodeClass(string cl)
 {
     astFactory.setASTNodeType(cl);
 }
Ejemplo n.º 4
0
 /*Specify the type of node to create during tree building */
 public virtual void  setASTNodeClass(string nodeType)
 {
     astFactory.setASTNodeType(nodeType);
 }