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

Code generated by goyacc does not compile correctly #417

Closed
gopherbot opened this issue Dec 12, 2009 · 3 comments
Closed

Code generated by goyacc does not compile correctly #417

gopherbot opened this issue Dec 12, 2009 · 3 comments

Comments

@gopherbot
Copy link
Contributor

by mzannone:

-- Before filing a bug, please check whether it has been fixed since
-- the latest release: run "hg pull -u" and retry what you did to
-- reproduce the problem.  Thanks.

Done

-- What steps will reproduce the problem?

$ cd /usr/local/go/src/cmd/goyacc
$ make clean
rm -f *.[568vq] goyacc 
$ make units
/Users/z4nn/bin/6g -o _go_.6 goyacc.go 
/Users/z4nn/bin/6l -o goyacc _go_.6 
./goyacc units.y
6g y.go
y.go:36: syntax error near Node
y.go:43: syntax error near Var
y.go:244: syntax error near int
y.go:279: empty top-level declaration
y.go:292: empty top-level declaration
y.go:311: syntax error near main
y.go:393: syntax error near bool
y.go:408: syntax error near bool
y.go:419: syntax error near v
y.go:441: syntax error near Node
y.go:441: fatal error: too many errors
make: *** [units] Error 1

-- What is your $GOOS?  $GOARCH?

$ env | grep GO
GOARCH=amd64
GOROOT=/usr/local/go
GOOS=darwin

-- Which revision are you using?  (hg identify)

$ hg identify
683ed10f7832 tip

-- Please provide any additional information below.

Probably goyacc implementation is not yet in sync with the semicolons syntax change
@rsc
Copy link
Contributor

rsc commented Dec 13, 2009

Comment 1:

Thanks.
You can 'hg update release' to get back to a working tree.

Owner changed to r...@golang.org.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Dec 13, 2009

Comment 2:

Owner changed to r...@golang.org.

@robpike
Copy link
Contributor

robpike commented Dec 13, 2009

Comment 3:

This issue was closed by revision f646296.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants