Add basic function call parsing.

This commit is contained in:
2018-02-24 20:08:17 -08:00
parent 052fc5b943
commit 7a84babf1e
3 changed files with 53 additions and 1 deletions

View File

@@ -69,6 +69,10 @@ 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);
}