Skip to content

Commit

Permalink
Fix issue #1001 (#1087)
Browse files Browse the repository at this point in the history
With the invaluable help of Michael Faerber

Co-authored-by: Gabriel Hondet <[email protected]>
Co-authored-by: Frédéric Blanqui <[email protected]>
  • Loading branch information
3 people authored Apr 23, 2024
1 parent 49fb1e3 commit 51263d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsing/lpParser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ path:
| p=QID { make_pos $sloc (List.rev p) }

modifier:
| d=SIDE? ASSOCIATIVE
| d=ioption(SIDE) ASSOCIATIVE
{ let b = match d with Some Pratter.Left -> true | _ -> false in
make_pos $sloc (P_prop (Term.Assoc b)) }
| COMMUTATIVE { make_pos $sloc (P_prop Term.Commu) }
Expand Down
3 changes: 3 additions & 0 deletions tests/OK/iss1001.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
constant symbol A : TYPE;

associative commutative symbol * : A → A → A;

0 comments on commit 51263d6

Please sign in to comment.