Commit Graph
84 Commits
Author SHA1 Message Date
coolreader18 f78f558404 Fix clippy lints 2019-03-19 10:52:39 -05:00
Adam Kelly 6ad528c15c Reintroduce new_scope for the common case of an empty scope. 2019-03-10 12:38:43 +00:00
Adam Kelly 0e23e706c9 Restructure scope to distinguish between locals and globals. 2019-03-10 12:38:43 +00:00
Adam Kelly 9d6e9ac889 Move Scope from pyobject to frame. 2019-03-01 20:49:17 +00:00
Adam Kelly c2e2441388 Remove Scope variant from PyObject. 2019-03-01 20:47:09 +00:00
Windel Bouwman 7032de96d7 Merge pull request #311 from nhynes/compile-wasm
Allow compiling VM for wasm32-unknown-unknown
2019-02-23 10:42:09 +01:00
Joey df76ffe116 Replace most relative imports with 2018-style crate 2019-02-20 08:50:53 -08:00
chris 0cc898e19d Updated Compilation phase to detect whether or not we are currently inside of a loop or not. This is useful to determine whether or not we can use looping specific keywords such as break or continue. 2019-02-19 02:18:52 -05:00
holygits 570b28439a Fix tests 2019-02-14 12:31:20 +13:00
Nick Hynes ae8dc46947 Allow compiling VM for wasm32-unknown-unknown 2019-02-13 23:22:03 +00:00
holygits 995fac12fd Remove stray file 2019-02-14 11:10:27 +13:00
holygits 4453c3e561 Create error types for parser and compiler
Pass through locations and tokens in ParseError
2019-02-14 10:21:21 +13:00
matrizx c041c8cbc5 Replaced cluttered match statements with if let 2019-02-12 16:55:12 -08:00
ZapAnton 604883dc86 Fixed the len_zero clippy warning 2019-02-12 17:13:09 +03:00
ZapAnton a0f1f51863 Fixed the useless_asref clippy warnings 2019-02-12 17:09:52 +03:00
Windel Bouwman 95cb0178cd Merge pull request #405 from RustPython/code_object
Code object
2019-02-09 16:20:07 +01:00
Adam Kelly 769b889097 Source path should always be set, make it non-optional for code object. 2019-02-09 12:22:51 +00:00
klemens 79a7e5e42b spelling fixes 2019-02-09 12:00:46 +01:00
rmliddle f89dc0061b included all not unix in static pathbuf 2019-02-06 22:37:35 +11:00
rmliddle 51d5f9d3a4 changed String to PathBuf 2019-02-06 21:46:50 +11:00
rmliddle 401f477fc8 Format main.rs 2019-02-06 21:01:55 +11:00
Ryan Liddle 2f0647e847 factored out xdg to cfg functions to allow windows builds to succeed 2019-02-06 20:59:54 +11:00
Windel Bouwman 7096434f95 Implement some clippy tips 2019-02-04 17:17:54 +01:00
Tom Forbes a72dbf1d0c Use XDG paths to store Python history 2019-02-03 10:07:50 +01:00
Windel Bouwman d627230434 Merge pull request #263 from coolreader18/string-str
Remove unnecessary to_string conversions
2019-01-28 20:38:54 +01:00
coolreader18 989357fe81 Fix warnings from using trim_left and trim_right 2019-01-27 23:02:27 -06:00
coolreader18 5ecff1b37e Remove unnecessary to_string conversions 2019-01-27 21:45:21 -06:00
Windel Bouwman 49f855219a Implement sys.getrefcount, sys.ps1, sys.ps2 and sys.getsizeof 2018-11-11 20:54:30 +01:00
Windel Bouwman 079905277b Add time module and improve lexer handling of numeric constants 2018-11-03 15:12:12 +01:00
Adam Kelly f587221401 Separate get_method (magic methods) and get_attribute (full attribute access). 2018-11-02 17:16:46 +00:00
Windel Bouwman 89a280e5b2 Move a lot of functions from vm to frame for generator support 2018-10-23 23:34:29 +02:00
Windel Bouwman 59aa249783 Merge pull request #172 from rmliddle/sysmodule-additions
Adds args accessible via the sysmodule
2018-10-20 09:59:48 +02:00
rmliddle a099361cf2 formatting changes 2018-10-20 11:44:18 +11:00
rmliddle 064765315d pass of args for clap, pop first arg 2018-10-20 10:36:49 +11:00
Éloi Rivard 809e320ee3 Minor repl fix 2018-10-18 10:21:26 +02:00
Windel Bouwman a450c0e3da Add builtin type set 2018-10-17 17:14:46 +02:00
Éloi Rivard ba9483d96c Restored the 5> in the repl prompt 2018-10-16 23:01:38 +02:00
Éloi Rivard 4e72c5204f Basic repl based on rustyline 2018-10-16 20:57:51 +02:00
Windel Bouwman 3eafcbec3d Add decorator functionality 2018-10-14 20:04:19 +02:00
Windel Bouwman ce91a25106 Added -m option to main program. 2018-10-13 11:17:09 +02:00
Windel Bouwman bc60969091 Update formatting and readme file 2018-10-13 09:44:42 +02:00
Almar Klein 2330534fff improve multiline command behavior + setup for using sys.ps1 and sys.ps 2018-10-10 14:41:45 +02:00
Almar Klein c95caa1e6e Fix multiline input on Windows 2018-10-10 14:02:10 +02:00
Almar Klein 22a961075b Improve behavior wrt errors during import 2018-10-10 13:32:47 +02:00
Daniel Watkins 5a68005388 Remove needless .ok() calls in main.rs 2018-09-11 00:11:03 -04:00
Daniel Watkins d88917f5a2 Remove needless clone of scope in main.rs 2018-09-11 00:11:03 -04:00
Daniel Watkins ea7f6b4d37 Pass a string slice around in main.rs
We only need to convert it to a String once we're passing it in to
compile::compile.
2018-09-11 00:11:03 -04:00
Windel Bouwman adf04a5452 Minor fixes 2018-08-29 20:34:54 +02:00
Windel Bouwman 2f3947808e Change print to use __str__ and add __str__ to object 2018-08-29 19:25:12 +02:00
Windel Bouwman 96ee1cce60 Add filename and row to traceback 2018-08-26 12:17:16 +02:00