Exemple #1
0
 public TypeVisitor(DemiTasse.symbol.SymbolTable symtab, ClassRec c, MethodRec m)
 {
     symTable = symtab;
     currClass = c;
     currMethod = m;
     hasReturn = false;
 }
Exemple #2
0
 // ***********************************************************
 // * constructor -- a symbol table is passed in as a parameter
 // ***********************************************************
 public TypeVisitor(SymbolTable symtab)
 {
     symTable = symtab;
     currClass = null;
     currMethod = null;
     hasReturn = false;
 }
Exemple #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;
 }
Exemple #4
0
        // ***********************************************************
        // * constructor -- a symbol table is passed in as a parameter
        // ***********************************************************

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

        #endregion Fields

        #region Constructors

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