public ExtraEquationRule(TerminalNode arithmeticOperator, EquationRule equation,
                          ExtraEquationRule extraEquation)
 {
     ArithmeticOperator = Guard.OneOf(() => arithmeticOperator, TokensGroups.ArithmeticOperators);
     Equation           = Guard.NonNull(() => equation);
     ExtraEquation      = extraEquation;
 }
Exemple #2
0
 public EquationRule(TerminalNode parenthesisLeft, EquationRule equation,
                     TerminalNode parenthesisRight, ExtraEquationRule extraEquation)
 {
     ParenthesisLeft  = Guard.OneOf(() => parenthesisLeft, Token.ParenthesisLeft);
     Equation         = Guard.NonNull(() => equation);
     ParenthesisRight = Guard.OneOf(() => parenthesisRight, Token.ParenthesisRight);
     ExtraEquation    = extraEquation;
 }