Daniel Watkins
705c1c7dee
Implement stepped slicing for strings
2018-08-03 20:56:47 -04:00
Daniel Watkins
862442b635
Simplify the conversion of missing slice parts to None
2018-08-03 20:55:18 -04:00
Daniel Watkins
73b2d07578
Support parsing steps in slice syntax
2018-08-03 20:55:18 -04:00
Windel Bouwman
e1ce670d4b
Merge pull request #22 from OddBloke/locals_trace
...
Output locals mapping in trace logging
2018-08-03 17:23:47 +02:00
Daniel Watkins
3b81f806ab
Retain the previous locals output format
2018-08-02 19:18:35 -04:00
Daniel Watkins
e768f06d94
Panic on unexpected locals instead of just logging
2018-08-02 19:14:26 -04:00
Daniel Watkins
b95c473121
Output locals mapping in trace logging
...
The Locals line in the Frame Object output is now, for example:
Locals: {"num": RefCell { value: [PyObj int 9] }, "f": RefCell { value: [PyObj function] }}
2018-08-02 15:38:20 -04:00
Windel Bouwman
eb2cc5b055
Change rt to vm and change args into an object holding both args and kwargs
2018-08-02 17:28:33 +02:00
Windel Bouwman
f7aa1dd822
Remove executor trait since we can have mutual includes
2018-08-01 22:22:19 +02:00
Windel Bouwman
4b2f86dbf2
Merge pull request #19 from OddBloke/dash_c
...
Enable semi-colon separated statements
2018-08-01 17:45:55 +02:00
Windel Bouwman
97c5ec1105
Merge pull request #20 from OddBloke/workspace
...
Make repo a workspace and run tests for all components in Travis
2018-08-01 17:44:44 +02:00
Windel Bouwman
6deafa1d28
Merge pull request #21 from OddBloke/import_with_builtins
...
Use a scope (with builtins) for module import
2018-08-01 17:41:28 +02:00
Daniel Watkins
f11b4fa6ca
Rename import argument to reflect changed type
2018-07-31 22:44:12 -04:00
Daniel Watkins
1bb6ead060
Use a scope (with builtins) for module import
...
This allows modules to use builtins (such as print). This fixes, for
example, `cargo run -- -c 'import demo'`.
2018-07-31 22:44:12 -04:00
Daniel Watkins
02acfd91fc
Make repo a workspace and run tests for all components in Travis
2018-07-31 16:43:24 -04:00
Daniel Watkins
43fafa5102
Enable semi-colon separated statements
...
For example, `cargo run -- -c 'print("a"); print("b")'`.
2018-07-31 16:33:27 -04:00
Windel Bouwman
03bda855e7
Clean test code
2018-07-31 22:11:40 +02:00
Windel Bouwman
188798ac2b
Merge pull request #18 from OddBloke/dash_c
...
Add a -c option to main.rs
2018-07-31 21:46:20 +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
dbae0b0a71
Add builtin id function
2018-07-31 14:28:19 +02:00
Windel Bouwman
794313cadb
Merge pull request #16 from nyirog/master
...
vm/import: add module name to the message of NotFound error
2018-07-30 21:01:56 +02:00
Windel Bouwman
099595bf17
Merge pull request #15 from wulmer/feature/windows-and-mac-eol-characters
...
Add support for Windows/Mac EOL characters in lexer
2018-07-29 17:15:49 +02:00
Nyiro Gergo
77e80bc42c
vm/import: add module name to message of NotFound error
2018-07-29 10:43:10 +02:00
Adam Kelly
69dd261fe4
Merge branch 'warnings_cleanup'
2018-07-29 09:26:10 +01:00
Adam Kelly
e79ec8e4cb
Suppress unused variable warnings.
2018-07-29 09:06:56 +01:00
Adam Kelly
12a3ff5e7e
Deal with warnings for Ellipsis and Rarrow
2018-07-29 09:06:56 +01:00
Ulmer Wolfgang (CR/AEE3)
d168156375
Add support for Windows/Mac EOL characters in lexer
2018-07-28 22:00:46 +01:00
Windel Bouwman
86ebe8bb96
Added closures
2018-07-28 18:43:23 +02:00
Windel Bouwman
b855b5fc7a
Add scope object to to_str function
2018-07-28 18:21:30 +02:00
Windel Bouwman
d74f6f55d3
Merge branch 'master' of github.com:RustPython/RustPython
2018-07-28 17:42:49 +02:00
Windel Bouwman
b9adb4e926
Add environment thingy
2018-07-28 17:42:45 +02:00
Windel Bouwman
cc7770491d
Merge pull request #14 from nyirog/master
...
vm/import: support package import
2018-07-28 17:28:04 +02:00
Nyiro Gergo
0bb3a4a01c
vm/import: support package import
...
Module of the package cannot be imported directly yet.
2018-07-28 17:11:55 +02:00
Windel Bouwman
cdd0c29b78
Merge pull request #13 from cthulahoops/warnings_cleanup
...
Fix warnings in main.rs.
2018-07-28 14:35:50 +02:00
Adam Kelly
59ed5405f4
Fix warnings in main.rs.
2018-07-28 12:29:13 +01:00
Windel Bouwman
ea0e25fd3b
Merge pull request #12 from cthulahoops/lambdas
...
Lambdas and pass arguments to functions.
2018-07-28 13:12:00 +02:00
Adam Kelly
b917efa8a8
Add compilation of lambdas and support function arguments.
2018-07-28 11:57:41 +01:00
Adam Kelly
976c1f4340
Update lexer and parser to support lambdas.
2018-07-28 10:09:08 +01:00
Windel Bouwman
fd4452912b
Merge pull request #10 from cthulahoops/string_literal_escapes
...
Add support for a escape sequence in string literals to lexer.
2018-07-28 10:03:06 +02:00
Adam Kelly
a6785c8d72
Add support for a escape sequence in string literals to lexer.
...
(\u, \x and octals not supported.)
2018-07-27 10:43:48 +01:00
Windel Bouwman
e7cc6b1786
Add else clause to for loop
2018-07-24 22:30:45 +02:00
Windel Bouwman
4a96783b54
Merge pull request #9 from yodalee/add-bool-constant
...
Add bool constant
2018-07-20 21:57:28 +02:00
Windel Bouwman
2d2ee85bf6
Change block stack unwind a little bit
2018-07-19 21:57:14 +02:00
yodalee
ea1b197831
add boolean constant
...
following program become runnable:
if True:
print(1)
2018-07-19 21:33:41 +08: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
de29e7fdc7
Add spiffy dir function
2018-07-18 11:40:43 +02:00
Windel Bouwman
bbc19305f8
Reduce dependencies of vm and parser crates
2018-07-18 10:22:00 +02:00
Windel Bouwman
476edb509c
Store local variables in REPL
2018-07-16 22:53:36 +02:00