public AssignVariableNode(String name, SGLNode expression,List<SGLObject> spriteObjects, Scope scope) { this.name = name; this.expression = expression; this.scope = scope; this.spriteObjects = spriteObjects; }
public DeclareVariableNode(String type, String name, SGLNode expression, Scope scope) { this.type = type; this.name = name; this.expression = expression; this.scope = scope; }
public ModNode(SGLNode lhs, SGLNode rhs) { this.lhs = lhs; this.rhs = rhs; }
public NotEqualsNode(SGLNode lhs, SGLNode rhs) { this.lhs = lhs; this.rhs = rhs; }
public Choice(SGLNode e, SGLNode b) { expression = e; block = b; }
public void AddChoice(SGLNode e, SGLNode b) { choices.Add(new Choice(e, b)); }
public void SetIteration(SGLNode iteration) { this.iteration = iteration; }
public void SetInit(SGLNode init) { this.init = init; }
public void SetCondition(SGLNode condition) { this.condition = condition; }
public void SetBlock(SGLNode block) { this.block = block; }
public AtNode(SGLNode expression, SGLNode block) { this.expression = expression; this.block = block; }
public ReturnNode(SGLNode expression) { this.expression = expression; }
public TernaryNode(SGLNode condition, SGLNode ifTrue, SGLNode ifFalse) { this.condition = condition; this.ifTrue = ifTrue; this.ifFalse = ifFalse; }
public void AddStatement(SGLNode stat) { statements.Add(stat); }
public NegateNode(SGLNode child) { this.child = child; }