diff options
author | murphy <murphy@rubychan.de> | 2009-04-22 02:40:04 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-04-22 02:40:04 +0000 |
commit | 59b31ae8596f9606217b09d4e3f00dcf5aab8475 (patch) | |
tree | c1eaef9b3c98f48c449cd84a59c751528f7c45b5 /test/scanners/python/python3.expected.raydebug | |
parent | a40476dc4a91737182f78fe939e1d91bd644ea99 (diff) | |
download | coderay-59b31ae8596f9606217b09d4e3f00dcf5aab8475.tar.gz |
Improved Python scanner (issue #41).
* fixed numeric literals
* better Python 3 support
* bugfixes, optimizations
* added two more test files
Diffstat (limited to 'test/scanners/python/python3.expected.raydebug')
-rw-r--r-- | test/scanners/python/python3.expected.raydebug | 19 |
1 files changed, 19 insertions, 0 deletions
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) string<delimiter(")content(The answer is)delimiter(")>operator(,) integer(2)operator(*)integer(2) +ident(New)operator(:) ident(print)operator(()string<delimiter(")content(The answer is)delimiter(")>operator(,) 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(=)string<delimiter(")content( )delimiter(")>operator(\)) 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<delimiter(")content(fatal error)delimiter(")> +ident(New)operator(:) ident(print)operator(()string<delimiter(")content(fatal error)delimiter(")>operator(,) 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(()string<delimiter(")content(There are <)delimiter(")>operator(,) integer(2)operator(**)integer(32)operator(,) string<delimiter(")content(> possibilities!)delimiter(")>operator(,) ident(sep)operator(=)string<delimiter(")delimiter(")>operator(\)) + + +string<modifier(b)delimiter(")content(byte string)content(\\9)content(9)char(\\")delimiter(")>
\ No newline at end of file |