mainly theoratical work on semi, add regex sample
This commit is contained in:
@@ -71,15 +71,15 @@ namespace StgSharp.RegularAnalysis.Text
|
||||
.AppendLine(@"do")
|
||||
.AppendLine(@"{")
|
||||
.AppendLine(@$"int {cur_ptr}, {begin_ptr} = {current_ptr};")
|
||||
.AppendLine();
|
||||
.AppendLine($@"{ROS_char} rest = ");
|
||||
|
||||
string finder = find.IsFirst ? "FirstIndexOf" : "LastIndexOf";
|
||||
|
||||
if (scan_win[1] is RegexMatchSeqIR seq)
|
||||
{
|
||||
string seq_pat = FormatStringLiteral(seq.Pattern);
|
||||
string seq_pat = FormatStringLiteral(find.Pattern + seq.Pattern);
|
||||
_ = main_emitter.AppendLine(@$"//Match sequence:{seq_pat} at current pos")
|
||||
.AppendLine(string.Empty());
|
||||
.AppendLine($@"if( )");
|
||||
}
|
||||
|
||||
_ = main_emitter.AppendLine("}").AppendLine(string.Empty);
|
||||
|
||||
Reference in New Issue
Block a user