Added DeclareConstant.
This commit is contained in:
parent
c8056ac960
commit
0794267ff0
2 changed files with 5 additions and 1 deletions
|
@ -195,7 +195,7 @@ namespace arookas
|
|||
{
|
||||
throw new sunRedeclaredVariableException(node);
|
||||
}
|
||||
return Scopes.Top.DeclareConstant(node.Value, expression);
|
||||
return Scopes.DeclareConstant(node.Value, expression);
|
||||
}
|
||||
public sunStorableSymbol ResolveStorable(sunIdentifier node)
|
||||
{
|
||||
|
|
|
@ -48,6 +48,10 @@ namespace arookas
|
|||
}
|
||||
return null;
|
||||
}
|
||||
public sunConstantSymbol DeclareConstant(string name, sunExpression expression)
|
||||
{
|
||||
return Top.DeclareConstant(name, expression);
|
||||
}
|
||||
sunVariableSymbol DeclareGlobal(string name)
|
||||
{
|
||||
var variableInfo = Top.DeclareVariable(name, 0, GlobalCount);
|
||||
|
|
Loading…
Reference in a new issue