From 59b31ae8596f9606217b09d4e3f00dcf5aab8475 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 22 Apr 2009 02:40:04 +0000 Subject: Improved Python scanner (issue #41). * fixed numeric literals * better Python 3 support * bugfixes, optimizations * added two more test files --- test/scanners/python/literals.expected.raydebug | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/scanners/python/literals.expected.raydebug (limited to 'test/scanners/python/literals.expected.raydebug') diff --git a/test/scanners/python/literals.expected.raydebug b/test/scanners/python/literals.expected.raydebug new file mode 100644 index 0000000..ca7d22b --- /dev/null +++ b/test/scanners/python/literals.expected.raydebug @@ -0,0 +1,16 @@ +comment(# from http://docs.python.org/reference/lexical_analysis.html#literals) + +ident(re)operator(.)ident(compile)operator(()string comment(# letter or underscore) + string comment(# letter, digit or underscore) + operator(\)) +integer(7) integer(2147483647) oct(0177) +integer(3L) integer(79228162514264337593543950336L) oct(0377L) hex(0x100000000L) + integer(79228162514264337593543950336) hex(0xdeadbeef) + +float(3.14) float(10.) float(.001) float(1e100) float(3.14e-10) float(0e0) + +imaginary(3.14j) imaginary(10.j) imaginary(10j) imaginary(.001j) imaginary(1e100j) imaginary(3.14e-10j) + +integer(2) operator(+) imaginary(1j) + +float(3.5e+54) operator(-) imaginary(2.5e-13j) \ No newline at end of file -- cgit v1.2.1