]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/asm: fix the expression parser and add tests
authorRob Pike <r@golang.org>
Wed, 28 Jan 2015 19:11:33 +0000 (11:11 -0800)
committerRob Pike <r@golang.org>
Wed, 28 Jan 2015 20:39:39 +0000 (20:39 +0000)
commit0012b83507f06d5ecb95cf40170b539d58f35881
tree19251fc661a18364c2ee73ce3a7af7da666fc6d4
parentad8223865319e5325e9f79cfd340d906d1c85bb6
[dev.cc] cmd/asm: fix the expression parser and add tests

Rewrite the grammar to have one more production so it parses
~0*0
correctly and write tests to prove it.

Change-Id: I0dd652baf65b48a3f26c9287c420702db4eaec59
Reviewed-on: https://go-review.googlesource.com/3443
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/asm/expr_test.go [new file with mode: 0644]
src/cmd/asm/internal/asm/parse.go
src/cmd/asm/internal/lex/input.go
src/cmd/asm/internal/lex/lex.go