diff --git a/ssc/exceptions.cs b/ssc/exceptions.cs index 6764c76..d50652e 100644 --- a/ssc/exceptions.cs +++ b/ssc/exceptions.cs @@ -119,7 +119,12 @@ namespace arookas { public sunAssignConstantException(sunIdentifier node) : base(node) { } + } + class sunConstantExpressionException : sunNodeException { + public override string Message { get { return "Expression must be constant."; } } + public sunConstantExpressionException(sunNode node) + : base(node) { } } class sunRedeclaredParameterException : sunNodeException { public override string Message { get { return String.Format("Redeclared parameter '{0}'.", Node.Value); } }