Example #1
0
 public ZeroOrMore(string RuleName, SyntaxRule Terms, string Description)
     : base(string.Empty, stream(Terms))
 {
 }
Example #2
0
 public ZeroOrMore(SyntaxRule Terms)
     : base(string.Empty, stream(Terms))
 {
 }
Example #3
0
 public Parenthetical(SyntaxRule Rule, string Description = null)
     : base(string.Empty, stream(Rule), Description)
 {
 }
Example #4
0
 protected RuleGroup(string RuleName, SyntaxRule Term, string Description = null)
     : this(RuleName, stream(Term), Description)
 {
 }
Example #5
0
 public OptionalRule(SyntaxRule Rule, string Description = null)
     : base(string.Empty, stream(Rule), Description)
 {
 }
Example #6
0
 public static Parenthetical Define(SyntaxRule rule, string Description = null)
 => new Parenthetical(rule, Description);
Example #7
0
 public AssignmentRule(string RuleName, SyntaxRule first, SyntaxRule second, string Description = null)
     : base(RuleName, stream(first, second), Description)
 {
 }
Example #8
0
 public OptionalRule(string RuleName, SyntaxRule Rule, string Description = null)
     : base(RuleName, stream(Rule), Description)
 {
 }
Example #9
0
 public OneOrMore(SyntaxRule Rule)
     : base(string.Empty, stream(Rule))
 {
 }
Example #10
0
 public RuleGroup(SyntaxRule Term, string Description = null)
     : base(string.Empty, Term)
 {
 }
Example #11
0
 public RuleGroup(string RuleName, SyntaxRule Term, string Description = null)
     : base(RuleName, Term)
 {
 }
Example #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)
Example #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));