Commit Graph
167 Commits
Author SHA1 Message Date
Noah 1385c06e25 Fix some minor things required for unittest 2020-08-12 16:03:20 -05:00
Yiqun Ling 230f91582f Add nested and optimized for symtable 2020-08-13 04:12:28 +09:00
Noah 3a6442f63f Merge pull request #2006 from Lynskylate/try-to-use-local
Use loadname local replace loadname free
2020-08-11 10:13:35 -05:00
Jeong YunWon 7f3fa70d10 clean up PyComplex 2020-08-09 21:46:16 +09:00
lynskylate 36e7e9cded Fix load context 2020-08-08 13:08:13 +08:00
lynskylate edc727f44f Fix scope error 2020-08-08 01:53:13 +08:00
lynskylate fd11b64cee Merge remote-tracking branch 'origin/master' into try-to-use-local 2020-08-07 01:18:56 +08:00
lynskylate 7e69e5ef2c Fix scope change 2020-08-02 03:43:19 +08:00
lynskylate 0d83cab37a Optimize code 2020-08-01 02:05:44 +08:00
Yiqun LingandJeong YunWon 12df480cc9 Apply suggestions from code review
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com>
2020-08-01 01:29:11 +08:00
lynskylate 96a0ea9487 Merge remote-tracking branch 'origin/master' into feature-symtable 2020-07-31 02:12:41 +08:00
lynskylate 8a6ac64f03 Introduce symtable test and add is_annotation for symbol 2020-07-31 02:11:00 +08:00
Noah 2bc2d1721e Update itertools 2020-07-26 15:21:39 -05:00
lynskylate 1f0928d8b9 Try to use loadname local replace loadname free 2020-07-18 04:02:42 +08:00
Yiqun Ling 6b361bb409 Set annotation for function args 2020-07-14 18:58:58 +09:00
Jeong YunWon 1c0925b4d9 CompilerError always contains source_path 2020-07-14 13:48:39 +09:00
lynskylate a310f3c245 Add annotation setup 2020-07-08 01:06:12 +08:00
lynskylate 3945c31f4f Remove needless return 2020-07-07 06:11:02 +08:00
lynskylate c609a6d33c Add annotation setup 2020-07-07 06:00:50 +08:00
Noah 57289ff6f5 Merge pull request #1964 from TheAnyKey/TheAnyKey/p38_named_expression_completion_step2
Py3.8 Named expression completion - error handling and scoping
2020-06-28 09:30:23 -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
TheAnyKey d17fcc4514 Merge branch 'master' into TheAnyKey/p38_named_expression_completion_step2 2020-06-22 00:34:00 +02:00
TheAnyKey d96b97a039 fixed scoping issue, commented test with references to original version 2020-06-21 22:18:43 +00:00
TheAnyKey 2a172a6fa1 commented and cleaned up 2020-06-14 12:06:39 +00:00
TheAnyKey ddd8151792 completion of error handling for named expressions and scope handling improvements 2020-06-13 21:16:51 +00:00
Noah f284b4ca95 Merge pull request #1951 from TheAnyKey/TheAnyKey/p38_named_expression_completion
Fix scope issue for non-locals
2020-06-10 16:36:12 -05:00
Noah 74f261a22c Fix Rust 1.44 clippy warnings 2020-06-06 15:37:47 -05:00
Noah 2576321c2e Fix compilation on redox 2020-06-02 15:21:33 -05:00
TheAnyKey 1773d2bc14 fixed scoping issue for nonlocals - now also indirect outer scopes are supported 2020-06-01 22:47:28 +00:00
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 9338dcdf45 Fix unpack_ex related messages 2020-05-30 01:07:38 +00:00
Jeong YunWon 7bce7baf4a Fix SyntaxError visualize order: message first location later 2020-05-30 01:07:38 +00:00
Jeong YunWon e4be376336 comprehension starred expression compatibility 2020-05-30 01:07:38 +00:00
Jeong YunWon 09d849ab0a Distinguish MultipleStarArgs and InvalidStarArgs compile errors 2020-05-30 01:07:38 +00: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 522034c84e Merge pull request #1880 from HyeockJinKim/issue1879
Remove unused variable
2020-04-26 00:12:26 +09:00
HyeockJinKim 2462e41703 Remove unused variable
Removed unused `is_param` variable for symbol.

Closes RustPython#1879
2020-04-25 13:59:54 +09:00
Noah d7842c79e3 Disable the unpack optimization 2020-04-24 15:14:58 -05:00
Noah d4bda6c02e Fix some clippy lints that were 'allow'ed 2020-04-05 14:55:51 -05:00
Noah f5de59a4bd Merge pull request #1834 from RustPython/coolreader18/jsontests
Add json output for CPython tests
2020-04-04 11:52:04 -05:00
Noah a8027ab48a Fix clippy lints 2020-04-03 12:34:01 -05:00
Noah f33e2d3b39 Remove incognito from vm 2020-04-03 12:34:00 -05:00
Noah be565d30ae Make incognito a CodeFlag bit 2020-04-03 12:34:00 -05:00
Noah 5b2cfb442d Make from __future__ imports a syntactic construct in the compiler 2020-04-03 12:34:00 -05:00
Noah 80f11466b3 Add "incognito" compilation 2020-04-03 12:34:00 -05:00
Noah 6553bf72d4 Move varargs information into CodeFlags 2020-04-02 09:02:18 -05:00
Noah 78f8f14003 Apply review comments 2020-03-21 00:37:13 -05:00
Noah af25fbed39 Fix syntax error tests 2020-03-21 00:35:36 -05:00
coolreader18 b83443cea9 Partially implement async generators 2020-03-21 00:33:46 -05:00
Noah 7031558065 Improve compiler error creation 2020-03-13 23:26:07 -05:00