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
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ae94c265ae77870ea6498b624b6f71b78fb94e51")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c23b640cae59b9ee7dcfd8f026b8970a084ddbd7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"documents":{"D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\*":"https://raw.githubusercontent.com/Nitload-NSI/CCD_Github/ae94c265ae77870ea6498b624b6f71b78fb94e51/*"}}
|
||||
{"documents":{"D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\*":"https://raw.githubusercontent.com/Nitload-NSI/CCD_Github/c23b640cae59b9ee7dcfd8f026b8970a084ddbd7/*"}}
|
||||
Reference in New Issue
Block a user