diff options
author | Bad Diode <bd@badd10de.dev> | 2022-02-01 18:36:52 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-02-01 18:36:52 +0100 |
commit | ee1a5de91c875fb66724dc21c02333bfebe2a812 (patch) | |
tree | d3eaa226816d295bb9dc48a2aed27044832ec413 /src/string_view.h | |
parent | 3156265c7b2da8cc43fee996c0518ea274d39c8a (diff) | |
download | bdl-ee1a5de91c875fb66724dc21c02333bfebe2a812.tar.gz bdl-ee1a5de91c875fb66724dc21c02333bfebe2a812.zip |
Add new syntax to lexer and prepare refactor
Diffstat (limited to 'src/string_view.h')
-rw-r--r-- | src/string_view.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/string_view.h b/src/string_view.h index 4dbbaaf..cb0f488 100644 --- a/src/string_view.h +++ b/src/string_view.h | |||
@@ -11,6 +11,9 @@ typedef struct StringView { | |||
11 | // Consume a character in the stream. | 11 | // Consume a character in the stream. |
12 | char sv_next(StringView *sv); | 12 | char sv_next(StringView *sv); |
13 | 13 | ||
14 | // Rewind a character in the stream. | ||
15 | void sv_rewind(StringView *sv); | ||
16 | |||
14 | // Check what is the current character in the stream. | 17 | // Check what is the current character in the stream. |
15 | char sv_peek(const StringView *sv); | 18 | char sv_peek(const StringView *sv); |
16 | 19 | ||