diff --git a/main.py b/main.py index f3fba4b..e69a7a9 100644 --- a/main.py +++ b/main.py @@ -2690,12 +2690,6 @@ def _ct_list_append(vm: CompileTimeVM) -> None: vm.push(lst) -def _ct_drop(vm: CompileTimeVM) -> None: - if not vm.stack: - return - vm.pop() - - def _ct_list_pop(vm: CompileTimeVM) -> None: lst = _ensure_list(vm.pop()) if not lst: @@ -3038,8 +3032,6 @@ def _ct_parse_error(vm: CompileTimeVM) -> None: raise ParseError(message) - - def _ct_lexer_new(vm: CompileTimeVM) -> None: separators = vm.pop_str() vm.push(SplitLexer(vm.parser, separators)) diff --git a/tests/alloc.test b/tests/alloc.test index c345ca5..5860632 100644 --- a/tests/alloc.test +++ b/tests/alloc.test @@ -1 +1 @@ -python main.py tests/alloc.sl -o /tmp/alloc > /dev/null && /tmp/alloc \ No newline at end of file +python main.py tests/alloc.sl -o ./build/alloc > /dev/null && ./build/alloc \ No newline at end of file diff --git a/tests/arr_dynamic.test b/tests/arr_dynamic.test index 7082399..28a59f1 100644 --- a/tests/arr_dynamic.test +++ b/tests/arr_dynamic.test @@ -1 +1 @@ -python main.py tests/arr_dynamic.sl -o /tmp/arr_dynamic > /dev/null && /tmp/arr_dynamic \ No newline at end of file +python main.py tests/arr_dynamic.sl -o ./build/arr_dynamic > /dev/null && ./build/arr_dynamic \ No newline at end of file diff --git a/tests/bss_override.test b/tests/bss_override.test index e906d2a..69e98ba 100644 --- a/tests/bss_override.test +++ b/tests/bss_override.test @@ -1 +1 @@ -python main.py tests/bss_override.sl -o /tmp/bss_override > /dev/null && /tmp/bss_override \ No newline at end of file +python main.py tests/bss_override.sl -o ./build/bss_override > /dev/null && ./build/bss_override \ No newline at end of file diff --git a/tests/else_if_shorthand.test b/tests/else_if_shorthand.test index 9e78b4f..6211809 100644 --- a/tests/else_if_shorthand.test +++ b/tests/else_if_shorthand.test @@ -1 +1 @@ -python main.py tests/else_if_shorthand.sl -o /tmp/else_if_shorthand > /dev/null && /tmp/else_if_shorthand +python main.py tests/else_if_shorthand.sl -o ./build/else_if_shorthand > /dev/null && ./build/else_if_shorthand diff --git a/tests/eputs.test b/tests/eputs.test index 115324a..050baf1 100644 --- a/tests/eputs.test +++ b/tests/eputs.test @@ -1 +1 @@ -python main.py tests/eputs.sl -o /tmp/eputs > /dev/null && /tmp/eputs 2>&1 +python main.py tests/eputs.sl -o ./build/eputs > /dev/null && ./build/eputs 2>&1 diff --git a/tests/fib.test b/tests/fib.test index 3be9ca5..0257dc3 100644 --- a/tests/fib.test +++ b/tests/fib.test @@ -1 +1 @@ -python main.py tests/fib.sl -o /tmp/fib > /dev/null && /tmp/fib \ No newline at end of file +python main.py tests/fib.sl -o ./build/fib > /dev/null && ./build/fib \ No newline at end of file diff --git a/tests/goto.test b/tests/goto.test index cc74592..ec1d95c 100644 --- a/tests/goto.test +++ b/tests/goto.test @@ -1 +1 @@ -python main.py tests/goto.sl -o /tmp/goto > /dev/null && /tmp/goto \ No newline at end of file +python main.py tests/goto.sl -o ./build/goto > /dev/null && ./build/goto \ No newline at end of file diff --git a/tests/hello.test b/tests/hello.test index c01c8ee..570a0af 100644 --- a/tests/hello.test +++ b/tests/hello.test @@ -1 +1 @@ -python main.py tests/hello.sl -o /tmp/hello > /dev/null && /tmp/hello \ No newline at end of file +python main.py tests/hello.sl -o ./build/hello > /dev/null && ./build/hello \ No newline at end of file diff --git a/tests/here.test b/tests/here.test index 2195a76..e577cfc 100644 --- a/tests/here.test +++ b/tests/here.test @@ -1 +1 @@ -python main.py tests/here.sl -o /tmp/here > /dev/null && /tmp/here +python main.py tests/here.sl -o ./build/here > /dev/null && ./build/here diff --git a/tests/inline.test b/tests/inline.test index ba21251..da16437 100644 --- a/tests/inline.test +++ b/tests/inline.test @@ -1 +1 @@ -python main.py tests/inline.sl -o /tmp/inline > /dev/null && /tmp/inline \ No newline at end of file +python main.py tests/inline.sl -o ./build/inline > /dev/null && ./build/inline \ No newline at end of file diff --git a/tests/integration_core.test b/tests/integration_core.test index acda8b4..4976ec3 100644 --- a/tests/integration_core.test +++ b/tests/integration_core.test @@ -1 +1 @@ -python main.py tests/integration_core.sl -o /tmp/integration_core > /dev/null && /tmp/integration_core +python main.py tests/integration_core.sl -o ./build/integration_core > /dev/null && ./build/integration_core diff --git a/tests/io_read_file.test b/tests/io_read_file.test index 958face..230ea80 100644 --- a/tests/io_read_file.test +++ b/tests/io_read_file.test @@ -1 +1 @@ -python main.py tests/io_read_file.sl -o /tmp/io_read_file > /dev/null && /tmp/io_read_file +python main.py tests/io_read_file.sl -o ./build/io_read_file > /dev/null && ./build/io_read_file diff --git a/tests/io_read_stdin.test b/tests/io_read_stdin.test index 97244eb..9c1acc7 100644 --- a/tests/io_read_stdin.test +++ b/tests/io_read_stdin.test @@ -1 +1 @@ -python main.py tests/io_read_stdin.sl -o /tmp/io_read_stdin > /dev/null && printf 'stdin via test\n' | /tmp/io_read_stdin +python main.py tests/io_read_stdin.sl -o ./build/io_read_stdin > /dev/null && printf 'stdin via test\n' | ./build/io_read_stdin diff --git a/tests/io_write_buf.test b/tests/io_write_buf.test index f656e52..fc19435 100644 --- a/tests/io_write_buf.test +++ b/tests/io_write_buf.test @@ -1 +1 @@ -python main.py tests/io_write_buf.sl -o /tmp/io_write_buf > /dev/null && /tmp/io_write_buf +python main.py tests/io_write_buf.sl -o ./build/io_write_buf > /dev/null && ./build/io_write_buf diff --git a/tests/io_write_file.test b/tests/io_write_file.test index 9ed47bf..80fc71c 100644 --- a/tests/io_write_file.test +++ b/tests/io_write_file.test @@ -1 +1 @@ -python main.py tests/io_write_file.sl -o /tmp/io_write_file > /dev/null && /tmp/io_write_file +python main.py tests/io_write_file.sl -o ./build/io_write_file > /dev/null && ./build/io_write_file diff --git a/tests/list.test b/tests/list.test index 65b40f4..f01ba7b 100644 --- a/tests/list.test +++ b/tests/list.test @@ -1 +1 @@ -python main.py tests/list.sl -o /tmp/list > /dev/null && /tmp/list \ No newline at end of file +python main.py tests/list.sl -o ./build/list > /dev/null && ./build/list \ No newline at end of file diff --git a/tests/loop_while.test b/tests/loop_while.test index 885a048..ca61ef1 100644 --- a/tests/loop_while.test +++ b/tests/loop_while.test @@ -1 +1 @@ -python main.py tests/loop_while.sl -o /tmp/loop_while > /dev/null && /tmp/loop_while +python main.py tests/loop_while.sl -o ./build/loop_while > /dev/null && ./build/loop_while diff --git a/tests/loops_and_cmp.test b/tests/loops_and_cmp.test index 6b1583f..22e2053 100644 --- a/tests/loops_and_cmp.test +++ b/tests/loops_and_cmp.test @@ -1 +1 @@ -python main.py tests/loops_and_cmp.sl -o /tmp/loops_and_cmp > /dev/null && /tmp/loops_and_cmp +python main.py tests/loops_and_cmp.sl -o ./build/loops_and_cmp > /dev/null && ./build/loops_and_cmp diff --git a/tests/mem.test b/tests/mem.test index fc410e8..608989c 100644 --- a/tests/mem.test +++ b/tests/mem.test @@ -1 +1 @@ -python main.py tests/mem.sl -o /tmp/mem > /dev/null && /tmp/mem +python main.py tests/mem.sl -o ./build/mem > /dev/null && ./build/mem diff --git a/tests/override_dup_compile_time.test b/tests/override_dup_compile_time.test index 13bd19b..e4533ea 100644 --- a/tests/override_dup_compile_time.test +++ b/tests/override_dup_compile_time.test @@ -1 +1 @@ -python main.py tests/override_dup_compile_time.sl -o /tmp/override_dup_compile_time > /dev/null && /tmp/override_dup_compile_time +python main.py tests/override_dup_compile_time.sl -o ./build/override_dup_compile_time > /dev/null && ./build/override_dup_compile_time diff --git a/tests/str.test b/tests/str.test index 92c8e0a..95d16ac 100644 --- a/tests/str.test +++ b/tests/str.test @@ -1 +1 @@ -python main.py tests/str.sl -o /tmp/str > /dev/null && /tmp/str \ No newline at end of file +python main.py tests/str.sl -o ./build/str > /dev/null && ./build/str \ No newline at end of file diff --git a/tests/string_puts.test b/tests/string_puts.test index 493f022..ca91b8b 100644 --- a/tests/string_puts.test +++ b/tests/string_puts.test @@ -1 +1 @@ -python main.py tests/string_puts.sl -o /tmp/string_puts > /dev/null && /tmp/string_puts +python main.py tests/string_puts.sl -o ./build/string_puts > /dev/null && ./build/string_puts diff --git a/tests/syscall_write.test b/tests/syscall_write.test index 253b3bf..d5147e8 100644 --- a/tests/syscall_write.test +++ b/tests/syscall_write.test @@ -1 +1 @@ -python main.py tests/syscall_write.sl -o /tmp/syscall_write > /dev/null && /tmp/syscall_write +python main.py tests/syscall_write.sl -o ./build/syscall_write > /dev/null && ./build/syscall_write diff --git a/tests/typeconversion.test b/tests/typeconversion.test index 8688996..5df1832 100644 --- a/tests/typeconversion.test +++ b/tests/typeconversion.test @@ -1 +1 @@ -python main.py tests/typeconversion.sl -o /tmp/typeconversion > /dev/null && /tmp/typeconversion +python main.py tests/typeconversion.sl -o ./build/typeconversion > /dev/null && ./build/typeconversion diff --git a/tests/with_variables.test b/tests/with_variables.test index db90f69..bd9d669 100644 --- a/tests/with_variables.test +++ b/tests/with_variables.test @@ -1 +1 @@ -python main.py tests/with_variables.sl -o /tmp/with_variables > /dev/null && /tmp/with_variables +python main.py tests/with_variables.sl -o ./build/with_variables > /dev/null && ./build/with_variables