commit | 895048a75ecf3ee9bb32121d21f2f4bf20d96fb3 | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Fri Nov 30 13:23:47 2018 -0500 |
committer | Ian Cottrell <iancottrell@google.com> | Fri Nov 30 19:57:46 2018 +0000 |
tree | e4ab1b95e04e1b98cd6769d3798e1cf05f0a4075 | |
parent | 1c3d964395ce8f04f3b03b30aaed0b096c08c3c6 [diff] |
go/expect: rewrite the expectation parser The expectation langauge is LL(1) but the scanner does not support true lookahead This change adds a true LL(1) token stream and rewrites the parser in terms of it. Also clean up the error handling and use the behaviour to fix all the broken edge cases, and then change the tests to cover the now correct behaviour. Change-Id: If3d602cda490ed2f4732efce400eb8eabce8a8ec Reviewed-on: https://go-review.googlesource.com/c/151998 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.