diff --git a/hy/compiler.py b/hy/compiler.py index 2e63ec2..2ced07c 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -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):