324 Commits

Author SHA1 Message Date
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
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