Add a parser struct.

This commit is contained in:
2018-02-11 22:23:02 -08:00
parent 37a6f31b5f
commit f67b98d7a6
5 changed files with 48 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
#include "ht.h"
#include "lexer.h"
#include "table.h"
#include "parser.h"
#include "libabacus_result.h"
/**
@@ -52,6 +53,11 @@ struct libab_s {
* to tokens.
*/
libab_lexer lexer;
/**
* The parser used to convert
* tokens to a tree.
*/
libab_parser parser;
/**
* The table used to store top-level
* things like functions and operators.