Commit Graph

54 Commits

Author SHA1 Message Date
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
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
b653b96a46 Autoformatting 2018-07-15 13:16:00 +02:00
Windel Bouwman
36bef81ceb Change eval compile to statement 2018-07-14 16:03:50 +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
Windel Bouwman
3349e24aad Early import mechanics 2018-07-11 23:33:59 +02:00
Windel Bouwman
14c928ff1d move evaluate function into virtual machine 2018-07-11 18:19:32 +02:00
Windel Bouwman
65c3ff54b0 New idea for object system 2018-07-11 17:33:10 +02:00
Windel Bouwman
2354102795 Add interactive shell 2018-07-09 22:06:49 +02:00
Windel Bouwman
7d20869dc0 Fix return value from function 2018-07-08 21:03:25 +02:00
Windel Bouwman
ed4557fec5 Added cool script to test snippets in both implementations 2018-07-08 19:57:53 +02:00
Windel Bouwman
62cb3e2474 Add slice object 2018-07-08 12:38:55 +02:00
Windel Bouwman
3f98e3c64a Reverse dependency between vm and cpython bytecode adapter 2018-07-07 23:19:06 +02:00
Windel Bouwman
8470254f07 Move last compiler / vm pieces out of parser crate 2018-07-07 17:44:30 +02:00
Windel Bouwman
4be77bcbc7 Remove unused compiler namespace in parser 2018-07-07 17:36:21 +02:00
Windel Bouwman
2a67f2211c Try to emit proper bytecode 2018-07-03 20:30:54 +02:00
Windel Bouwman
7a719190f3 Move compiler function to top level and try to emit code 2018-07-03 19:38:09 +02:00