add parser for concat
This commit is contained in:
@@ -44,7 +44,11 @@ namespace StgSharp.RegularAnalysis.TextRegex
|
||||
{
|
||||
RegexTokenReader reader = new RegexTokenReader(regex);
|
||||
TokenParser<RegexElementLabel, RegexElementLabel> lexer = reader.Pipe(() => new RegexTokenParser());
|
||||
|
||||
while (lexer.TryReadToken(out Token<RegexElementLabel> token)) { }
|
||||
}
|
||||
|
||||
private static void
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,13 @@ namespace StgSharp.RegularAnalysis.TextRegex
|
||||
|
||||
public RegexTokenReader() { }
|
||||
|
||||
public RegexTokenReader(
|
||||
string source
|
||||
)
|
||||
{
|
||||
_source = source;
|
||||
}
|
||||
|
||||
public bool IsEmpty => string.IsNullOrEmpty(_source) || position >= _source.Length;
|
||||
|
||||
public Token<RegexElementLabel> ReadToken()
|
||||
|
||||
Reference in New Issue
Block a user