summaryrefslogtreecommitdiff
path: root/src/sys/include/os
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-01 17:08:06 -0400
committerIan Moffett <ian@osmora.org>2025-10-01 17:08:44 -0400
commite0f16855cb1e5f0465db13405b6524682847688c (patch)
tree20bcc76aea8665b3862eb59338ac0b956274d395 /src/sys/include/os
parent8c8d31ed2c4127ba2965bd6a40ff0293418bc1e2 (diff)
np: parse: Add AST structure and initial logic
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/os')
-rw-r--r--src/sys/include/os/np.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/include/os/np.h b/src/sys/include/os/np.h
index 3bb2bb8..c3921cb 100644
--- a/src/sys/include/os/np.h
+++ b/src/sys/include/os/np.h
@@ -47,6 +47,7 @@
* @source_size: Source size in bytes
* @line_no: Current line number
* @lex_st: Lexer state
+ * @ast_root: Parse tree
* @ccache: Character cache (temporary store for lexer)
*/
struct np_work {
@@ -55,6 +56,7 @@ struct np_work {
size_t line_no;
struct lexer_state lex_st;
struct ptrbox *work_mem;
+ struct ast_node *ast_root;
char ccache;
};