Esempio n. 1
0
        public CompoundExpression(ISymbolTable parentScope) : base(NodeType.CompoundExpression)
        {
            nameScope = new SymbolTable(ScopeType.Compound, parentScope);

            statements = new StatementCollection(this);
        }
Esempio n. 2
0
 public BlockExpression(ISymbolTable parentScope) : base(NodeType.BlockExpression)
 {
     statements = new StatementCollection(this);
     nameScope  = new SymbolTable(ScopeType.Block, parentScope);
 }
 public ForStatement()
 {
     statements = new StatementCollection(this);
 }
 public IfStatement(IfType iftype)
 {
     trueStmts   = new StatementCollection(this);
     falseStmts  = new StatementCollection(this);
     this.iftype = iftype;
 }
Esempio n. 5
0
 public RepeatStatement(RepeatType type, IExpression conditionExp)
 {
     statements        = new StatementCollection(this);
     this.type         = type;
     this.conditionExp = conditionExp;
 }
        public NamespaceDeclaration(ISymbolTable parentScope) : base(NodeType.NamespaceDefinition)
        {
            nameScope = new SymbolTable(ScopeType.Namespace, parentScope);

            typeDeclarations = new StatementCollection(this);
        }