tools/go/expect
Ian Cottrell 895048a75e 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>
2018-11-30 19:57:46 +00:00
..
testdata go/expect: rewrite the expectation parser 2018-11-30 19:57:46 +00:00
expect.go go/packages/packagestest: add marker support 2018-11-02 18:21:53 +00:00
expect_test.go go/packages/packagestest: add marker support 2018-11-02 18:21:53 +00:00
extract.go go/expect: rewrite the expectation parser 2018-11-30 19:57:46 +00:00