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/15_segfault_on_prefix_increment | |
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/15_segfault_on_prefix_increment')
-rw-r--r-- | tests/custom/04_bugs/15_segfault_on_prefix_increment | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/custom/04_bugs/15_segfault_on_prefix_increment b/tests/custom/04_bugs/15_segfault_on_prefix_increment deleted file mode 100644 index 280b680..0000000 --- a/tests/custom/04_bugs/15_segfault_on_prefix_increment +++ /dev/null @@ -1,18 +0,0 @@ -When parsing an invalid pre- or post-decrement expression as first -statement of a source buffer, the compiler crashed while attempting -to look up the type of the previous instruction within a not-yet -allocated chunk buffer. - --- Expect stderr -- -Syntax error: Unterminated string -In line 1, byte 6: - - `{% ++"` - ^-- Near here - - --- End -- - --- Testcase -- -{% ++" --- End -- |