summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2025-04-11 01:15:01 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2025-04-14 23:11:22 +0200
commite7f69c8fbbbcbddde84933b2becd91e787d1ac63 (patch)
tree16cd17da17133494dd06aab614724e76b059d4ad /src/parser.h
Intial commit
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
new file mode 100644
index 0000000..ad76bc9
--- /dev/null
+++ b/src/parser.h
@@ -0,0 +1,18 @@
+#ifndef PARSER_H
+#define PARSER_H
+
+#include "lexer.h"
+#include "vm.h"
+
+typedef struct parser
+{
+ lexer_t lexer;
+} parser_t;
+
+void
+parser_init(parser_t *parser, char *file_name);
+
+inst_t *
+parser_parse(parser_t *parser);
+
+#endif /* PARSER_H */