202608261940
This commit is contained in:
1 parent
af249dc285
commit
32cc058c6f
2 files changed
+1
-7
No files matched your search
@@ -92,7 +92,6 @@ public:
|
||||
{"rot8_biz", rot8_t::BIZ}, {"rot8_rnz", rot8_t::RNZ},
|
||||
{"rot8_out", rot8_t::OUT}, {"rot8_inp", rot8_t::INP},
|
||||
};
|
||||
general_data read_parameter(std::string index_str);
|
||||
};
|
||||
enum class directive_t {
|
||||
MACRO,
|
||||
|
||||
+1
-6
@@ -10,7 +10,7 @@ r8asm::general_data r8asm::ast::expand_node_to_data(const ast_node &node) {
|
||||
to_return = std::stoi(node.value);
|
||||
break;
|
||||
case ast_node_t::PARAMETER:
|
||||
to_return = read_parameter(node.value);
|
||||
to_return = scopes.back().at('%' + node.value);
|
||||
break;
|
||||
case ast_node_t::VARIABLE:
|
||||
for (auto i = scopes.rbegin(); i != scopes.rend(); i++) {
|
||||
@@ -72,11 +72,6 @@ r8asm::general_data r8asm::ast::expand_node_to_data(const ast_node &node) {
|
||||
return to_return;
|
||||
}
|
||||
|
||||
r8asm::general_data r8asm::ast::read_parameter(std::string index_str) {
|
||||
parameter_index i = std::stoi(index_str);
|
||||
return scopes.back().at('%' + index_str);
|
||||
}
|
||||
|
||||
// TODO: FILL THE BLANK
|
||||
#define ROT8_NODE(INS) \
|
||||
{ \
|
||||
|
||||
Reference in new issue
Block a user