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/python3.expected.raydebug | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/scanners/python/python3.expected.raydebug (limited to 'test/scanners/python/python3.expected.raydebug') diff --git a/test/scanners/python/python3.expected.raydebug b/test/scanners/python/python3.expected.raydebug new file mode 100644 index 0000000..6a9c056 --- /dev/null +++ b/test/scanners/python/python3.expected.raydebug @@ -0,0 +1,19 @@ +ident(Old)operator(:) keyword(print) stringoperator(,) integer(2)operator(*)integer(2) +ident(New)operator(:) ident(print)operator(()stringoperator(,) integer(2)operator(*)integer(2)operator(\)) + +ident(Old)operator(:) keyword(print) ident(x)operator(,) comment(# Trailing comma suppresses newline) +ident(New)operator(:) ident(print)operator(()ident(x)operator(,) ident(end)operator(=)stringoperator(\)) comment(# Appends a space instead of a newline) + +ident(Old)operator(:) keyword(print) comment(# Prints a newline) +ident(New)operator(:) ident(print)operator(()operator(\)) comment(# You must call the function!) + +ident(Old)operator(:) keyword(print) operator(>>)ident(sys)operator(.)ident(stderr)operator(,) string +ident(New)operator(:) ident(print)operator(()stringoperator(,) ident(file)operator(=)ident(sys)operator(.)ident(stderr)operator(\)) + +ident(Old)operator(:) keyword(print) operator(()ident(x)operator(,) ident(y)operator(\)) comment(# prints repr((x, y\)\)) +ident(New)operator(:) ident(print)operator(()operator(()ident(x)operator(,) ident(y)operator(\))operator(\)) comment(# Not the same as print(x, y\)!) + +ident(print)operator(()stringoperator(,) integer(2)operator(**)integer(32)operator(,) string possibilities!)delimiter(")>operator(,) ident(sep)operator(=)stringoperator(\)) + + +string \ No newline at end of file -- cgit v1.2.1