ladybird/Utilities
Timothy Flynn 00182a2405 LibJS: Port the JS lexer and parser to UTF-16
This ports the lexer to UTF-16 and deals with the immediate fallout up
to the AST. The AST will be dealt with in upcoming commits.

The lexer will still accept UTF-8 strings as input, and will transcode
them to UTF-16 for lexing. This doesn't actually incur a new allocation,
as we were already converting the input StringView to a ByteString for
each lexer.

One immediate logical benefit here is that we do not need to know off-
hand how many UTF-8 bytes some special code points occupy. They all
happen to be a single UTF-16 code unit. So instead of advancing the
lexer by 3 positions in some cases, we can just always advance by 1.
2025-08-13 09:56:13 -04:00
..
abench.cpp Everywhere: Rename serenity_main to ladybird_main 2025-07-08 09:17:16 -04:00
CMakeLists.txt LibGfx: Remove WebP animation writer and utility 2025-08-05 11:30:20 +02:00
dns.cpp Everywhere: Rename serenity_main to ladybird_main 2025-07-08 09:17:16 -04:00
image.cpp Everywhere: Rename serenity_main to ladybird_main 2025-07-08 09:17:16 -04:00
js.cpp LibJS: Port the JS lexer and parser to UTF-16 2025-08-13 09:56:13 -04:00
test262-runner.cpp LibJS+LibWeb+WebContent: Port JS::PropertyKey to UTF-16 2025-08-05 07:07:15 -04:00
wasm.cpp LibWasm: Try really hard to avoid touching the value stack 2025-08-08 12:54:06 +02:00
xml.cpp Everywhere: Rename serenity_main to ladybird_main 2025-07-08 09:17:16 -04:00