Beispiel #1
0
 public AssignmentStatementNode(IdentifierNode variable, ExpressionNode expression)
 {
     Variable = variable;
     Expression = expression;
 }
Beispiel #2
0
 public UnaryExpressionNode(Operator @operator, ExpressionNode child)
 {
     Operator = @operator;
     Child = child;
 }
Beispiel #3
0
 public WhileStatementNode(ExpressionNode condition, StatementNode body)
 {
     Condition = condition;
     Body = body;
 }
Beispiel #4
0
 public ReturnStatementNode(ExpressionNode expression)
 {
     Expression = expression;
 }
Beispiel #5
0
 public IfStatementNode(ExpressionNode condition, StatementNode thenBody, StatementNode elseBody)
 {
     Condition = condition;
     ThenBody = thenBody;
     ElseBody = elseBody;
 }
Beispiel #6
0
 public BinaryExpressionNode(ExpressionNode left, Operator @operator, ExpressionNode right)
 {
     Left = left;
     Operator = @operator;
     Right = right;
 }
Beispiel #7
0
 public void AddArgument(ExpressionNode expressionNode)
 {
     this.arguments.Add(expressionNode);
 }
Beispiel #8
0
 public ArrayProperty(TokenType valueType, ExpressionNode sizeExpression = null, int declarationRow = int.MaxValue, bool redeclaration = false)
     : base(declarationRow, true, true, redeclaration: redeclaration)
 {
     this.arrayElementType = valueType;
     this.sizeExpression   = sizeExpression;
 }