aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2024-09-08 20:02:06 +0300
committerkartofen <mladenovnasko0@gmail.com>2024-09-08 20:02:06 +0300
commitf60047d4b013eb7f75ad4f5c63eda63153a4bf8e (patch)
tree2a3e9fd5fc1eb07b7e06797f74f5e7a31c313159 /src/lexer.h
parent4308cd4abe5a75fb8410df929eac687cbd04032b (diff)
value is now opaque
Diffstat (limited to 'src/lexer.h')
-rw-r--r--src/lexer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lexer.h b/src/lexer.h
index 6a14050..632811e 100644
--- a/src/lexer.h
+++ b/src/lexer.h
@@ -60,6 +60,8 @@ struct lexer {
size_t acc_idx;
};
+#define lexer_get_line(lexer) ((lexer)->line)
+
lexer_t lexer_create(FILE *fp);
void lexer_destroy(lexer_t lexer);
int lexer_clear_line(lexer_t lexer);