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

The parser must accept sentences whose role has a comma at the end #32

Open
plevyieml opened this issue Oct 8, 2022 · 1 comment
Open

Comments

@plevyieml
Copy link
Collaborator

plevyieml commented Oct 8, 2022

IEML Grammar requires that the roles in a sentence end with a comma, except for the penultimate role. The last role ends with a period. But a comma at the penultimate part does not create ambiguity.

@plevyieml plevyieml changed the title Le parseur doit accepter les phrases qui finissent avec un rôle avec une virgule à la fin The parser must accept sentences whose role has a comma at the end Oct 10, 2022
@ogrergo
Copy link
Contributor

ogrergo commented Oct 10, 2022

The following code snippet must be accepted by the parser :

@word "a.". 
@word "b.".
@node en:node1 (0 #"a.", 1 #"b.",).

At the moment, the parser will complain that there is an extra , after #"b.". This should not cause any issue with the grammar, and it causes unnecessary pain for the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants