Inheritance: IEmitCode, ILocation
コード例 #1
0
ファイル: Symtab.cs プロジェクト: AutomataDotNet/Automata
        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;
        }
コード例 #2
0
ファイル: BekParser.cs プロジェクト: AutomataDotNet/Automata
 public BekProgram(BekPgm ast, Symtab tab)
 {
     this.ast = ast;
     this.stab = tab;
 }