Commit Graph

1690 Commits

Author SHA1 Message Date
Cauê Baasch de Souza
e973000699 Correctly handle negative numbers in bin and hex 2018-10-26 14:14:48 -03:00
Cauê Baasch de Souza
b28be9b186 Use objint::get_value in bin and hex 2018-10-26 14:01:42 -03:00
Cauê Baasch de Souza
986763579c Add tests for bin and hex 2018-10-26 00:29:44 -03:00
Cauê Baasch de Souza
c46d2474d4 Implement hex builtin function 2018-10-26 00:13:15 -03:00
Cauê Baasch de Souza
d779d16faa Implement bin builtin function 2018-10-26 00:12:53 -03: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
Windel Bouwman
fca3e7a6ae Merge pull request #165 from azmeuk/membership
Membership test fixes, and set implementation
2018-10-17 20:25:33 +02:00
Windel Bouwman
96d35ad4f9 Generalize comprehensions for list, dict and set. 2018-10-17 20:10:26 +02:00
Éloi Rivard
b18156ac21 Added set object membership test 2018-10-17 19:39:17 +02:00
Éloi Rivard
2f29798ced Fixed __contains__ comparison on lists, tuples and iter objects 2018-10-17 19:26:24 +02:00
Windel Bouwman
a450c0e3da Add builtin type set 2018-10-17 17:14:46 +02:00
Windel Bouwman
77a4369b61 Merge pull request #164 from azmeuk/max
max and min snippets
2018-10-17 16:32:29 +02:00
Windel Bouwman
438bb45a74 Merge pull request #163 from azmeuk/membership
Basic membership implementation
2018-10-17 16:31:14 +02:00