コード例 #1
0
 public MainClassDeclNode(IdentifierNode classIdNode, IdentifierNode parameterIDNode, StatementNode statementNode, int lineNumber)
 {
     this.classIdentifier = classIdNode;
     this.mainParameterIdentifier = parameterIDNode;
     this.statement = statementNode;
     this.lineNumber = lineNumber;
 }
コード例 #2
0
ファイル: IfStatementNode.cs プロジェクト: ssarangi/minijava
 public IfStatementNode(ExpressionNode expressionNode, StatementNode thenStatementNode, StatementNode elseStatementNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.thenStatement = thenStatementNode;
     this.elseStatement = elseStatementNode;
     this.lineNumber = lineNumber;
 }
コード例 #3
0
 public void AddStatement(StatementNode statement)
 {
     this.statementList.Add(statement);
 }
コード例 #4
0
 public WhileStatementNode(ExpressionNode expressionNode, StatementNode statementNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.statement  = statementNode;
     this.lineNumber = lineNumber;
 }
コード例 #5
0
 public WhileStatementNode(ExpressionNode expressionNode, StatementNode statementNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.statement = statementNode;
     this.lineNumber = lineNumber;
 }
コード例 #6
0
 public MainClassDeclNode(IdentifierNode classIdNode, IdentifierNode parameterIDNode, StatementNode statementNode, int lineNumber)
 {
     this.classIdentifier         = classIdNode;
     this.mainParameterIdentifier = parameterIDNode;
     this.statement  = statementNode;
     this.lineNumber = lineNumber;
 }