Remove function tokens. If functions are first class, they're variables.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user