aboutsummaryrefslogtreecommitdiffstats
path: root/src/string_view.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-02-01 18:36:52 +0100
committerBad Diode <bd@badd10de.dev>2022-02-01 18:36:52 +0100
commitee1a5de91c875fb66724dc21c02333bfebe2a812 (patch)
treed3eaa226816d295bb9dc48a2aed27044832ec413 /src/string_view.h
parent3156265c7b2da8cc43fee996c0518ea274d39c8a (diff)
downloadbdl-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.h3
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.
12char sv_next(StringView *sv); 12char sv_next(StringView *sv);
13 13
14// Rewind a character in the stream.
15void 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.
15char sv_peek(const StringView *sv); 18char sv_peek(const StringView *sv);
16 19