Remove function tokens. If functions are first class, they're variables.

This commit is contained in:
2018-02-25 14:06:15 -08:00
parent 7a84babf1e
commit 52ac67026f
3 changed files with 30 additions and 26 deletions

View File

@@ -69,10 +69,6 @@ libab_result libab_register_function(libab* ab, const char* name, libab_function
result = LIBAB_MALLOC;
}
if(result == LIBAB_SUCCESS) {
result = libab_convert_lex_result(eval_config_add(&ab->lexer.config, name, TOKEN_FUN));
}
if(result == LIBAB_SUCCESS) {
result = libab_table_put(&ab->table, name, new_entry);
}