public FunctionDclNode(IdNode id, string returnType, List <FormalParamNode> formalParams, BlockNode body = null) { Id = id; ReturnType = returnType; FormalParamNodes = formalParams; FuncBody = body; }
public PlayLoopNode(IdNode player, IdNode opponent, ExpressionNode allPlayers, BlockNode playLoopBody, ExpressionNode untilCondition) { this.Player = player; this.Opponents = opponent; this.AllPlayers = allPlayers; this.PlayLoopBody = playLoopBody; this.UntilCondition = untilCondition; }
public ElifNode(ExpressionNode controlExpr, BlockNode elifBody) { ControlExpr = controlExpr; ElifBody = elifBody; }
public WhileNode(ExpressionNode controlExpr, BlockNode whileLoopBody) { this.ControlExpr = controlExpr; this.WhileLoopBody = whileLoopBody; }
public ElseNode(BlockNode elseBody) { ElseBody = elseBody; }
public ConstructorNode(IdNode id, List <FormalParamNode> formalParamNodes, BlockNode block) { Id = id; FormalParamNodes = formalParamNodes; Block = block; }