2025-07-03 18:46:52 +08:00
|
|
|
|
namespace Convention.Symbolization.Internal
|
|
|
|
|
{
|
|
|
|
|
public class ScriptWordVariable : CloneableVariable<ScriptWordVariable>
|
|
|
|
|
{
|
|
|
|
|
public readonly string word;
|
|
|
|
|
|
|
|
|
|
public ScriptWordVariable(string word) : base("")
|
|
|
|
|
{
|
2025-07-03 21:50:26 +08:00
|
|
|
|
this.word = (string)word.Clone();
|
2025-07-03 18:46:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override ScriptWordVariable CloneVariable(string targetSymbolName)
|
|
|
|
|
{
|
|
|
|
|
return new ScriptWordVariable(word);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool Equals(ScriptWordVariable other)
|
|
|
|
|
{
|
|
|
|
|
return other is not null && word.Equals(other.word);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-03 21:50:26 +08:00
|
|
|
|
public override string ToString()
|
2025-07-03 18:46:52 +08:00
|
|
|
|
{
|
2025-07-03 21:50:26 +08:00
|
|
|
|
return word;
|
2025-07-03 18:46:52 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|