Christian Clason
422cbe1d93
fix(scanner): don't use system includes
2024-06-17 10:17:55 +02:00
Michael Hoffmann
e2d416afeb
fix(scanner): serialize buffer size check
...
During the check that we dont overflow the serialization buffer we
erroneously checked with size(uint32_t) == 1 which could cause us to
crash with some input strings.
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de >
2024-06-17 00:54:01 -04:00
Michael Hoffmann
e135399cb3
fix: github windows cl.exe action
...
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de >
2023-11-18 13:41:00 +01:00
Michael Hoffmann
c3690b9f0c
fix(scanner): fix context type
...
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de >
2023-11-16 17:03:34 +01:00
Michael Hoffmann
fdf6463216
fix(scanner): fix segfault
...
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de >
2023-11-13 16:18:52 +01:00
Amaan Qureshi
573e5bd076
fix: don't truncate lengths
2023-11-11 09:27:46 +01:00
Amaan Qureshi
5160a52f2d
feat: rewrite the scanner in C
2023-07-27 07:37:21 +02:00
mhoffm
b9a95e5b48
wip move to cpp external scanner
2021-06-22 23:40:31 +02:00
mhoffm
5a58000ba1
WIP add heredoc templates; only EOF marker at the moment
2021-06-21 22:04:28 +02:00
mhoffm
a7f23cc579
more real world exampls; fix scanner when scanning empty character in lexer
2021-06-21 19:40:27 +02:00
mhoffm
3bc4153bc2
add sanity assertions
2021-06-20 23:11:21 +02:00
mhoffm
22d0a7253c
simplify whitespace handling; support hexadecimal numeric literals; allow empty configs
2021-06-20 00:03:58 +02:00
mhoffm
d61fefced0
fix binary operators
2021-06-19 18:10:47 +02:00
mhoffm
5f7a5b5e98
add real world test corpus; work on some parse errors and weirdnesses
2021-06-19 16:56:35 +02:00
mhoffm
60aa5b25b6
fix scanner state handling
2021-06-18 00:01:58 +02:00
mhoffm
e7d26aa32a
cleanup
2021-06-17 23:57:13 +02:00
mhoffm
29b4c866b4
simplify scanner.c
2021-06-17 23:55:09 +02:00
mhoffm
88401e3bf3
fmt tests; properly define string literals; work on scanner
2021-06-17 23:47:14 +02:00
mhoffm
a4621181ca
cleanup
2021-06-14 23:41:18 +02:00
mhoffm
ca491c9a02
cleanup
2021-06-14 23:39:45 +02:00
mhoffm
7b91d51683
handle quoted template expressions and template interpolations
2021-06-14 23:11:17 +02:00