2018-02-11 21:52:28 -08:00
|
|
|
#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);
|
2018-02-11 21:52:28 -08:00
|
|
|
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);
|
2018-02-11 21:52:28 -08:00
|
|
|
return libab_lexer_free(&ab->lexer);
|
|
|
|
}
|