daily update on 20240203 by nitload youmu, ExpComment Comment Splitter ok, case code(* comment[comment*)code--comment and comment*)code--comment not added, may use span optimize all programme

This commit is contained in:
Nitload
2025-02-03 23:27:54 +08:00
parent 4ee675669f
commit 4e5a1b0dfb
48 changed files with 1247 additions and 662 deletions
@@ -33,23 +33,26 @@ using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace StgSharp.Script
{
public class ScriptSourceTransmitter : IScriptSourceProvider
{
private bool _isWriting = true;
private ConcurrentQueue<string> cache = new ConcurrentQueue<string>();
private int _location;
private readonly string _completeMark;
public ScriptSourceTransmitter( string endMark )
public ScriptSourceTransmitter( string endMark, int location )
{
_completeMark = endMark;
_location = location;
}
public int Location => throw new NotImplementedException();
public int Location => _location;
public bool IsEmpty => cache.IsEmpty;
public string ReadLine()
{
@@ -69,5 +72,6 @@ namespace StgSharp.Script
cache.Enqueue( line );
}
}
}