Skip to content

Extended syntax for forall, exists #11

@lou1306

Description

@lou1306

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    grammarIssues that are strictly related to the EBNF of the language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions