Skip to content

Commit

Permalink
Merge pull request #230 from FStarLang/guido_fix
Browse files Browse the repository at this point in the history
Update parser after F* change
  • Loading branch information
mtzguido authored Oct 6, 2024
2 parents 6756f13 + 1594f28 commit 88b8912
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ocaml/plugin/FStar_Parser_Parse.mly
Original file line number Diff line number Diff line change
Expand Up @@ -1238,10 +1238,11 @@ simpleArrowDomain:
| LBRACE_BAR t=tmEqNoRefinement BAR_RBRACE { ((Some TypeClassArg, []), t) }
| aq_opt=ioption(aqual) attrs_opt=ioption(binderAttributes) dom_tm=tmEqNoRefinement { (aq_opt, none_to_empty_list attrs_opt), dom_tm }

(* Tm already account for ( term ), we need to add an explicit case for (#Tm) *)
(* Tm already accounts for ( term ), we need to add an explicit case for (#Tm), (#[@@@...]Tm) and ([@@@...]Tm) *)
%inline tmArrowDomain(Tm):
| LBRACE_BAR t=Tm BAR_RBRACE { ((Some TypeClassArg, []), t) }
| LPAREN q=aqual attrs_opt=ioption(binderAttributes) dom_tm=Tm RPAREN { (Some q, none_to_empty_list attrs_opt), dom_tm }
| LPAREN attrs=binderAttributes dom_tm=Tm RPAREN { (None, attrs), dom_tm }
| aq_opt=ioption(aqual) attrs_opt=ioption(binderAttributes) dom_tm=Tm { (aq_opt, none_to_empty_list attrs_opt), dom_tm }

tmFormula:
Expand Down

0 comments on commit 88b8912

Please sign in to comment.