Added constant-assignment exception.
This commit is contained in:
parent
eb636f2674
commit
664d1e227e
1 changed files with 10 additions and 0 deletions
|
@ -159,6 +159,16 @@ namespace arookas
|
|||
|
||||
}
|
||||
}
|
||||
class sunAssignConstantException : sunNodeException<sunIdentifier>
|
||||
{
|
||||
public override string Message { get { return String.Format("Constant '{0}' is read-only.", Node.Value); } }
|
||||
|
||||
public sunAssignConstantException(sunIdentifier node)
|
||||
: base(node)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
class sunRedeclaredParameterException : sunNodeException<sunIdentifier>
|
||||
{
|
||||
public override string Message { get { return String.Format("Redeclared parameter '{0}'.", Node.Value); } }
|
||||
|
|
Loading…
Reference in a new issue