Commit Graph

597 Commits

Author SHA1 Message Date
Windel Bouwman
57dbfd16af Merge pull request #177 from BojanKogoj/bojan/objfloat-__lt__
Added __lt__ for float
2018-10-27 22:23:06 +02:00
Bojan
a2889f10e9 Added some tests 2018-10-27 22:08:39 +02:00
Bojan
6df02536c8 Removed unused line 2018-10-27 21:03:40 +02:00
Windel Bouwman
1d854a8fbb Modify isinstance call signature to take reference to a python reference. 2018-10-27 17:58:54 +02:00
Windel Bouwman
af1f8f9f13 Merge branch 'master' of https://github.com/RustPython/RustPython 2018-10-27 17:05:44 +02:00
Windel Bouwman
a3a427c252 Add 'yield from' syntax 2018-10-27 17:05:22 +02:00
Bojan
3077d7b22c Merge branch 'master' into bojan/objfloat-__lt__ 2018-10-27 15:57:00 +02:00
Windel Bouwman
068489b1c6 Merge pull request #178 from BojanKogoj/bojan/objfloat-__le__
Added __le__ for float
2018-10-27 15:50:32 +02:00
Bojan
89e03d0436 Added __le__ for float 2018-10-27 15:13:03 +02:00
Bojan
4bb412a9ab Added __lt__ for float 2018-10-27 13:14:35 +02:00
Windel Bouwman
29ce0cf2e7 Add support for if-filters in list comprehensions. 2018-10-27 11:35:46 +02:00
Windel Bouwman
b03dd623c7 Add raw strings to lexer. Add line break continuation to lexer. 2018-10-27 10:30:11 +02:00
Windel Bouwman
09e2c027cd Extend ast module with more nodes. Test send method on generators. 2018-10-24 16:02:59 +02:00
Windel Bouwman
babb8ed2f0 Deleted comparison based on objectkind 2018-10-24 12:02:16 +02:00
Windel Bouwman
c742909d51 First working implementation of generators. 2018-10-24 10:54:48 +02: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
acefe3841e Add initial generator builtin type 2018-10-23 21:27:40 +02:00
Windel Bouwman
399f383841 Merge pull request #175 from rmliddle/wasm-steps
(Very) basic wasm crate + instructions
2018-10-23 19:25:10 +02:00
rmliddle
1c376252a4 changed wording on wasm build instructions 2018-10-23 21:30:32 +11:00
rmliddle
683827d2b2 readme fix 2018-10-23 21:29:11 +11:00
rmliddle
ded30f8319 formatting and readme changes 2018-10-23 20:48:41 +11:00
rmliddle
edbac92160 basic instructions wasm build 2018-10-23 20:31:05 +11:00
Windel Bouwman
1222830678 Implement star arg on left hand side of assignment. 2018-10-22 21:52:06 +02:00
rmliddle
c2f5394c75 binary crate + index.html for wasm build 2018-10-22 23:07:25 +11:00
Windel Bouwman
104bc56bc1 Add hash builtin function. 2018-10-21 23:33:06 +02:00
Windel Bouwman
525807c319 Add __getitem__ on list, tuple and str 2018-10-21 21:09:38 +02:00
Windel Bouwman
f59f8a9567 Add support for *args and **kwargs in functions. 2018-10-21 20:48:08 +02:00
Windel Bouwman
940c41bda8 Reduce lalrpop generated code size by about half. Relates to issue #173. 2018-10-21 16:01:39 +02:00
Windel Bouwman
bc23e60962 Add generator expression syntax 2018-10-20 12:16:18 +02:00
Windel Bouwman
c54e4434a1 Merge branch 'master' of https://github.com/RustPython/RustPython 2018-10-20 11:47:30 +02:00
Windel Bouwman
ae768c7fe6 Add parsing for star arg parameters. 2018-10-20 11:47:23 +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
95d7a4d417 removed unused imports 2018-10-20 11:47:36 +11: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
Windel Bouwman
e92ba94c61 Modify ast regarding keyword arguments. 2018-10-19 22:45:24 +02:00
Windel Bouwman
2035f5404d Add exec builtin function 2018-10-19 21:59:19 +02:00
Windel Bouwman
8f3e1a3b25 Add error handling to compiler. 2018-10-19 20:51:50 +02:00
Windel Bouwman
7e45d0b8b4 Add del statement 2018-10-19 18:41:44 +02:00
Windel Bouwman
f7fc9a8020 Move min/max test snippets to own directory to pass current tests. 2018-10-18 23:22:45 +02:00
Windel Bouwman
46251d4aa1 Merge pull request #167 from azmeuk/builtins_unimplemented
Snippet showing unimplemented methods in builtin types
2018-10-18 23:03:48 +02:00
Windel Bouwman
db38b4a4c5 Merge pull request #168 from azmeuk/repl
Minor repl fix
2018-10-18 23:02:15 +02:00
Windel Bouwman
fb92b56e4a Merge pull request #171 from aeroaks/master
Added test for capitalize method to string
2018-10-18 23:01:31 +02:00
Akshay Verma
4da6c94602 Added test for capitalize method to string 2018-10-18 16:46:43 +02:00
Akshay Verma
8c04cb5dc3 Added tests for capitalize method to string 2018-10-18 16:25:27 +02:00
Akshay Verma
fad493c79f Added capitalize method to string 2018-10-18 16:14:35 +02:00
Éloi Rivard
809e320ee3 Minor repl fix 2018-10-18 10:21:26 +02:00
Éloi Rivard
3f8116f434 Snippet showing unimplemented methods in builtin types 2018-10-17 22:09:01 +02:00
Windel Bouwman
e334941728 Removal of Clone trait on ast nodes. Should reduce codesize somewhat. 2018-10-17 22:04:02 +02:00
Windel Bouwman
5707548436 Add set.add method 2018-10-17 21:08:46 +02:00