1
0
mirror of https://github.com/golang/go synced 2024-11-20 00:04:43 -07:00
go/src
Matthew Dempsky 398bf9d5a0 cmd/internal/gc, cmd/yacc: restore custom syntax error messages
This restores go.errors from before 3af0d79 along with a fixed up
version of the bisonerrors AWK script, translated to Go.

However, this means Yyerror needs access to the yacc parser's state,
which is currently private.  To workaround that, add a "state"
accessor method like the Lookahead method added in c7fa3c6.

Update issue #9968.

Change-Id: Ib868789e92fdb7d135442120a392457923e50121
Reviewed-on: https://go-review.googlesource.com/7270
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-04-02 21:56:24 +00:00
..
archive
bufio
builtin
bytes runtime: add runtime.cmpstring and bytes.Compare 2015-03-25 22:46:39 +00:00
cmd cmd/internal/gc, cmd/yacc: restore custom syntax error messages 2015-04-02 21:56:24 +00:00
compress compress/flate: fix typo in comment 2015-04-01 16:48:04 +00:00
container
crypto crypto/x509: use syscall.GetVersion instead of internal/syscall/windows.GetVersion 2015-03-31 08:11:24 +00:00
database/sql database/sql: provide stats on number of open connections to the database. 2015-04-01 15:24:53 +00:00
debug debug/dwarf, encoding/asn1, go/ast: fix old comments 2015-03-24 00:09:30 +00:00
encoding debug/dwarf, encoding/asn1, go/ast: fix old comments 2015-03-24 00:09:30 +00:00
errors
expvar
flag
fmt fmt: improve test coverage of %x and %X format variations for strings 2015-04-01 00:55:30 +00:00
go go/ast: fix ast.Inspect doc string 2015-04-02 03:51:22 +00:00
hash
html html/template: fix crash when escaping incomplete template 2015-03-20 19:57:45 +00:00
image image/draw: fix golden test for YCbCr.RGBA change. 2015-03-27 00:30:14 +00:00
index/suffixarray
internal cmd/gofmt, go/format: refactor common pieces into internal/format 2015-04-01 17:35:26 +00:00
io io: clarify the behavior of PipeWriter.CloseWithError(nil). 2015-03-30 09:43:11 +00:00
log
math math/big: implement missing special cases for binary operations 2015-04-02 17:05:09 +00:00
mime mime/quotedprintable: add binary mode to the writer 2015-03-30 12:49:19 +00:00
net net: move test flags into main_test.go 2015-04-02 09:07:24 +00:00
os os: give race detector chance to override Exit(0) 2015-03-28 12:42:37 +00:00
path
reflect
regexp regexp: fix link to RE2 syntax 2015-03-23 19:17:52 +00:00
runtime runtime: remove checkgc code from hashmap 2015-04-02 15:28:56 +00:00
sort
strconv
strings strings: Add benchmark test for trim function 2015-03-31 00:40:55 +00:00
sync
syscall syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
testing testing/quick: fix comment 2015-03-27 13:00:53 +00:00
text text/scanner: Fix EOF reporting on strange Readers 2015-04-01 03:39:22 +00:00
time time: add a thorough example for time.Format 2015-03-26 18:44:42 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
clean.bash
clean.bat
clean.rc
iostest.bash iostest.bash: build script for iOS 2015-03-30 16:54:01 +00:00
make.bash
make.bat
Make.dist
make.rc
nacltest.bash nacltest.bash: reduce test time by using bootstrapping Go to build fstest_nacl.go 2015-03-24 23:58:14 +00:00
race.bash
race.bat
run.bash
run.bat
run.rc