コード例 #1
0
ファイル: ExtraEquationRule.cs プロジェクト: zero-based/teeny
 public ExtraEquationRule(TerminalNode arithmeticOperator, EquationRule equation,
                          ExtraEquationRule extraEquation)
 {
     ArithmeticOperator = Guard.OneOf(() => arithmeticOperator, TokensGroups.ArithmeticOperators);
     Equation           = Guard.NonNull(() => equation);
     ExtraEquation      = extraEquation;
 }
コード例 #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;
 }
コード例 #3
0
 public EquationRule(TermRule term, ExtraEquationRule extraEquation)
 {
     Term          = Guard.NonNull(() => term);
     ExtraEquation = extraEquation;
 }