예제 #1
0
 public TypeVisitor(DemiTasse.symbol.SymbolTable symtab, ClassRec c, MethodRec m)
 {
     symTable = symtab;
     currClass = c;
     currMethod = m;
     hasReturn = false;
 }
예제 #2
0
 // ***********************************************************
 // * constructor -- a symbol table is passed in as a parameter
 // ***********************************************************
 public TypeVisitor(SymbolTable symtab)
 {
     symTable = symtab;
     currClass = null;
     currMethod = null;
     hasReturn = false;
 }
예제 #3
0
 public IrgenVisitor(SymbolTable symTable_, TypeVisitor tv_)
 {
     cOne = new IrConst(1);
     cZero = new IrConst(0);
     cWordSize = new IrName("wSZ");
     symTable = symTable_;
     tv = tv_;
     currClass = null;
     currMethod = null;
 }
예제 #4
0
        // ***********************************************************
        // * constructor -- a symbol table is passed in as a parameter
        // ***********************************************************

        public TypeVisitorRM(SymbolTable symtab) 
        {
            symTable = symtab;
        }
예제 #5
0
        private MethodRec currMethod; // the current method scope

        #endregion Fields

        #region Constructors

        public SymbolVisitor()
        {
            symTable = new symbol.SymbolTable();
            currClass = null;
            currMethod = null;
        }