mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
Update compiler.h
This commit is contained in:
parent
b4e95b1bab
commit
e41a525f25
@ -617,17 +617,17 @@ __LISTCOMP:
|
||||
if(match(TK("]"))){
|
||||
emitCode(OP_LOAD_NONE);
|
||||
}else{
|
||||
EXPR();
|
||||
EXPR_TUPLE();
|
||||
consume(TK("]"));
|
||||
}
|
||||
emitCode(OP_BUILD_SLICE);
|
||||
}else{
|
||||
EXPR();
|
||||
EXPR_TUPLE();
|
||||
if(match(TK(":"))){
|
||||
if(match(TK("]"))){
|
||||
emitCode(OP_LOAD_NONE);
|
||||
}else{
|
||||
EXPR();
|
||||
EXPR_TUPLE();
|
||||
consume(TK("]"));
|
||||
}
|
||||
emitCode(OP_BUILD_SLICE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user