public ForLoopStatement(Parser yyp, Expression e) : base((yyp)) { kids.Add(e); }
public ForLoopStatement(Parser yyp, ForLoopStatement fls, Expression e) : base((yyp)) { while (0 < fls.kids.Count) kids.Add(fls.kids.Pop()); kids.Add(e); }
public ReturnStatement(Parser yyp, Expression e) : base((yyp)) { if (e is ConstantExpression) while (0 < e.kids.Count) kids.Add(e.kids.Pop()); else kids.Add(e); }
public ForLoop(Parser yyp, ForLoopStatement flsa, Expression e, ForLoopStatement flsb, Statement s) : base((yyp)) { kids.Add(flsa); kids.Add(e); kids.Add(flsb); if (0 < s.kids.Count && s.kids.Top is CompoundStatement) kids.Add(s.kids.Pop()); else kids.Add(s); }
public UnaryExpression(Parser yyp, string unarySymbol, Expression e) : base((yyp)) { m_unarySymbol = unarySymbol; AddExpression(e); }
public BinaryExpression(Parser yyp, Expression lhs, Expression rhs, string expressionSymbol) : base((yyp)) { m_expressionSymbol = expressionSymbol; AddExpression(lhs); AddExpression(rhs); }
protected void AddExpression(Expression e) { if (e is ConstantExpression) while (0 < e.kids.Count) kids.Add(e.kids.Pop()); else kids.Add(e); }
public RotationConstant(Parser yyp, Expression valX, Expression valY, Expression valZ, Expression valS) : base((yyp), "rotation", null) { kids.Add(valX); kids.Add(valY); kids.Add(valZ); kids.Add(valS); }
public VectorConstant(Parser yyp, Expression valX, Expression valY, Expression valZ) : base((yyp), "vector", null) { kids.Add(valX); kids.Add(valY); kids.Add(valZ); }