Exemplo n.º 1
0
 public MainClassDeclNode(IdentifierNode classIdNode, IdentifierNode parameterIDNode, StatementNode statementNode, int lineNumber)
 {
     this.classIdentifier = classIdNode;
     this.mainParameterIdentifier = parameterIDNode;
     this.statement = statementNode;
     this.lineNumber = lineNumber;
 }
Exemplo n.º 2
0
 public IfStatementNode(ExpressionNode expressionNode, StatementNode thenStatementNode, StatementNode elseStatementNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.thenStatement = thenStatementNode;
     this.elseStatement = elseStatementNode;
     this.lineNumber = lineNumber;
 }
Exemplo n.º 3
0
 public void AddStatement(StatementNode statement)
 {
     this.statementList.Add(statement);
 }
Exemplo n.º 4
0
 public WhileStatementNode(ExpressionNode expressionNode, StatementNode statementNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.statement  = statementNode;
     this.lineNumber = lineNumber;
 }
Exemplo n.º 5
0
 public WhileStatementNode(ExpressionNode expressionNode, StatementNode statementNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.statement = statementNode;
     this.lineNumber = lineNumber;
 }
Exemplo n.º 6
0
 public MainClassDeclNode(IdentifierNode classIdNode, IdentifierNode parameterIDNode, StatementNode statementNode, int lineNumber)
 {
     this.classIdentifier         = classIdNode;
     this.mainParameterIdentifier = parameterIDNode;
     this.statement  = statementNode;
     this.lineNumber = lineNumber;
 }