public ExtraEquationRule(TerminalNode arithmeticOperator, EquationRule equation, ExtraEquationRule extraEquation) { ArithmeticOperator = Guard.OneOf(() => arithmeticOperator, TokensGroups.ArithmeticOperators); Equation = Guard.NonNull(() => equation); ExtraEquation = extraEquation; }
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; }
public EquationRule(TermRule term, ExtraEquationRule extraEquation) { Term = Guard.NonNull(() => term); ExtraEquation = extraEquation; }