Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Rule precedence lost if followed by ';'. #2

Closed
cznic opened this issue Nov 17, 2014 · 2 comments
Closed

Rule precedence lost if followed by ';'. #2

cznic opened this issue Nov 17, 2014 · 2 comments
Assignees
Labels

Comments

@cznic
Copy link
Owner

cznic commented Nov 17, 2014

In yacc/parser.y the rule

|       prec ';'

should behave the same as

|       prec ';'
        {
                $$ = $1
        }

But is does not, at least not in this case, so a rule precedence specification followed by a semicolon is lost. This seems to be a bug in the original Go yacc ($ go tool yacc). Goyacc inherits the problem.

@cznic
Copy link
Owner Author

cznic commented Mar 19, 2015

Possible cause: golang/go#10192.

@cznic
Copy link
Owner Author

cznic commented Jun 22, 2016

I believe this was fixed long ago in goyacc.

@cznic cznic closed this as completed Jun 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant