compiler: support new numeric literal syntax
authorIan Lance Taylor <ian@gcc.gnu.org>
Sat, 17 Aug 2019 23:47:58 +0000 (23:47 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 17 Aug 2019 23:47:58 +0000 (23:47 +0000)
commitf781e7e5af1a787e14014485df8d7fc9e6fd5f06
tree59750280927d5567c17a476791cea376217a6cbe
parente68035acfd6997ed97eb32aec4f277f3b6858550
compiler: support new numeric literal syntax

    Support 0b, 0o, and hex floats.

    Tested against test/literal2.go in the gc repo.

    Updates golang/go#12711
    Updates golang/go#19308
    Updates golang/go#28493
    Updates golang/go#29008

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/189718

From-SVN: r274614
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/lex.cc
gcc/go/gofrontend/lex.h