EP 0.1.1 语句分界线尚未完成
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Convention.Symbolization.Internal
|
||||
namespace Convention.Symbolization.Keyword
|
||||
{
|
||||
/// <summary>
|
||||
/// <b><see langword="import"/> namespace-expression</b>
|
||||
/// <b><see langword="import"/> file</b>
|
||||
/// </summary>
|
||||
public sealed class Import : Internal.Keyword<Import>
|
||||
{
|
||||
|
@@ -8,5 +8,14 @@ namespace Convention.Symbolization.Internal
|
||||
{
|
||||
public abstract class Modification : Variable
|
||||
{
|
||||
protected Modification(string modificationalName, Type type) : base(new(modificationalName, type))
|
||||
{
|
||||
}
|
||||
}
|
||||
public abstract class Modification<T> : Modification where T : Modification<T>
|
||||
{
|
||||
protected Modification(string modificationalName) : base(modificationalName, typeof(T))
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Convention.Symbolization.Internal
|
||||
{
|
||||
public class SymbolizationReader
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@@ -6,7 +6,7 @@
|
||||
|
||||
public ScriptWordVariable(string word) : base("")
|
||||
{
|
||||
this.word = word;
|
||||
this.word = (string)word.Clone();
|
||||
}
|
||||
|
||||
public override ScriptWordVariable CloneVariable(string targetSymbolName)
|
||||
@@ -19,20 +19,9 @@
|
||||
return other is not null && word.Equals(other.word);
|
||||
}
|
||||
|
||||
public Keyword GetKeyword()
|
||||
public override string ToString()
|
||||
{
|
||||
if(Keyword.Keywords.TryGetValue(word, out var keyword))
|
||||
return keyword;
|
||||
return null;
|
||||
}
|
||||
|
||||
public Variable GetVariable(SymbolizationContext context)
|
||||
{
|
||||
if (context.Variables.TryGetValue(word, out var variable))
|
||||
{
|
||||
return variable;
|
||||
}
|
||||
return null;
|
||||
return word;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user