added break and continue
This commit is contained in:
parent
e1091afe94
commit
a455800bc7
@ -959,6 +959,20 @@ class HyASTCompiler(object):
|
||||
|
||||
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")
|
||||
@checkargs(1)
|
||||
def compile_assert_expression(self, expr):
|
||||
|
Loading…
x
Reference in New Issue
Block a user