public FunctionDclNode(IdNode id, string returnType, List <FormalParamNode> formalParams, BlockNode body = null)
 {
     Id               = id;
     ReturnType       = returnType;
     FormalParamNodes = formalParams;
     FuncBody         = body;
 }
Example #2
0
 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;
 }
Example #3
0
 public ElifNode(ExpressionNode controlExpr, BlockNode elifBody)
 {
     ControlExpr = controlExpr;
     ElifBody    = elifBody;
 }
Example #4
0
 public WhileNode(ExpressionNode controlExpr, BlockNode whileLoopBody)
 {
     this.ControlExpr   = controlExpr;
     this.WhileLoopBody = whileLoopBody;
 }
Example #5
0
 public ElseNode(BlockNode elseBody)
 {
     ElseBody = elseBody;
 }
Example #6
0
 public ConstructorNode(IdNode id, List <FormalParamNode> formalParamNodes, BlockNode block)
 {
     Id = id;
     FormalParamNodes = formalParamNodes;
     Block            = block;
 }