This commit is contained in:
Valk Richard Li 2020-08-07 02:51:00 -07:00 committed by GitHub
parent 431a879d2c
commit d56d083038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

View File

@ -155,6 +155,7 @@ int nasal_runtime::function_generation(nasal_ast& node)
int nasal_runtime::main_progress() int nasal_runtime::main_progress()
{ {
int ret_state=rt_exit_without_error; int ret_state=rt_exit_without_error;
return ret_state; return ret_state;
} }
int nasal_runtime::block_progress() int nasal_runtime::block_progress()
@ -299,6 +300,36 @@ int nasal_runtime::calculation(nasal_ast& node)
nasal_vm.del_reference(check_null); nasal_vm.del_reference(check_null);
} }
// unfinished // unfinished
else if(calculation_type==ast_equal)
{
int scalar_mem_space=call_scalar_mem(node.get_children()[0]);
int new_scalar_gc_addr=calculation(node.get_children()[1]);
}
else if(calculation_type==ast_add_equal)
{
int scalar_mem_space=call_scalar_mem(node.get_children()[0]);
int new_scalar_gc_addr=calculation(node.get_children()[1]);
}
else if(calculation_type==ast_sub_equal)
{
int scalar_mem_space=call_scalar_mem(node.get_children()[0]);
int new_scalar_gc_addr=calculation(node.get_children()[1]);
}
else if(calculation_type==ast_div_equal)
{
int scalar_mem_space=call_scalar_mem(node.get_children()[0]);
int new_scalar_gc_addr=calculation(node.get_children()[1]);
}
else if(calculation_type==ast_mult_equal)
{
int scalar_mem_space=call_scalar_mem(node.get_children()[0]);
int new_scalar_gc_addr=calculation(node.get_children()[1]);
}
else if(calculation_type==ast_link_equal)
{
int scalar_mem_space=call_scalar_mem(node.get_children()[0]);
int new_scalar_gc_addr=calculation(node.get_children()[1]);
}
return ret_address; return ret_address;
} }