add(KurumiToken token, KurumiStorage storage) { switch (token.type) { case TokenType.String: add(new KurumiString(token.data)); break; case TokenType.Number: add(new KurumiNumber(token.data)); break; case TokenType.Identifier: add(new KurumiCommand(KurumiCommandType.REF)); add(new KurumiNumber(storage.get_index_from_name(token.data))); break; case TokenType.Operator: add(new KurumiCommand(token.optype_to_command())); break; default: break; } }
set_value(string name, KurumiValue value) { register_global_value(storage.get_index_from_name(name), value); }