Added AddSystemVariable.

This commit is contained in:
arookas 2016-01-09 20:09:12 -05:00
parent bd39fdf380
commit df827b5acd

View file

@ -233,6 +233,11 @@ namespace arookas {
SymbolTable.Add(symbol);
return symbol;
}
sunStorableSymbol AddSystemVariable(string name) {
var symbol = Scopes.DeclareVariable(name);
SymbolTable.Add(symbol);
return symbol;
}
void WriteHeader() {
mWriter.WriteString("SPCB");
mWriter.Write32(mTextOffset);