Jeong Yunwon
dd2bf4c96b
fix clippy
2022-07-21 06:45:28 +09:00
f51ad1954f
Update to parse `group' expression
...
In CPython, group expression parse single yield and named expression, and handle invalid starred expression at the same time.
I added it such parsing algorithm.
Update python.lalrpop
2022-07-20 18:10:42 +09:00
6b56e51fc1
Change expression parser for del statement
...
Now star expression can be a argumnet for del statement.
2022-07-20 18:10:42 +09:00
Jeong YunWon
d9d453819e
Merge pull request #3783 from ChJR/feature/fix_decorators
...
Fix decorators
2022-07-16 23:43:19 +09:00
ChJR
8ef21ee628
Apply PEP 614
...
Check 'Named Expressions Need Not Be Parenthesized' Section
2022-07-16 21:28:01 +09:00
dennis zhuang
7be4860fac
fix: non-utf8 source causes panic, close #3798 ( #3884 )
...
Co-authored-by: fanninpm <fanninpm@miamioh.edu >
2022-07-15 15:46:41 +09:00
Taehong Kim
6095f882cf
Simplify boolean matching
...
Co-authored-by: Snowapril <sinjihng@gmail.com >
2022-07-15 14:32:20 +09:00
kth496
5fd9fc40a9
Fix multiline string bug
...
Co-authored-by: Hyeonji-Ryu <cjstk3940@naver.com >
2022-07-15 05:43:01 +09:00
kth496
203d1998e2
Fix multiline lexer bug
...
Co-authored-by: Hyeonji-Ryu <cjstk3940@naver.com >
2022-07-13 17:02:17 +09:00
Noa
4771ab6383
Switch then(|| foo) to then_some(foo)
2022-07-07 11:19:55 -04:00
Dennis Zhuang
623a78dbf9
fix panic when parsing invalid decimal, close #3796
2022-06-19 22:34:34 +08:00
Noa
2b0798a8b2
Try to invoke lalrpop from parser build script
2022-05-05 13:59:46 -05:00
Noa
ad3dcb9e97
Fancier, more correct line hashing
2022-04-24 10:36:04 -05:00
Noa
ceb59abbd9
Speedup compile time for rustpython-parser
2022-04-24 10:36:02 -05:00
Jeong Yunwon
965c3157c8
Upgrade libraries
2022-04-18 00:09:22 +09:00
Jeong Yunwon
6357a1acbe
clean up imports and useless allow attributes
2022-04-15 23:58:20 +09:00
Padraic Fanning
f2257a93b0
Allow proper recursion in f-string format specs
2022-02-04 14:59:28 -05:00
Padraic Fanning
a1dffe671e
Allow replacement fields in format specs
2022-02-04 14:59:28 -05:00
Padraic Fanning
04886d825d
Allow brackets in f-string format spec
2022-02-04 14:59:27 -05:00
Noa
358ce09b5c
Run cargo upgrade
2021-10-30 19:42:35 -05:00
Noa
09e9ea91e7
TryFrom, TryInto, FromIterator are in prelude now
2021-10-21 17:04:19 -05:00
Noa
ee8b11f5d2
Migrate to 2021 edition
2021-10-21 11:46:24 -05:00
Jeong YunWon
7bcf2c3e39
Merge pull request #3014 from leesungbin/underscore_grammar
...
Solve some lexical error with underscore
2021-10-19 08:37:03 +09:00
Noa
f336a00177
Fix rustpython-parser tests
2021-10-17 21:55:34 -05:00
Noa
0cd2b0787a
Keep u-prefixed strings through to the AST
2021-10-17 21:55:34 -05:00
Chris Moradi
8bb1aabf2e
Fix error message for named expression syntax errors
2021-10-02 13:43:50 -07:00
Padraic Fanning
0ea56025ec
Replace master with main
...
Fixes #3067
2021-09-15 17:54:54 -04:00
이성빈
d7e9c7d39e
raise syntax error when '_' after 'e' or 'E'
2021-09-05 21:02:50 +09:00
Padraic Fanning
f833ba6ed3
Update num_bigint to 0.4.2
...
Fixes a compilation error with the latest nightlies.
2021-09-03 18:53:23 -04:00
Nikita Sobolev
ba74a9a239
Fixes typos in all other files
2021-08-22 12:42:13 +09:00
Noah
a32ee555cf
Run cargo update
2021-07-31 18:44:40 -05:00
Noah
b05c0e27f6
Upgrade dependencies for redox
2021-07-31 10:18:00 -05:00
Jeong YunWon
b2115c9009
Fix unnessessary while let
2021-07-30 02:32:16 +09:00
Noah
e21a447400
Fix misc codecs issues
2021-05-21 01:32:55 -05:00
Padraic Fanning
0174e386a1
Fix inconsistent_struct_constructor Clippy warning
2021-05-07 17:00:38 -04:00
Jeong YunWon
843895c04d
Merge pull request #2531 from RustPython/clippy-1.51
...
Fix clippy warnings for 1.51
2021-03-28 02:36:20 +09:00
Noah
76f8ed5299
Fix clippy warnings for 1.51
2021-03-26 17:54:22 -05:00
Noah
7961ec9aaa
Update parser snapshot tests with new BigInt Debug repr
2021-03-25 08:06:58 -05:00
Noah
25ecd7c38b
Upgrade dependencies
2021-03-25 08:06:56 -05:00
Noah
bcf58d9091
Misc fixes
2021-01-14 12:37:37 -06:00
Noah
b8aabb7bb7
Implement asdl in the ast and parser
2021-01-14 12:37:37 -06:00
Noah
abe9e2322e
Remove extra ahash dep
2021-01-11 19:42:05 -06:00
Noah
56c225c748
Use ahash/phf in parser
2021-01-08 17:09:09 -06:00
Jeong YunWon
1c12a80682
Merge pull request #2392 from RustPython/fix-clippy-1.49
...
Fix clippy lints for Rust 1.49
2021-01-08 11:32:45 +09:00
pca006132
0af925051c
changed Default::default() to ()
2021-01-04 14:45:36 +08:00
pca006132
af3e7dee69
Implements AST Customization ( #2388 )
2021-01-04 10:33:22 +08:00
Noah
be40a5d7b9
Fix clippy lints for Rust 1.49
2021-01-02 19:30:57 -06:00
Noah
99a8d68933
Fix test_exceptions.testRaising
2020-12-19 15:09:20 -06:00
Noah
5a56dd1a77
repr() functions with their names
2020-12-17 16:29:44 -06:00
Noah
5bbe2da1ef
Merge pull request #2350 from isidentical/issue-2349
...
Handle raw yield expressions as RHS for augmented/annotated assignments
2020-12-06 11:12:04 -06:00