small update
This commit is contained in:
8
main.py
8
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))
|
||||
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/alloc.sl -o /tmp/alloc > /dev/null && /tmp/alloc
|
||||
python main.py tests/alloc.sl -o ./build/alloc > /dev/null && ./build/alloc
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/arr_dynamic.sl -o /tmp/arr_dynamic > /dev/null && /tmp/arr_dynamic
|
||||
python main.py tests/arr_dynamic.sl -o ./build/arr_dynamic > /dev/null && ./build/arr_dynamic
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/bss_override.sl -o /tmp/bss_override > /dev/null && /tmp/bss_override
|
||||
python main.py tests/bss_override.sl -o ./build/bss_override > /dev/null && ./build/bss_override
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/fib.sl -o /tmp/fib > /dev/null && /tmp/fib
|
||||
python main.py tests/fib.sl -o ./build/fib > /dev/null && ./build/fib
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/goto.sl -o /tmp/goto > /dev/null && /tmp/goto
|
||||
python main.py tests/goto.sl -o ./build/goto > /dev/null && ./build/goto
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/hello.sl -o /tmp/hello > /dev/null && /tmp/hello
|
||||
python main.py tests/hello.sl -o ./build/hello > /dev/null && ./build/hello
|
||||
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/inline.sl -o /tmp/inline > /dev/null && /tmp/inline
|
||||
python main.py tests/inline.sl -o ./build/inline > /dev/null && ./build/inline
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/list.sl -o /tmp/list > /dev/null && /tmp/list
|
||||
python main.py tests/list.sl -o ./build/list > /dev/null && ./build/list
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
python main.py tests/str.sl -o /tmp/str > /dev/null && /tmp/str
|
||||
python main.py tests/str.sl -o ./build/str > /dev/null && ./build/str
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user