ladybird/Libraries/LibJS
Linus Groh 00b61a212f LibJS: Remove syntax errors from lexer
Giving the lexer the ability to generate errors adds unnecessary
complexity - also it only calls its syntax_error() function in one place
anyway ("unterminated string literal"). But since the lexer *also* emits
tokens like Eof or UnterminatedStringLiteral, it should be up to the
consumer of these tokens to decide what to do.

Also remove the option to not print errors to stderr as that's not
relevant anymore.
2020-05-15 09:53:52 +02:00
..
Heap LibJS: Be a bit more explicit about sizeof(buf) / sizeof(FlatPtr) 2020-05-08 21:02:47 +02:00
Runtime LibJS: Trim whitespace from string before coercing to number 2020-05-13 09:36:20 +02:00
Tests Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
AST.cpp LibJS: Correct tiny issue with passing a String to String::format 2020-05-08 21:02:47 +02:00
AST.h LibJS: Check AssignmentExpression LHS in parser 2020-05-13 01:15:29 +02:00
CMakeLists.txt Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
Console.cpp LibJS: Implement ConsoleClient 2020-05-05 09:15:16 +02:00
Console.h LibJS: Implement ConsoleClient 2020-05-05 09:15:16 +02:00
Forward.h LibJS: Add Reference class to represent a base.property reference 2020-04-28 15:07:08 +02:00
Interpreter.cpp LibJS: Add some helpers and use them to re-implement Console functions 2020-05-05 09:15:16 +02:00
Interpreter.h LibJS: Add some helpers and use them to re-implement Console functions 2020-05-05 09:15:16 +02:00
Lexer.cpp LibJS: Remove syntax errors from lexer 2020-05-15 09:53:52 +02:00
Lexer.h LibJS: Remove syntax errors from lexer 2020-05-15 09:53:52 +02:00
Parser.cpp LibJS: Check AssignmentExpression LHS in parser 2020-05-13 01:15:29 +02:00
Parser.h LibJS: Remove syntax errors from lexer 2020-05-15 09:53:52 +02:00
Token.cpp LibJS: Add template literals 2020-05-04 16:46:31 +02:00
Token.h LibJS: Add missing keywords/tokens 2020-05-12 18:47:38 +02:00