added break and continue

This commit is contained in:
Morten Linderud 2013-06-24 02:39:46 +02:00
parent e1091afe94
commit a455800bc7

View File

@ -959,6 +959,20 @@ class HyASTCompiler(object):
return ret return ret
@builds("break")
def compile_break_expression(self, expr):
ret = ast.Break(lineno=e.start_line,
col_offset=e.start_column)
return ret
@builds("continue")
def compile_continue_expression(self, expr):
ret = ast.Continue(lineno=e.start_line,
col_offset=e.start_column)
return ret
@builds("assert") @builds("assert")
@checkargs(1) @checkargs(1)
def compile_assert_expression(self, expr): def compile_assert_expression(self, expr):