lang: ast: add stub parser functions

This commit is contained in:
2024-11-23 10:15:40 +00:00
parent 8219797cbb
commit 5c5a2d236c
3 changed files with 149 additions and 6 deletions

19
lang/ast.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef _AST_H_
#define _AST_H_
#include <blue/core/queue.h>
#include <ivy/status.h>
struct ivy_parser_state {
b_queue_entry s_entry;
struct ivy_ast_node *s_parent;
};
struct ivy_parser {
enum ivy_status p_status;
b_queue p_state;
b_queue p_token_queue;
b_queue p_node_queue;
};
#endif