summaryrefslogtreecommitdiff
path: root/userland/minibox/utilities/sh/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'userland/minibox/utilities/sh/lexer.h')
-rw-r--r--userland/minibox/utilities/sh/lexer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/userland/minibox/utilities/sh/lexer.h b/userland/minibox/utilities/sh/lexer.h
index 57fb30b..b8ca95c 100644
--- a/userland/minibox/utilities/sh/lexer.h
+++ b/userland/minibox/utilities/sh/lexer.h
@@ -1,6 +1,7 @@
#ifndef LEXER_H
#define LEXER_H
#include <stddef.h>
+#include <tb/sv.h>
typedef enum {
TOKEN_CHARS,
@@ -14,11 +15,11 @@ typedef enum {
struct TOKEN {
token_type_t type;
- char string_rep[256];
+ struct sv string_rep;
struct TOKEN *next;
};
-struct TOKEN *lex(const char *code);
+struct TOKEN *lex(struct sv code);
struct AST *generate_ast(struct TOKEN *token);
void free_tokens(struct TOKEN *token);
#endif // LEXER_H