Commit Graph

25 Commits

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