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
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
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
HyeockJinKim
c8d0f5c956
Generate SyntaxError at integer starting with 0
...
Generate syntaxError at integer starting with 0,
not zero
Fixes #1422
2019-09-29 01:12:07 +09:00
Vazrupe (HyeonGyu Lee)
21669a023b
Add duplicate keyword argument error
...
Fixes #116
2019-09-26 12:27:57 +09:00
Noah
f73ea1cd00
impl fmt::Display for Tok
2019-09-13 11:08:43 +02:00
HyeonGyu Lee (Vazrupe)
0ab46fd2bd
Add Positional argument error to LexicalError
...
Fixes #1046
2019-09-13 01:46:31 +09:00
Windel Bouwman
19112cef49
Require at least finally or except on a try statement.
2019-08-19 09:00:08 +02:00
Windel Bouwman
3ed71308bf
Repair try-except-else syntax. Fixes #1300 .
2019-08-19 08:37:07 +02:00
Windel Bouwman
d83cfb4cef
Merge pull request #1234 from RustPython/short-circuit-evaluation
...
Improve the situation regarding boolean operations.
2019-08-12 07:30:28 +02:00
Windel Bouwman
36d8147e8e
Improve the situation regarding boolean operations.
2019-08-11 20:20:15 +02:00