Commit Graph

288 Commits

Author SHA1 Message Date
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
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
Noah
c6131b3d7a Merge pull request #1640 from youknowone/clippy
Fix clippy warnings
2019-12-21 14:31:43 -06:00
Jeong YunWon
c1306726c4 Fix clippy warnings 2019-12-21 18:49:48 +09:00
coolreader18
fd07047aaf Rename LineContinationHandler -> LineContinuationHandler 2019-12-10 21:54:58 -06:00
yanganto
7f45ed3cca Provide caret diagnostics for SyntaxError
visualize syntax error with caret diagnostics in shell, eval, exec,
when the error statement and error location are provided.
2019-11-22 09:17:50 +08:00
coolreader18
1fcdbf74bc Fix raw byte literals 2019-11-11 14:57:27 -06:00
Windel Bouwman
4ca49b4d79 Add some documentation strings to the parser code. 2019-10-12 21:58:27 +02:00
Windel Bouwman
336364c80d Merge pull request #1318 from youknowone/ast-module
ast module
2019-10-12 12:51:26 +02:00
Jeong YunWon
2f1fb16da1 Add mode to ast::parse 2019-10-12 18:12:36 +09:00
Seo Sanghyeon
e76edde38e Implement IndentationError 2019-10-12 02:24:12 +09:00
Windel Bouwman
82e8811fee Merge pull request #1499 from HyeockJinKim/issue1498
Take only numbers after `.`
2019-10-11 17:39:54 +02:00
Seo Sanghyeon
97069c8605 Update lalrpop to 0.17 2019-10-11 15:50:15 +09:00
Chris West (Faux)
60bb597dc0 upgrade low-risk deps 2019-10-10 21:07:26 +01:00
Chris West (Faux)
45e4d6e9cd upgrade regex to be consistent 2019-10-10 20:50:09 +01:00
HyeockJinKim
5c70631e9e Take only numbers after .
Take only numbers not `_` after `.`

Fixes #1498
2019-10-10 17:24:14 +09:00
Seo Sanghyeon
f2e04c0e2f Implement TabError 2019-10-05 10:12:02 +09:00
Seo Sanghyeon
3f1009ec2c Disable a Clippy warning 2019-10-03 20:16:40 +09:00
Seo Sanghyeon
bdb6208f6f Do not panic in parser 2019-10-03 19:41:12 +09:00
Windel Bouwman
188ff0ea73 Merge pull request #1430 from HyeockJinKim/issue1422
Generate SyntaxError at integer starting with 0
2019-09-28 21:08:06 +02:00