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

Incorrect parsing of 'some' quantifier in constraints. #17

Closed
mantkiew opened this issue Feb 7, 2012 · 2 comments
Closed

Incorrect parsing of 'some' quantifier in constraints. #17

mantkiew opened this issue Feb 7, 2012 · 2 comments
Assignees

Comments

@mantkiew
Copy link
Member

mantkiew commented Feb 7, 2012

Clafer v0.2.6-2-2012

For the following code:

abstract A
    b *
        c ?
    [ some b1 : b | b1.c ]

The translator produces the following incorrect error:

clafer "issue17.cfr" -v -m=alloy42
issue17.cfr

Parse              Failed...

Tokens:
syntax error at line 4 before : b | b1
@ghost ghost assigned kbak Feb 7, 2012
@kbak
Copy link

kbak commented Feb 10, 2012

It seems like the parser generated by happy is unable to parse the file because grammar is ambiguous. I don't see any easy fix of that problem. I looked into parser combinators and played a little bit. Most likely I'll use them to create a new parser.

kbak pushed a commit that referenced this issue Feb 14, 2012
@kbak
Copy link

kbak commented Feb 14, 2012

should be fixed now

@kbak kbak closed this as completed Feb 14, 2012
juodaspaulius pushed a commit to juodaspaulius/bclafer_old that referenced this issue May 20, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants