Added an error for constant expressions.
This commit is contained in:
parent
5f3c86669b
commit
6be1779781
1 changed files with 5 additions and 0 deletions
|
@ -119,7 +119,12 @@ namespace arookas {
|
||||||
|
|
||||||
public sunAssignConstantException(sunIdentifier node)
|
public sunAssignConstantException(sunIdentifier node)
|
||||||
: base(node) { }
|
: base(node) { }
|
||||||
|
}
|
||||||
|
class sunConstantExpressionException : sunNodeException<sunNode> {
|
||||||
|
public override string Message { get { return "Expression must be constant."; } }
|
||||||
|
|
||||||
|
public sunConstantExpressionException(sunNode node)
|
||||||
|
: base(node) { }
|
||||||
}
|
}
|
||||||
class sunRedeclaredParameterException : sunNodeException<sunIdentifier> {
|
class sunRedeclaredParameterException : sunNodeException<sunIdentifier> {
|
||||||
public override string Message { get { return String.Format("Redeclared parameter '{0}'.", Node.Value); } }
|
public override string Message { get { return String.Format("Redeclared parameter '{0}'.", Node.Value); } }
|
||||||
|
|
Loading…
Reference in a new issue