Inheritance: IEmitCode, ILocation
Ejemplo n.º 1
0
        public Symtab(BekPgm ast)
        {
            this.symtab = new Dictionary<ident, SymtabElt>();
            this.names = new Stack<Dictionary<string, SymtabElt>>();
            this.names.Push(new Dictionary<string, SymtabElt>());

            HandleLhs(ast.input, BekTypes.STR, true);

            stmt_visitor.Visit(this, ast.body);

            this.names = null;
        }
Ejemplo n.º 2
0
 public BekProgram(BekPgm ast, Symtab tab)
 {
     this.ast = ast;
     this.stab = tab;
 }