Commit Graph

354 Commits

Author SHA1 Message Date
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
Noah
0cbdb8a208 Merge pull request #2346 from isidentical/issue-2345
Fix crash on lexing octal escapes bigger than u8::MAX
2020-11-30 10:34:17 -06:00
Batuhan Taskaya
d14176146a Directly unwrap 2020-11-30 18:04:38 +03:00
Batuhan Taskaya
698ae764f1 Handle raw yield expressions as RHS for augmented/annotated assignments 2020-11-30 03:11:09 +03:00
Batuhan Taskaya
e26df2c793 Apply cargo fmt 2020-11-29 20:11:48 +03:00
Batuhan Taskaya
26908f17ed Fix crash on lexing octal escapes bigger than u8::MAX 2020-11-29 20:11:48 +03:00
Batuhan Taskaya
a382284d30 PEP 498 compatability: parenthesized expressions for f-strings 2020-11-29 17:57:49 +03:00
Noah
b3851c8eb8 Split the ast from the parser, remove compiler dep on parser 2020-11-07 15:43:23 -06:00
Jeong YunWon
3cd0a1118d Fix nightly clippy 2020-10-01 07:08:55 +09:00
Noah
50e19037fd Fix lalrpop semver error 2020-09-08 19:59:22 -05:00
Noah
1385c06e25 Fix some minor things required for unittest 2020-08-12 16:03:20 -05:00
Noah
861532990d Update lalrpop 2020-07-26 15:21:38 -05:00
Noah
0251f3e9a2 Move pyhash and some float ops to rustpython-common 2020-07-25 15:22:00 -04:00
Noah
e30e2cd278 Update some num-* crates 2020-07-15 12:53:57 -05:00
Noah
bc1717b7ac Release 0.1.2
rustpython@0.1.2
rustpython-bytecode@0.1.2
rustpython-compiler@0.1.2
rustpython-derive@0.1.2
rustpython-parser@0.1.2
rustpython-vm@0.1.2
rustpython_freeze@0.1.2
rustpython_wasm@0.1.2

Generated by cargo-workspaces
2020-06-23 18:47:08 -05:00
xjvs
83a58a63a8 Update README.md 2020-06-04 18:21:45 +08:00
TheAnyKey
fd2e0aa41e Implement Py38 named expression (PEP 572) (#1934)
* Initial implementation of named expression and  import  according CPython tests

* added new instruction with inversed evaluation order for dict comprehension, in other cases use regular evaluation order

* added further aspects to implementation, cleaned up, imported test from CPython

* implemented first parts of scoping enhancement and extended checks

* completion of name resolution ongoing, now more test passing, still warinings and cleanup required

* further optimization of name resolution in nested scopes

* Initialize the vm with imports from _io instead of io

* Add the OpenBSD support that I am smart enough to

* adapted grammer to full support, most test are passing now, esp. all invalids are passed. Cleaned up in symboltable

* more conditional compiling, this time for errors

* rustfmt was not pleased

* premature push, whoops

* Add expected_failure result type to jsontests

* Initial implementation of named expression and  import  according CPython tests

* added new instruction with inversed evaluation order for dict comprehension, in other cases use regular evaluation order

* added further aspects to implementation, cleaned up, imported test from CPython

* implemented first parts of scoping enhancement and extended checks

* completion of name resolution ongoing, now more test passing, still warinings and cleanup required

* further optimization of name resolution in nested scopes

* adapted grammer to full support, most test are passing now, esp. all invalids are passed. Cleaned up in symboltable

* Fixed nameing convention violation and removed unnecessary information from symbol resolution. Added some more comments.

* Fixed nameing convention violation and removed unnecessary information from symbol resolution. Added some more comments.

Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
Co-authored-by: Reuben Staley <lighthousemaniac@gmail.com>
2020-06-01 11:22:15 +02:00
Jeong YunWon
7bce7baf4a Fix SyntaxError visualize order: message first location later 2020-05-30 01:07:38 +00:00
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