Skip to content

Extended syntax for forall, exists #11

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

Open
lou1306 opened this issue Dec 2, 2024 · 0 comments
Open

Extended syntax for forall, exists #11

lou1306 opened this issue Dec 2, 2024 · 0 comments
Labels
grammar Issues that are strictly related to the EBNF of the language

Comments

@lou1306
Copy link
Contributor

lou1306 commented Dec 2, 2024

The Java parser and AST classes appear to support

forall x : A . y : B . phi

As a shorthand for

forall x : A . forall y : B . phi

At the moment our grammar does not handle this. Should it? In the end I do not think it saves a lot of space and it slightly complicates the AST structure. Moreover I think using . in two contexts like this might cause issues in Langium. I suggest we either drop this feature, or use , (comma) to separate quantified variables under the same quantifier, like this:

forall x : A , y : B . phi
@lou1306 lou1306 added the grammar Issues that are strictly related to the EBNF of the language label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grammar Issues that are strictly related to the EBNF of the language
Projects
None yet
Development

No branches or pull requests

1 participant