diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-10-09 16:01:31 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-10-14 12:09:28 +0200 |
commit | 6ad05263426e6f4aae4665d52b9ed1962ab4cd24 (patch) | |
tree | 7b73f563e291eeab944071e0c9a3b9128e924c6b /tests/02_runtime/04_switch_case | |
parent | 4d1c4e28b8d8368a105717e142f8e920cbf4ea0f (diff) |
lexer: rewrite
Rewrite the lexer into a restartable state machine to support parsing from
file streams without the need to read the entire source text into memory
first.
As a side effect, the length of labels and strings is unlimited now.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/02_runtime/04_switch_case')
-rw-r--r-- | tests/02_runtime/04_switch_case | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/02_runtime/04_switch_case b/tests/02_runtime/04_switch_case index bc8b80e..4a9d3e9 100644 --- a/tests/02_runtime/04_switch_case +++ b/tests/02_runtime/04_switch_case @@ -89,10 +89,10 @@ default -- Expect stderr -- Syntax error: more than one switch default case -In line 6, byte 9: +In line 6, byte 2: ` default:` - Near here -----^ + ^-- Near here -- End -- @@ -242,10 +242,10 @@ one -- Expect stderr -- Died -In line 6, byte 7: +In line 6, byte 6: ` die();` - Near here ------^ + Near here -----^ -- End -- |