]> git.mxchange.org Git - simgear.git/commit
Nasal: fix parsing octal/hex numbers in strings as well as during lexing.
authorThomas Geymayer <tomgey@gmail.com>
Thu, 26 Jun 2014 07:44:36 +0000 (09:44 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 26 Jun 2014 12:21:18 +0000 (14:21 +0200)
commit49bcf49db17a1cae1490ddeda377159314cff75c
tree3dce378467f7db79f158aaf839e6f2ceee8d85c7
parent3bbb272ad50ba7b9e88bfd6c4a733055b9603b08
Nasal: fix parsing octal/hex numbers in strings as well as during lexing.

Parse the same number formats (octal, dec, hex) in literals and tokens. Was
previously quite a mess, and is still not the best solution, as lexing and
string parsing uses different implementations, although they are meant to
do exactly the same conversions.
simgear/nasal/cppbind/CMakeLists.txt
simgear/nasal/cppbind/nasal_num_test.cxx [new file with mode: 0644]
simgear/nasal/lex.c
simgear/nasal/string.c