Commit Graph

73 Commits

Author SHA1 Message Date
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
Daniel Watkins
767ceaefb5 Start storing the source_path of a code object
This will be required for (at least) import and exception display.
2018-08-25 19:45:19 -04:00
Daniel Watkins
2a90df80c8 Run cargo fmt to format the entire project 2018-08-10 20:23:15 -04:00
Adam Kelly
5714cf14cf Interpreter - read until empty line after first continuation. 2018-08-05 10:08:32 +01:00
Adam Kelly
c6ef62ceac Improved interpreter using compile single and with multiline input. 2018-08-04 20:47:34 +01:00
Windel Bouwman
0f4f130d08 Add early sys module 2018-08-04 10:59:13 +02:00
Windel Bouwman
f7aa1dd822 Remove executor trait since we can have mutual includes 2018-08-01 22:22:19 +02:00
Daniel Watkins
ca842d0813 Add -c option to main.rs
This option takes a string which it runs as a program.
2018-07-31 14:35:14 -04:00
Daniel Watkins
d50d920866 Refactor script running to separate method 2018-07-31 14:22:45 -04:00
Windel Bouwman
b9adb4e926 Add environment thingy 2018-07-28 17:42:45 +02:00
Adam Kelly
59ed5405f4 Fix warnings in main.rs. 2018-07-28 12:29:13 +01:00
yodalee
2b28390153 resume debug code object print at startup
Impl more detail debug message for pyobject kind
2018-07-19 21:33:09 +08:00