Commit Graph

306 Commits

Author SHA1 Message Date
TheAnyKey
90e52ab514 merged and prepared for PR 2020-05-16 14:33:30 +00:00
TheAnyKey
ebebda3ca6 implementation of generalized decorators and test update from cpython 2020-05-16 14:33:30 +00:00
HyeockJinKim
cdd98135ee EOF after \\ raise EOF Error
Return EOF Error to get the next line after` \\ `in the shell.

Closes #1928
2020-05-16 09:45:44 +09:00
Noah
a34951dc1b Fix clippy and unittest error 2020-05-06 21:33:25 -05:00
Noah
53ab5de00a Fix escaped quotes in raw string literals 2020-05-05 12:22:19 -05:00
TheAnyKey
a535e3c754 merged 2020-05-05 07:49:54 -04:00
TheAnyKey
71ec5c1b86 clean up after review 2020-05-05 05:01:16 -04:00
TheAnyKey
cba961ecfa Apply suggestions from code review
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com>
2020-05-04 23:09:31 +02:00
TheAnyKey
80a9710aa8 fixed clippy; tests fail explicitly for python 3.7 and below 2020-04-30 14:25:49 -04:00
TheAnyKey
3e8cde7b9c Removed incompatibilty with CPython, fixed parser error handling 2020-04-30 12:48:41 -04:00
TheAnyKey
3ccb117b9a fixed fmt 2020-04-29 17:52:47 -04:00
TheAnyKey
e7ec972ab7 now conversion flags can be followed by a format specifier and added tests 2020-04-29 16:55:21 -04:00
TheAnyKey
c25353c083 minor cleanup 2020-04-29 15:41:04 -04:00
TheAnyKey
34478d3db7 implemented selfdocumenting fstrings and tests from cpython- current handling of quotes is too simple 2020-04-29 15:37:47 -04:00
TheAnyKey
94a7b48560 added initial implementation of self defining expressions to fstring (Python3.8) 2020-04-28 18:41:17 -04:00
Jeong YunWon
9b3fa53f88 Merge pull request #1843 from RustPython/coolreader18/clippy-fixes
Fix some clippy lints that were previously 'allow'ed
2020-04-27 00:10:01 +09:00
Jeong YunWon
ce2d9d8d7c Fix build warnings for Rust 1.43.0 2020-04-25 04:14:36 +09:00
Noah
d7f28949e2 Add test for unicode escape 2020-04-15 19:24:00 -05:00
Noah
c39ac3393a Add unicode name string escapes 2020-04-14 13:04:15 -05:00
Noah
8c13eeaf21 Specify individual unic dependencies 2020-04-14 13:03:54 -05:00
Noah
d4bda6c02e Fix some clippy lints that were 'allow'ed 2020-04-05 14:55:51 -05:00
Mireille Raad
9c1cb881d1 move content of readme file 2020-04-03 10:18:04 -04:00
Mireille Raad
4b506c2fee Adding readme under parser and parser/src
Adding readme files under parser and parser/src to make it faster to figure out the files and what each does.
2020-03-22 19:59:20 -04:00
Noah
18c4a6f44c Merge pull request #1801 from RustPython/coolreader18/async-gen
Implement async generators
2020-03-21 11:37:53 -05:00
Aviv Palivoda
0444c1afa2 Fix clippy warning 2020-03-21 16:35:47 +02:00
Aviv Palivoda
e436e42b4c Merge lex_byte into lex_string 2020-03-21 15:58:20 +02:00
Aviv Palivoda
a2e85aff23 Escape octet in string 2020-03-21 11:08:46 +02:00
Noah
af25fbed39 Fix syntax error tests 2020-03-21 00:35:36 -05:00
Jeong YunWon
d1dba7f7d1 Merge pull request #1818 from palaviv/struct-fixes
Struct fixes
2020-03-21 01:14:21 +09:00
Aviv Palivoda
1a8de8fccd Refactor lex_byte 2020-03-20 14:14:15 +02:00
Aviv Palivoda
7338bb701d Support octet escaping 2020-03-14 16:02:24 +02:00
Noah
b6d155df8b Make Location Copy and remove all location.clone()s 2020-03-13 21:49:10 -05:00
Noah
75eabfdc2c Merge pull request #1787 from youknowone/posonly
PEP570 - positional only parameter support
2020-03-13 17:19:21 -05:00
Noah
3d07a73346 Fix clippy failure on Rust 1.42.0 2020-03-12 17:42:37 -05:00
Jeong YunWon
aa1d20c388 positional only parameter support 2020-03-08 00:13:13 +09:00
philippeitis
e037e37018 Simplify code, have errors match CPython implementation. 2020-02-27 11:34:55 -08:00
philippeitis
a21a2d4773 Handle != in f-string braces, raise EmptyExpression when expected. 2020-02-26 21:09:25 -08:00
philippeitis
3b74e780ec Add ExpectedRbrace error, fix error messages. 2020-02-26 21:07:46 -08:00
Jeong YunWon
1abe7e3313 Allow star expression for list elements 2020-02-16 17:32:51 +09:00
Jeong YunWon
7d0d313aa5 &str::to_string -> &str::to_owned for variables 2020-02-05 22:55:34 +09:00
Jeong YunWon
1bac582921 &str::to_string -> &str::to_owned for literals 2020-02-05 22:55:33 +09:00
Daniel Alley
4e2afe7937 Remove wtf8 dependency 2020-01-27 08:35:58 -05:00
Aviv Palivoda
ad4beab6f6 fix line continuation parsing 2020-01-24 21:50:19 +02:00
coolreader18
1c3b4d2fc4 Remove 'regex' from parser/Cargo.toml, as we don't use it 2020-01-15 20:19:11 -06:00
Jeong YunWon
e5b91c25a8 Reduce &String usage 2020-01-15 11:51:29 +09:00
Jeong YunWon
5d50e19432 dict comprehension test 2020-01-08 11:54:30 +09:00
coolreader18
98211a34de Try to cut down on the # of unicode crates we use 2020-01-05 00:19:56 -06:00
Abe
30473d3058 Add support for string formatting of floats with ":f" format code
Also adds automatic conversion of int -> float when the ":f"
format code is specified.

Fixes a f-string formatting style regression introduced in #1625.
2019-12-31 18:52:46 -07:00
Aviv Palivoda
8e84a85b0c Add more tests for nested f-string spec 2019-12-27 10:19:07 +02:00
Aviv Palivoda
c3703f08d7 Support expression in f-strings spec 2019-12-27 10:19:07 +02:00