Exemplo n.º 1
0
 public RepeatStatementRule(TerminalNode repeat, ICollection <StatementRule> statements,
                            TerminalNode until, ConditionStatementRule conditionStatement)
 {
     Repeat             = Guard.OneOf(() => repeat, Token.Repeat);
     Statements         = statements;
     Until              = Guard.OneOf(() => until, Token.Until);
     ConditionStatement = Guard.NonNull(() => conditionStatement);
 }
Exemplo n.º 2
0
 public ElseIfStatementRule(TerminalNode elseIf, ConditionStatementRule conditionStatement, TerminalNode then,
                            ICollection <StatementRule> statements, ExtraElseIfRule extraElseIf)
 {
     ElseIf             = Guard.OneOf(() => elseIf, Token.ElseIf);
     ConditionStatement = Guard.NonNull(() => conditionStatement);
     Then        = Guard.OneOf(() => then, Token.Then);
     Statements  = statements;
     ExtraElseIf = Guard.NonNull(() => extraElseIf);
 }