From e0f16855cb1e5f0465db13405b6524682847688c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 1 Oct 2025 17:08:06 -0400 Subject: np: parse: Add AST structure and initial logic Signed-off-by: Ian Moffett --- src/sys/include/os/np.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sys/include/os/np.h') 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; }; -- cgit v1.2.3