daily update on 20240203 by nitload youmu, ExpComment[D[D[D[D[D[D[D [C[C[C[C[C[C[D[D[D[D[D[DComment Splitter ok, case code(* comment[D[D[D[D[D[D[D[D[D[D[C[C[[C[Dcomment*)code--comment and comment*)code--comment not added, may use span optimize all programme
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user