public RegexExpression Flush()
            {
                this.AppendExpression(null);
                var expression = this.alternate != null?RegexAlternation.Create(this.alternate, this.current) : this.current;

                if (this.caseSensitive.HasValue)
                {
                    return(this.caseSensitive.Value ? RegexCaseGroup.CreateSensitive(expression) : RegexCaseGroup.CreateInsensitive(expression));
                }
                return(expression);
            }
Esempio n. 2
0
 public RegexExpression Alternation(RegexAlternation node, KeyValuePair <SymbolId, int?> context)
 {
     return(RegexAlternation.Create(node.Left.Visit(this, context), node.Right.Visit(this, context)));
 }
 public RxNode <TLetter> Alternation(RegexAlternation node, Context context)
 {
     return(new RxAlternation <TLetter>(node.Left.Visit(this, context), node.Right.Visit(this, context)));
 }