sn_set_handler(sn, "/", math_handler);
sn_set_handler(sn, "print", print_handler);
sn_set_handler(sn, "eval", eval_handler);
- sn_set_handler(sn, "define-var", defvar_handler);
+ sn_set_handler(sn, "define-variable", defvar_handler);
sn_set_handler(sn, "source", source_handler);
}
r->string = sn_strdup(SERENADE_VERSION);
r->string_length = strlen(r->string);
return r;
- } else if(strcmp(op->name, "define-func") == 0) {
+ } else if(strcmp(op->name, "define-subroutine") == 0) {
char* name = malloc(gen->tree->args[1]->string_length + 1);
memcpy(name, gen->tree->args[1]->string, gen->tree->args[1]->string_length);
name[gen->tree->args[1]->string_length] = 0;