Example #1
0
        public Checker(SymbolTable symbols, AST.Program program)
        {
            _symbols = symbols;
            _program = program;

            // create the standard set of predefined identifiers that Triangle defines
            CreateStandardEnvironment();

            // start walking the AST from the topmost node
            _program.visit(this);
        }
Example #2
0
        public Checker(SymbolTable symbols, AST.Program program)
        {
            _symbols = symbols;
            _program = program;

            // create the standard set of predefined identifiers that Triangle defines
            CreateStandardEnvironment();

            // start walking the AST from the topmost node
            _program.visit(this);
        }
Example #3
0
 public CodeGen(SymbolTable symbols, AST.Program program)
 {
     _symbols = symbols;
     _program = program;
     _program.visit(this);
 }
Example #4
0
 public CodeGen(SymbolTable symbols, AST.Program program)
 {
     _symbols = symbols;
     _program = program;
     _program.visit(this);
 }