libabacus/src/libabacus.c

14 lines
337 B
C
Raw Normal View History

#include "libabacus.h"
libab_result libab_init(libab* ab) {
libab_table_init(&ab->table);
2018-02-11 22:23:02 -08:00
libab_parser_init(&ab->parser, &ab->table);
return libab_lexer_init(&ab->lexer);
}
libab_result libab_free(libab* ab) {
libab_table_free(&ab->table);
2018-02-11 22:23:02 -08:00
libab_parser_free(&ab->parser);
return libab_lexer_free(&ab->lexer);
}