Fix some bugs in parsing literals.
authorDavid Neto <dneto@google.com>
Mon, 24 Aug 2015 19:33:14 +0000 (15:33 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:52:01 +0000 (12:52 -0400)
commitaffa696027caa296e8e242f668d8076668733341
treed54dc6af2c33495f4bc651a3bb8dfde776f7214d
parent225baf88bc1eb70deef5457a21c1b46f55c908f9
Fix some bugs in parsing literals.

- a single hyphen is a string, not a number.
- a string with more than one period is a string, not a number
- check for string overflow

Add some unit tests
CMakeLists.txt
source/text.cpp
test/TextLiteral.cpp [new file with mode: 0644]