Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new syntax to support partial opens and includes #3369

Merged
merged 9 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions ocaml/fstar-lib/FStar_Parser_Parse.mly
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,22 @@ typeclassDecl:
(d, [at])
}

restriction:
| LBRACE ids=separated_list(COMMA, id=ident renamed=option(AS id=ident {id} ) {(id, renamed)}) RBRACE
{ FStar_Syntax_Syntax.AllowList ids }
| { FStar_Syntax_Syntax.Unrestricted }

rawDecl:
| p=pragma
{ Pragma p }
| OPEN uid=quident
{ Open uid }
| OPEN uid=quident r=restriction
{ Open (uid, r) }
| FRIEND uid=quident
{ Friend uid }
| INCLUDE uid=quident
{ Include uid }
| INCLUDE uid=quident r=restriction
{ Include (uid, r) }
| MODULE UNDERSCORE EQUALS uid=quident
{ Open (uid, FStar_Syntax_Syntax.AllowList []) }
| MODULE uid1=uident EQUALS uid2=quident
{ ModuleAbbrev(uid1, uid2) }
| MODULE q=qlident
Expand Down
2 changes: 1 addition & 1 deletion ocaml/fstar-lib/generated/FStar_CheckedFiles.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions ocaml/fstar-lib/generated/FStar_Interactive_PushHelper.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 41 additions & 8 deletions ocaml/fstar-lib/generated/FStar_Parser_AST.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 24 additions & 7 deletions ocaml/fstar-lib/generated/FStar_Parser_AST_Util.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ocaml/fstar-lib/generated/FStar_Parser_Const.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ocaml/fstar-lib/generated/FStar_Parser_Dep.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 35 additions & 8 deletions ocaml/fstar-lib/generated/FStar_Parser_ToDocument.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading