Add raise, break, continue, and a hacky attempt at for loops.

for loops currently generate a core dump.
This commit is contained in:
Darryl Pogue 2011-01-01 02:31:31 -08:00
commit f1205548e5
4 changed files with 179 additions and 9 deletions

View file

@ -141,7 +141,8 @@ bool Pyc::IsJumpOffsetArg(int opcode)
{
return (opcode == Pyc::JUMP_FORWARD_A) || (opcode == Pyc::JUMP_IF_FALSE_A) ||
(opcode == Pyc::JUMP_IF_TRUE_A) || (opcode == Pyc::SETUP_LOOP_A) ||
(opcode == Pyc::SETUP_FINALLY_A) || (opcode == Pyc::SETUP_EXCEPT_A);
(opcode == Pyc::SETUP_FINALLY_A) || (opcode == Pyc::SETUP_EXCEPT_A) ||
(opcode == Pyc::FOR_LOOP_A);
}