diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-20 02:21:53 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-20 02:36:40 -0400 |
commit | 2d9ab63695f6774a2805d4fe1a2b92710c478b5a (patch) | |
tree | 6fdef0b7dc8e0a4f55d17cc6c44e54142d3b4708 /usr.bin/oasm/include | |
parent | a28b2df73300a6f6a6e7f107443c096b52b2b9e2 (diff) |
usr: oasm: Store last token and line number
Keep track of the last token type (for parser) and keep track of the
current line number for debugging.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/oasm/include')
-rw-r--r-- | usr.bin/oasm/include/oasm/state.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/oasm/include/oasm/state.h b/usr.bin/oasm/include/oasm/state.h index c21d877..d4688c2 100644 --- a/usr.bin/oasm/include/oasm/state.h +++ b/usr.bin/oasm/include/oasm/state.h @@ -33,9 +33,12 @@ #include <sys/types.h> #include <fcntl.h> #include <unistd.h> +#include <oasm/lex.h> struct oasm_state { int in_fd; + off_t line; + tt_t last; }; #endif /* !_OASM_STATE_H_ */ |