1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00
serenity/Libraries/LibJS
Linus Groh 4d20cf57db LibJS: Implement tagged template literals (foobar)
To make processing tagged template literals easier, template literals
will now add one empty StringLiteral before and after each template
expression *if* there's no other string - e.g.:

`${foo}` -> "", foo, ""
`test${foo}${bar}test` -> "test", foo, "", bar, "test"

This also matches the behaviour of many other parsers.
2020-05-06 14:49:53 +02:00
..
Heap LibJS: run clang-format on all the files 2020-05-05 09:15:16 +02:00
Runtime LibJS: Add Value::{is, as}_function() 2020-05-06 14:49:53 +02:00
Tests LibJS: Implement tagged template literals (foobar) 2020-05-06 14:49:53 +02:00
AST.cpp LibJS: Implement tagged template literals (foobar) 2020-05-06 14:49:53 +02:00
AST.h LibJS: Implement tagged template literals (foobar) 2020-05-06 14:49:53 +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: Implement exponentiation assignment operator (**=) 2020-05-05 11:12:27 +02:00
Lexer.h LibJS: Add template literals 2020-05-04 16:46:31 +02:00
Makefile LibJS: Start implementing a Console class for the interpreter 2020-05-02 11:41:35 +02:00
Parser.cpp LibJS: Implement tagged template literals (foobar) 2020-05-06 14:49:53 +02:00
Parser.h LibJS: Add template literals 2020-05-04 16:46:31 +02:00
Token.cpp LibJS: Add template literals 2020-05-04 16:46:31 +02:00
Token.h LibJS: Implement exponentiation assignment operator (**=) 2020-05-05 11:12:27 +02:00