tofpie
|
f62a77d3fa
|
Implement template literals and tagged templates (#997)
* Implement template literals and tagged templates
* Merge master into for-in
* Implement suggestions from review
* Implement suggestions from review
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
|
3 years ago |
Paul Lancaster
|
586a68970b
|
Async/Await parse (#836)
* Add async keyword
* Created AsyncFunctionDecl/Expr nodes
* AsyncFunctionDecl/Expr parser created (not impl)
* Add async to HoistableDeclaration
* Added expect_no_lineterminator, updated some cursor docs
* AsyncFunctionDecl parsing
* AsyncFunctionExpr parsing
* Await expression parsing
* Added some async function expr parsing tests
* Reposition declaration parsing ready to add tests
* Moved function decl tests
* Added some failing async func decl tests
* mdn/spec links@
* Function expression parsing into own folder
* Added function expression test
* Fixed async function decl parse
* Async/await run returns undefined rather than panic
* Clippy :( -> :)
* Missing docs
* Update boa/src/syntax/ast/node/declaration/async_function_decl/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Update boa/src/syntax/ast/node/declaration/async_function_expr/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Update boa/src/syntax/parser/statement/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Update boa/src/syntax/parser/statement/declaration/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Update boa/src/syntax/ast/node/await_expr/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Revert "Update boa/src/syntax/parser/statement/declaration/mod.rs"
This reverts commit 46b2917530 .
* Revert "Update boa/src/syntax/parser/statement/mod.rs"
This reverts commit 4c0c1238ec .
* Update boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs
Co-authored-by: Iban Eguia <razican@protonmail.ch>
* Update boa/src/syntax/parser/statement/declaration/hoistable/async_function_decl/mod.rs
Co-authored-by: Iban Eguia <razican@protonmail.ch>
* Addressed review comments
* Correct allow_yield parameters for async func
* Correct other usages of allow_yield
Co-authored-by: Halid Odat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
|
4 years ago |
Paul Lancaster
|
6bcfc7a237
|
Strict Mode Lex/Parse (#717)
* Add strict mode to lex trait
* Lexer reserved keyword identifier strict mode lexing
* Prevent with statement in strict mode
* Add strict_mode flag to parse methods
* Enable function scope strict mode
* Script scope strict mode
* Delete statement strict mode
* Function decl in block in strict mode
* Fix merge
* Strict mode code tests
* Move strict_mode flag onto Lexer
* Move strict_mode lex flag to Lexer Cursor
* Isolated failing test parts
* Fixed bug in func decl in block in strict mode
* BindingIdentifier strict mode
* use to_string
* Remove dbg
* Add missing spec ref
* Missing spec ref for dup func params
* Remove clone
* .to_string -> .as_ref
|
4 years ago |
Paul Lancaster
|
cb93472b4a
|
New lexer (#559)
Co-authored-by: HalidOdat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
Co-authored-by: Paul Lancaster <paul@lancasterzone.com>
Co-authored-by: neeldug <5161147+neeldug@users.noreply.github.com>
|
4 years ago |