added break and continue
This commit is contained in:
parent
e1091afe94
commit
a455800bc7
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user