daily update on 20250214 by nitload youmu, building syntax analysor[D[D[D[D[D[C[C[C[C[C, tough!
This commit is contained in:
@@ -56,7 +56,8 @@ namespace StgSharp
|
||||
|
||||
internal static unsafe void Main( string[] args )
|
||||
{
|
||||
try {
|
||||
try
|
||||
{
|
||||
|
||||
StgSharp.Init();
|
||||
|
||||
@@ -69,7 +70,7 @@ namespace StgSharp
|
||||
ScriptSourceTransmitter st = new ScriptSourceTransmitter("end", 0);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
string str = $"rawCode {i}";
|
||||
string str = $"rawCode () (\"\") {i}";
|
||||
Console.WriteLine(str);
|
||||
st.WriteLine(str);
|
||||
}
|
||||
@@ -79,9 +80,9 @@ namespace StgSharp
|
||||
Console.WriteLine(str);
|
||||
st.WriteLine(str);
|
||||
}
|
||||
st.WriteLine("CodeBef (* comment" );
|
||||
st.WriteLine("CodeBef (* comment");
|
||||
st.WriteLine($"comment *) codeAft");
|
||||
Console.WriteLine("CodeBef (* comment_" );
|
||||
Console.WriteLine("CodeBef (* comment_");
|
||||
Console.WriteLine($"_comment *) codeAft");
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
@@ -90,23 +91,17 @@ namespace StgSharp
|
||||
st.WriteLine(str);
|
||||
}
|
||||
st.WriteLine("end");
|
||||
List<string> cache = new List<string>();
|
||||
ExpSourceReader sr = new ExpSourceReader(st);
|
||||
|
||||
while (!sr.IsEmpty) {
|
||||
string str = sr.ReadToken().ToString();
|
||||
cache.Add(str);
|
||||
Console.Write($"{cache.Count}\t{cache.Last()}\t\t\t");
|
||||
if (cache.Count % 5 == 0)
|
||||
{
|
||||
Console.Write(Environment.NewLine);
|
||||
}
|
||||
}
|
||||
var slice = st.Slice(5,2);
|
||||
while (!slice.IsEmpty)
|
||||
int count = 0;
|
||||
while (!sr.IsEmpty)
|
||||
{
|
||||
Console.WriteLine(st.ReadLine());
|
||||
count++;
|
||||
var str = sr.ReadToken();
|
||||
Console.WriteLine($"{count}\t{str.Mask}\t\t{str.Value.ToString()}");
|
||||
|
||||
}
|
||||
var slice = st.Slice(5, 2);
|
||||
|
||||
/*
|
||||
|
||||
StgSharp.InitGL( 4, 6 );
|
||||
@@ -132,8 +127,11 @@ namespace StgSharp
|
||||
|
||||
StgSharp.Terminate();
|
||||
/**/
|
||||
|
||||
return;
|
||||
}
|
||||
catch ( Exception ex ) {
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw;
|
||||
/*
|
||||
StgSharp.WriteLog($"{ex}", LogType.Error);
|
||||
@@ -143,6 +141,9 @@ namespace StgSharp
|
||||
Environment.Exit(-1);
|
||||
/**/
|
||||
}
|
||||
finally
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user