ladybird/Libraries/LibJS
Linus Groh 33defef267 LibJS: Let parser keep track of errors
Rather than printing them to stderr directly the parser now keeps a
Vector<Error>, which allows the "owner" of the parser to consume them
individually after parsing.

The Error struct has a message, line number, column number and a
to_string() helper function to format this information into a meaningful
error message.

The Function() constructor will now include an error message when
throwing a SyntaxError.
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: Let parser keep track of errors 2020-05-15 09:53:52 +02:00
Tests LibJS: Let parser keep track of errors 2020-05-15 09:53:52 +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: Let parser keep track of errors 2020-05-15 09:53:52 +02:00
Parser.h LibJS: Let parser keep track of errors 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