Expressions

- Made the `Expression` class abstract
- Removed irrelevant TODOs and method
- Removed uneeded constructor

VariableExpression

- Removed unused junk
feature/class_static_init
Tristan B. V. Kildaire 10 months ago
parent 2411969955
commit f1aaaf1088

@ -813,18 +813,7 @@ public class VariableExpression : IdentExpression
{
super(identifier);
}
import tlang.compiler.typecheck.core;
public override string evaluateType(TypeChecker typeChecker, Container c)
{
string type;
return null;
}
public override string toString()
{
return "[varExp: "~getName()~"]";

@ -218,23 +218,9 @@ public abstract class NumberLiteral : Expression
}
}
public class Expression : Statement
public abstract class Expression : Statement
{
import tlang.compiler.typecheck.core;
/* TODO: Takes in symbol table? */
public string evaluateType(TypeChecker typechecker, Container c)
{
/* TODO: Go through here evaluating the type */
return null;
}
this()
{
}
/* TODO: Evalute this expression's type */
}
public final class NewExpression : Expression

Loading…
Cancel
Save