Handle a few more optimization cases

This commit is contained in:
Jason Turner
2016-06-27 12:56:43 -06:00
parent 9e16cc2a79
commit a14f1983e8
2 changed files with 46 additions and 3 deletions

View File

@@ -1184,7 +1184,7 @@ private:
struct Break_AST_Node final : AST_Node_Impl<T> {
Break_AST_Node(std::string t_ast_node_text, Parse_Location t_loc, std::vector<AST_Node_Impl_Ptr<T>> t_children) :
AST_Node_Impl<T>(std::move(t_ast_node_text), AST_Node_Type::Break, std::move(t_loc), std::move(t_children)) { }
Boxed_Value eval_internal(const chaiscript::detail::Dispatch_State &) const override{
throw detail::Break_Loop();
}