Add parser state code and skeleton for the parsing procedure.

This commit is contained in:
2018-02-10 22:17:08 -08:00
parent 03f27bda18
commit 6d836a5513
3 changed files with 46 additions and 1 deletions

16
include/parser.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef LIBABACUS_PARSER_H
#define LIBABACUS_PARSER_H
#include "table.h"
#include "ll.h"
#include "tree.h"
/**
* Parses the given list of tokens into the given tree pointer.
* @param tokens the tokens to use for parsing.
* @param string the string to use for determining token values.
* @param store_into tree pointer to store the new data into.
*/
libab_result parse_tokens(ll* tokens, const char* string, tree** store_into);
#endif