ladybird/Userland/Libraries/LibCpp
Itamar 832e9c6e02 LibCpp: Add regression tests for the parser
For each .cpp file in the test suite data, there is a .ast file that
represents the "known good" baseline of the parser result.

Each .cpp file goes through the parser, and the result of
invoking `ASTNode::dump()` on the root node is compared to the
baseline to find regressions.

We also check that there were no parser errors when parsing the .cpp
files.
2021-05-19 23:19:07 +02:00
..
Tests LibCpp: Add regression tests for the parser 2021-05-19 23:19:07 +02:00
AST.cpp LibCpp: Generalize ASTNode::dump() to support redirecting its output 2021-05-19 23:19:07 +02:00
AST.h LibCpp: Fix "NumricLiteral" => "NumericLiteral" typo 2021-05-19 23:19:07 +02:00
CMakeLists.txt LibCpp: Move Cpp::Token to a separate file 2021-03-13 10:17:02 +01:00
Lexer.cpp LibCpp: Support Lexing escaped newlines 2021-05-09 20:58:27 +02:00
Lexer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Parser.cpp LibCpp: Fix match_expression() 2021-05-19 23:19:07 +02:00
Parser.h LibCpp: Rename m_definitions=>m_preprocessor_definitions 2021-05-09 20:58:27 +02:00
Preprocessor.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Preprocessor.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SyntaxHighlighter.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SyntaxHighlighter.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Token.cpp LibCpp: Modify logic of Parser::index_of_node_at 2021-05-15 23:28:50 +02:00
Token.h LibCpp: Modify logic of Parser::index_of_node_at 2021-05-15 23:28:50 +02:00