Example #1
0
 public AssignVariableNode(String name, SGLNode expression,List<SGLObject> spriteObjects, Scope scope)
 {
     this.name = name;
     this.expression = expression;
     this.scope = scope;
     this.spriteObjects = spriteObjects;
 }
Example #2
0
 public DeclareVariableNode(String type, String name, SGLNode expression, Scope scope)
 {
     this.type = type;
     this.name = name;
     this.expression = expression;
     this.scope = scope;
 }
Example #3
0
 public ModNode(SGLNode lhs, SGLNode rhs)
 {
     this.lhs = lhs;
     this.rhs = rhs;
 }
Example #4
0
 public NotEqualsNode(SGLNode lhs, SGLNode rhs)
 {
     this.lhs = lhs;
     this.rhs = rhs;
 }
Example #5
0
 public Choice(SGLNode e, SGLNode b)
 {
     expression = e;
     block = b;
 }
Example #6
0
 public void AddChoice(SGLNode e, SGLNode b)
 {
     choices.Add(new Choice(e, b));
 }
Example #7
0
 public void SetIteration(SGLNode iteration)
 {
     this.iteration = iteration;
 }
Example #8
0
 public void SetInit(SGLNode init)
 {
     this.init = init;
 }
Example #9
0
 public void SetCondition(SGLNode condition)
 {
     this.condition = condition;
 }
Example #10
0
 public void SetBlock(SGLNode block)
 {
     this.block = block;
 }
Example #11
0
 public AtNode(SGLNode expression, SGLNode block)
 {
     this.expression = expression;
     this.block = block;
 }
Example #12
0
 public ReturnNode(SGLNode expression)
 {
     this.expression = expression;
 }
Example #13
0
 public TernaryNode(SGLNode condition, SGLNode ifTrue, SGLNode ifFalse)
 {
     this.condition = condition;
     this.ifTrue = ifTrue;
     this.ifFalse = ifFalse;
 }
Example #14
0
 public void AddStatement(SGLNode stat)
 {
     statements.Add(stat);
 }
Example #15
0
 public NegateNode(SGLNode child)
 {
     this.child = child;
 }