golang/go

x/tools/cmd/goyacc: goyacc does not support `%code`

Open

#56,944 建立於 2022年11月26日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Go (19,008 fork)batch import
FeatureRequestNeedsInvestigationToolshelp wanted

倉庫指標

Star
 (133,883 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

What version of Go are you using (go version)?

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

What did you do?

$ curl -o parser_yacc.y https://gitlab.apertis.org/pkg/apparmor/-/raw/ubuntu/master/parser/parser_yacc.y
$ goyacc -o output parser_yacc.y
invalid escape, or illegal reserved word: code: parser_yacc.y:182

What did you expect to see?

Successful processing of parser_yacc.y.

What did you see instead?

invalid escape, or illegal reserved word: code: parser_yacc.y:182

貢獻者指南