diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-07-17 23:21:03 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-07-30 13:46:23 +0200 |
commit | 10e056d3744384a029f05de5903c489898722fc3 (patch) | |
tree | e6621194f1053fdc314dfee02358972028a6a5ff /tests/custom/04_bugs/08_compiler_arrow_fn_expressions | |
parent | 862e49de33bd07daea129d553968579019c79b59 (diff) |
compiler: add support for import/export statements
This commit introduces syntax level support for ES6 style module import
and export statements. Imports are resolved at compile time and the
corresponding module code is compiled into the main program.
Also add testcases to cover import and export statement semantics.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/custom/04_bugs/08_compiler_arrow_fn_expressions')
-rw-r--r-- | tests/custom/04_bugs/08_compiler_arrow_fn_expressions | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/custom/04_bugs/08_compiler_arrow_fn_expressions b/tests/custom/04_bugs/08_compiler_arrow_fn_expressions deleted file mode 100644 index 5cd8960..0000000 --- a/tests/custom/04_bugs/08_compiler_arrow_fn_expressions +++ /dev/null @@ -1,15 +0,0 @@ -Arrow functions with single expression bodies were parsed with a wrong -precedence level, causing comma expressions to be greedily consumed. - --- Testcase -- -{% - print({ - a: () => 1, - b: () => 2 - }, "\n"); -%} --- End -- - --- Expect stdout -- -{ "a": "() => { ... }", "b": "() => { ... }" } --- End -- |