Allow tree-based function implementations.

This commit is contained in:
2018-04-20 00:25:31 -07:00
parent 576f805bd7
commit 8214aa8344
3 changed files with 37 additions and 2 deletions

View File

@@ -38,6 +38,8 @@ libab_result _initialize_behavior(libab* ab, libab_behavior* behavior,
ll_init(&tokens);
behavior->impl.variant = BIMPL_INTERNAL;
behavior->impl.data_u.internal = func;
result = libab_lexer_lex(&ab->lexer, type, &tokens);
if(result == LIBAB_SUCCESS) {
result = libab_parser_parse_type(&ab->parser, &tokens, type, &behavior->type);