1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 18:15:07 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser
Dan Klishch b74df136fe JSSpecCompiler: Always treat trailing MemberAccess as punctuation
Due to the way expression parser is written, we need to resolve the
ambiguity between member access operators and dots used for punctuation
during lexing. The lexer uses a (totally bulletproof) heuristic to do
that: whenever '.' is followed by ' ' or '\n', it is considered a dot
and member access otherwise. While it works fine for prettified test
cases, non-prettified files often lack enter after a trailing dot
character. Since MemberAccess will always be invalid at that position,
explicitly treat trailing dot as a part of punctuation.
2024-01-21 14:57:10 -07:00
..
CppASTConverter.cpp JSSpecCompiler: Store arguments in declaration instead of definition 2024-01-21 14:57:10 -07:00
CppASTConverter.h JSSpecCompiler: Provide an adequate command line interface 2023-10-26 15:45:31 -06:00
Lexer.cpp JSSpecCompiler: Always treat trailing MemberAccess as punctuation 2024-01-21 14:57:10 -07:00
Lexer.h JSSpecCompiler: Make -xspec capable of parsing the whole specification 2024-01-21 14:57:10 -07:00
ParseError.cpp JSSpecCompiler: Make -xspec capable of parsing the whole specification 2024-01-21 14:57:10 -07:00
ParseError.h JSSpecCompiler: Make -xspec capable of parsing the whole specification 2024-01-21 14:57:10 -07:00
SpecParser.cpp JSSpecCompiler: Make -xspec capable of parsing the whole specification 2024-01-21 14:57:10 -07:00
SpecParser.h JSSpecCompiler: Make -xspec capable of parsing the whole specification 2024-01-21 14:57:10 -07:00
TextParser.cpp JSSpecCompiler: Properly parse function calls with zero arguments 2024-01-21 14:57:10 -07:00
TextParser.h JSSpecCompiler: Make -xspec capable of parsing the whole specification 2024-01-21 14:57:10 -07:00
Token.h JSSpecCompiler: Add Token type 2023-08-31 11:00:31 +02:00
XMLUtils.cpp JSSpecCompiler: Add functions for splitting node contents into tokens 2023-08-31 11:00:31 +02:00
XMLUtils.h JSSpecCompiler: Add functions for splitting node contents into tokens 2023-08-31 11:00:31 +02:00