diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-03-01 23:30:31 +0100 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-03-01 23:30:31 +0100 |
commit | f44f1f8c7ef7b6266667dce76db686af3258adfc (patch) | |
tree | e0775e2a07713f1ac23d37b5271340fe8cbebd16 /parser.h | |
download | jadl-f44f1f8c7ef7b6266667dce76db686af3258adfc.tar.gz jadl-f44f1f8c7ef7b6266667dce76db686af3258adfc.zip |
Build simple abstract syntax tree
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/parser.h b/parser.h new file mode 100644 index 0000000..2a4c523 --- /dev/null +++ b/parser.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #ifndef _PARSER | ||
2 | #define _PARSER | ||
3 | |||
4 | #include "types.h" | ||
5 | #include "lexer.h" | ||
6 | |||
7 | LISP_OBJECT *parser_parse_str(char *str); | ||
8 | LISP_OBJECT *parser_parse_tokens(Token **token); | ||
9 | |||
10 | LISP_OBJECT *parser_make_list(Token **token); | ||
11 | LISP_OBJECT *parser_make_number(Token **token); | ||
12 | LISP_OBJECT *parser_make_string(Token **token); | ||
13 | LISP_OBJECT *parser_make_symbol(Token **token); | ||
14 | LISP_OBJECT *parser_make_true(Token **token); | ||
15 | LISP_OBJECT *parser_make_false(Token **token); | ||
16 | LISP_OBJECT *parser_make_nil(Token **token); | ||
17 | |||
18 | #endif | ||