Commit Graph

40 Commits

Author SHA1 Message Date
Windel Bouwman
291ffd2671 Add support for ascii formatting of f-strings. 2019-08-19 11:27:13 +02:00
coolreader18
286051383e impl std::str::FromStr for compile::Mode 2019-08-13 12:35:07 -05:00
coolreader18
4f9a71ff89 Change compile::compile() to take a Mode instead of an &Mode 2019-08-13 12:34:39 -05:00
Windel Bouwman
f7320cf545 Move Scope struct to its own file, making the frame module private in the process. 2019-07-23 20:39:47 +02:00
Windel Bouwman
e922a6a952 Fix trailing newline issue #17 2019-07-21 14:00:55 +02:00
Windel Bouwman
f919ed0137 Extend symtable module. 2019-07-19 22:05:35 +02:00
Windel Bouwman
215308d474 Add initial draft of symtable module. 2019-07-16 22:04:38 +02:00
Windel Bouwman
704b15750e Add optimize flag to ignore assert statements. 2019-07-12 18:41:25 +02:00
Windel Bouwman
3954dbe716 Make parser and compiler optional features for vm crate. 2019-06-30 20:11:40 +02:00
Windel Bouwman
e40c844be7 Make bytecode crate independent of parser crate. 2019-06-30 11:42:36 +02:00
coolreader18
aefbae40e4 Revert "Make CodeObject.source_path an Option<String>" 2019-06-20 12:01:20 -05:00
coolreader18
b74b65d37e Make CodeObject.source_path an Option<String> 2019-06-16 19:59:04 -05:00
coolreader18
45bb2bd263 Split off bytecode compilation into a separate crate 2019-06-12 21:43:43 -05:00
Jeong YunWon
509394080b Inject __builtins__ to scope only when it doesn't exist 2019-05-11 03:05:18 +09:00
ben
d24dd170e9 Changes to RustPython to support importing and running unittest 2019-04-14 12:09:54 +12:00
ben
6fa059fd6c Make PyObject.typ a PyClassRef 2019-03-24 10:51:52 +13:00
coolreader18
a9051ab462 Convert all &mut VirtualMachine to &VirtualMachine 2019-03-22 01:48:14 -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
Joey
df76ffe116 Replace most relative imports with 2018-style crate 2019-02-20 08:50:53 -08:00
janczer
b9daabfc94 Remove return, use function without closure 2019-02-15 20:43:20 +01:00
holygits
570b28439a Fix tests 2019-02-14 12:31:20 +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
Adam Kelly
769b889097 Source path should always be set, make it non-optional for code object. 2019-02-09 12:22:51 +00:00
Windel Bouwman
7096434f95 Implement some clippy tips 2019-02-04 17:17:54 +01:00
Almar Klein
22a961075b Improve behavior wrt errors during import 2018-10-10 13:32:47 +02:00
Daniel Watkins
23910f78e7 Accept slices to function calls
Instead of allocated types, per [0].

[0] https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#ptr_arg
2018-09-11 15:05:33 -04: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
Daniel Watkins
a9653931b7 Fix warnings emitted during cargo test 2018-08-10 17:13:27 -04:00
Windel Bouwman
131c34a96b Fix build 2018-08-04 12:38:40 +02:00
Windel Bouwman
f7aa1dd822 Remove executor trait since we can have mutual includes 2018-08-01 22:22:19 +02:00
Windel Bouwman
b9adb4e926 Add environment thingy 2018-07-28 17:42:45 +02:00
Windel Bouwman
000f889222 Add compile builtin 2018-07-18 14:45:53 +02:00
Windel Bouwman
476edb509c Store local variables in REPL 2018-07-16 22:53:36 +02:00
Windel Bouwman
5783133565 Add eval and exec compile modes 2018-07-14 15:17:19 +02:00
Windel Bouwman
e6493ec996 Add new_instance method 2018-07-14 12:14:16 +02:00
Windel Bouwman
cafc9edf35 Formatting of code 2018-07-13 20:42:58 +02:00