Skip to content

Commit

Permalink
more backtracking in parsing comparators
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jan 2, 2025
1 parent 5a18eb3 commit a6f7e26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ast/parser_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ const auto goal_descriptor_not_def = (lit('(') >> keyword_lit("not")) > goal_des
const auto goal_descriptor_imply_def = (lit('(') >> keyword_lit("imply")) > goal_descriptor > goal_descriptor > lit(')');
const auto goal_descriptor_exists_def = (lit('(') >> keyword_lit("exists")) > lit('(') > typed_list_of_variables > lit(')') > goal_descriptor > lit(')');
const auto goal_descriptor_forall_def = (lit('(') >> keyword_lit("forall")) > lit('(') > typed_list_of_variables > lit(')') > goal_descriptor > lit(')');
const auto goal_descriptor_function_comparison_def = (lit('(') >> binary_comparator) > function_expression > function_expression > lit(')');
// distinguishing "=" predicate from comparator requires some more backtracking
const auto goal_descriptor_function_comparison_def = (lit('(') >> binary_comparator) >> function_expression > function_expression > lit(')');

const auto constraint_goal_descriptor_def = constraint_goal_descriptor_and | constraint_goal_descriptor_forall | constraint_goal_descriptor_at_end
| constraint_goal_descriptor_always | constraint_goal_descriptor_sometime | constraint_goal_descriptor_within
Expand Down

0 comments on commit a6f7e26

Please sign in to comment.