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

Duplicate token error in ANTLR grammar. #1602

Closed
rhencke opened this issue Feb 18, 2017 · 1 comment
Closed

Duplicate token error in ANTLR grammar. #1602

rhencke opened this issue Feb 18, 2017 · 1 comment

Comments

@rhencke
Copy link
Contributor

rhencke commented Feb 18, 2017

Currently, the ANTLR grammar, when given to ANTLR3, complains with the error:

error(204): pony.g:162:53: duplicate token type '-~' when collapsing subrule into set

It appears that this is due to TK_MINUS_TILDE_NEW being output as simply '-~', and not, say, as TK_LPAREN_NEW is (as a newline, followed by the token). Its definition in the ANTLR grammar currently is identical to TK_MINUS_TILDEs.

@jemc
Copy link
Member

jemc commented Feb 18, 2017

Fixed in #1604.

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