mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
FunctionExpression is mostly like FunctionDeclaration, except the name is optional. Share the parsing logic in parse_function_node<NodeType>. This allows us to do nice things like: document.addEventListener("DOMContentLoaded", function() { alert("Hello friends!"); }); |
||
---|---|---|
.. | ||
Heap | ||
Runtime | ||
AST.cpp | ||
AST.h | ||
Forward.h | ||
Interpreter.cpp | ||
Interpreter.h | ||
Lexer.cpp | ||
Lexer.h | ||
Makefile | ||
Parser.cpp | ||
Parser.h | ||
Token.cpp | ||
Token.h |