diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-01 17:08:06 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-01 17:08:44 -0400 |
commit | e0f16855cb1e5f0465db13405b6524682847688c (patch) | |
tree | 20bcc76aea8665b3862eb59338ac0b956274d395 /src/sys/include/os | |
parent | 8c8d31ed2c4127ba2965bd6a40ff0293418bc1e2 (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.h | 2 |
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; }; |