X-Git-Url: https://code.kerkeslager.com/?p=fur;a=blobdiff_plain;f=c_generation.py;fp=c_generation.py;h=78a80b1d311403d6c4775d63080c3fbb3241c369;hp=821048f7127c6d30e51d74170f949e957ae4f61c;hb=7abf5e459b2ef02c8e59c05f0a83d8213ade0427;hpb=3dc627f8d6b5846081ef8ed15d5546e51d2ecb8d diff --git a/c_generation.py b/c_generation.py index 821048f..78a80b1 100644 --- a/c_generation.py +++ b/c_generation.py @@ -52,6 +52,7 @@ def generate_argument(instruction): return { 'add': generate_null_argument_from(2), 'call': generate_size_t_argument, + 'close': generate_label_argument, 'drop': generate_null_argument, 'end': generate_null_argument, 'eq': generate_null_argument_from(2), @@ -70,6 +71,7 @@ def generate_argument(instruction): 'push': generate_symbol_argument, 'push_integer': generate_integer_argument, 'push_string': generate_string_argument, + 'return': generate_null_argument, 'sub': generate_null_argument_from(2), }[instruction.instruction](instruction.argument)