mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
up
This commit is contained in:
parent
5faf7bbc6c
commit
e81c1c4491
@ -33,10 +33,10 @@ def f1():
|
|||||||
a = {1: 2, 3: 4}
|
a = {1: 2, 3: 4}
|
||||||
x = a[0]
|
x = a[0]
|
||||||
except A:
|
except A:
|
||||||
print('<?>')
|
exit(1)
|
||||||
except B:
|
except B:
|
||||||
print('<?>')
|
exit(1)
|
||||||
print('<?>')
|
exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f1()
|
f1()
|
||||||
|
@ -29,11 +29,6 @@ function term_init() {
|
|||||||
switch (e) {
|
switch (e) {
|
||||||
case '\r': // Enter
|
case '\r': // Enter
|
||||||
term.write("\r\n");
|
term.write("\r\n");
|
||||||
if(command == 'exit()'){
|
|
||||||
stopped = true;
|
|
||||||
term.write("Bye!\r\n");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
need_more_lines = Module.ccall('pkpy_repl_input', 'bool', ['number', 'string'], [repl, command]);
|
need_more_lines = Module.ccall('pkpy_repl_input', 'bool', ['number', 'string'], [repl, command]);
|
||||||
command = '';
|
command = '';
|
||||||
term.write(need_more_lines ? "... " : ">>> ");
|
term.write(need_more_lines ? "... " : ">>> ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user