23 lines
No EOL
471 B
C#
23 lines
No EOL
471 B
C#
namespace KumiScript.Interpreter
|
|
{
|
|
public class TrueExpression : Expression
|
|
{
|
|
private static TrueExpression? _instance;
|
|
private TrueExpression()
|
|
{
|
|
}
|
|
|
|
public static TrueExpression GetInstance()
|
|
{
|
|
if (_instance is null)
|
|
_instance = new TrueExpression();
|
|
|
|
return _instance;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "t";
|
|
}
|
|
}
|
|
} |