]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: adjust starting token value
authorRobert Griesemer <gri@golang.org>
Thu, 25 Feb 2016 00:17:49 +0000 (16:17 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 25 Feb 2016 00:50:56 +0000 (00:50 +0000)
commitd2e1dae3fec6953a37702710a3a7d7998c41bb69
treec396a711bbefa20760afe32d82464e0d866877d7
parent772cea817d075c496091f4c735800f14159c5051
cmd/compile: adjust starting token value

The actual values assigned to tokens was inherited from the yacc-based
grammar. With the most recent cleanups, all single-char tokens such as
commas, semis, parens, etc., that get returned from lexer.next simply
as their Unicode values are below utf8.RuneSelf (i.e., 7bit ASCII).
Lower the initial starting value for named token constants accordingly.

Change-Id: I7eb8e584dbb3bc7f9dab849d1b68a91320cffebd
Reviewed-on: https://go-review.googlesource.com/19913
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/lex.go