-
Notifications
You must be signed in to change notification settings - Fork 9
Adjustments to new LFSC grammar. #53
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
base: Version_1.5
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,7 +78,7 @@ ntype | |
| // (^ c t) | ||
|
|
||
| // Extension ///////////////////// | ||
| vtype : '(' 'var' iden ntype ')' ; | ||
| vtype : '(' 'id' iden ntype ')' ; | ||
| ////////////////////////////////// | ||
|
|
||
| type | ||
|
|
@@ -89,7 +89,7 @@ type | |
| | '(' '!' iden ntype type ')' | ||
| // Extension /////////////////////////////// | ||
| | '(' 'Forall' iden ntype type ')' | ||
| | '(' '->' ( ntype | vtype )+ type ')' | ||
| | '(' '->' '(' ( ntype | vtype )+ ')' type ')' | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surrounding the argument list in parentheses makes it clear when we are done with arguments.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, this makes |
||
| //////////////////////////////////////////// | ||
| ; | ||
| // (Forall ξ τ₁ τ₂) | ||
|
|
@@ -117,14 +117,14 @@ term | |
| | rat_const | ||
| | '(' term term+ ')' | ||
| | '(' '\\' iden term ')' | ||
| | '(' '@' iden term ')' | ||
| | '(' '@' iden term term ')' | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think was just a typo. |
||
| | '(' ':' type term ')' | ||
| | '(' '%' iden type term ')' | ||
| // Extensions /////////////////// | ||
| | '(' 'lam' iden term ')' | ||
| | '(' 'let' iden term term ')' | ||
| | '(' 'proved-by' type term ')' | ||
| | '(' 'assuming' vtype+ term ')' | ||
| | '(' 'assuming' '(' (ntype | vtype)+ ')' term ')' | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding parentheses is a good idea here, just like for the |
||
| ; | ||
| ////////////////////////////////// | ||
| // (lam ξ t) | ||
|
|
@@ -167,4 +167,4 @@ code | |
| INT : [0-9]+ ; | ||
| RAT : ('0' | [1-9][0-9]*) '/' [1-9][0-9]* ; | ||
| ID : [a-zA-Z~!@$%^&*_\-+=<>.?/][a-zA-Z0-9~!@$%^&*_\-+=<>.?/]* ; | ||
| KW : ':'[a-zA-Z0-9~!@$%^&*_\-+=<>.?/]* ; | ||
| KW : ':'[a-zA-Z0-9~!@$%^&*_\-+=<>.?/]* ; | ||
Uh oh!
There was an error while loading. Please reload this page.