Пример #1
0
 public ZeroOrMore(string RuleName, SyntaxRule Terms, string Description)
     : base(string.Empty, stream(Terms))
 {
 }
Пример #2
0
 public ZeroOrMore(SyntaxRule Terms)
     : base(string.Empty, stream(Terms))
 {
 }
Пример #3
0
 public Parenthetical(SyntaxRule Rule, string Description = null)
     : base(string.Empty, stream(Rule), Description)
 {
 }
Пример #4
0
 protected RuleGroup(string RuleName, SyntaxRule Term, string Description = null)
     : this(RuleName, stream(Term), Description)
 {
 }
Пример #5
0
 public OptionalRule(SyntaxRule Rule, string Description = null)
     : base(string.Empty, stream(Rule), Description)
 {
 }
Пример #6
0
 public static Parenthetical Define(SyntaxRule rule, string Description = null)
 => new Parenthetical(rule, Description);
Пример #7
0
 public AssignmentRule(string RuleName, SyntaxRule first, SyntaxRule second, string Description = null)
     : base(RuleName, stream(first, second), Description)
 {
 }
Пример #8
0
 public OptionalRule(string RuleName, SyntaxRule Rule, string Description = null)
     : base(RuleName, stream(Rule), Description)
 {
 }
Пример #9
0
 public OneOrMore(SyntaxRule Rule)
     : base(string.Empty, stream(Rule))
 {
 }
Пример #10
0
 public RuleGroup(SyntaxRule Term, string Description = null)
     : base(string.Empty, Term)
 {
 }
Пример #11
0
 public RuleGroup(string RuleName, SyntaxRule Term, string Description = null)
     : base(RuleName, Term)
 {
 }
Пример #12
0
 /// <summary>
 /// Concatentates the supplied rules to form a <see cref="RuleSequence"/>
 /// </summary>
 /// <param name="r1">The first rule</param>
 /// <param name="r2">The second (composite) rule</param>
 /// <returns></returns>
 public static RuleSequence Append(SyntaxRule r1, (SyntaxRule x1, SyntaxRule x2) r2)
Пример #13
0
 /// <summary>
 /// Concatenates two rules to form a <see cref="RuleSequence"/>
 /// </summary>
 /// <param name="r1">The first rule</param>
 /// <param name="r2">The second rule</param>
 /// <returns></returns>
 public static RuleSequence Append(SyntaxRule r1, SyntaxRule r2)
 => new RuleSequence(stream(r1, r2));