daily update on 20250208 by nitload youmu. lexical analyzer complete but little problem

This commit is contained in:
Nitload
2025-02-08 23:12:10 +08:00
parent 7d0470d50b
commit ae94c265ae
73 changed files with 2237 additions and 1028 deletions
@@ -30,6 +30,7 @@
//-----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace StgSharp.Script.Express
@@ -43,6 +44,24 @@ namespace StgSharp.Script.Express
}
public class ExpInvalidCharException : Exception
{
public ExpInvalidCharException(char c) :
base($"An unknown char {c} occurred.")
{
}
}
public class ExpInvalidTokenException : Exception
{
public ExpInvalidTokenException(int index) :
base($"Cannot read a token from line at {index}")
{
}
}
public class ExpInvalidTypeDeclareEndingExceptions : Exception
{
public ExpInvalidTypeDeclareEndingExceptions(