Commit Graph

7723 Commits

Author SHA1 Message Date
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
Éloi Rivard
abf113798f Added builtin max and min snippets 2018-10-17 14:06:25 +02:00
Éloi Rivard
e415ee1fbf Basic membership implementation 2018-10-17 13:57:38 +02:00
Windel Bouwman
7f263d14f3 Implement multilevel list comprehensions 2018-10-17 13:28:52 +02:00
Windel Bouwman
c9aa103cce Change target of for loops into single expression. 2018-10-17 13:12:04 +02:00
Windel Bouwman
6105a836ad Initial variant of list comprehensions 2018-10-17 12:05:10 +02:00
Windel Bouwman
adfb750129 Added ternary if operator 2018-10-17 08:45:16 +02:00
Windel Bouwman
c7b4984ae8 Merge pull request #161 from azmeuk/5>
Restored the 5> in the repl prompt
2018-10-16 23:30:49 +02:00
Windel Bouwman
c4bdb63af0 Merge branch 'master' of https://github.com/RustPython/RustPython 2018-10-16 23:26:47 +02:00
Windel Bouwman
7728ee1e63 Minor change to keyword arguments in function call 2018-10-16 23:26:37 +02:00
Éloi Rivard
ba9483d96c Restored the 5> in the repl prompt 2018-10-16 23:01:38 +02:00
Windel Bouwman
de6fabfa1f Merge pull request #160 from azmeuk/repl
Basic repl based on rustyline
2018-10-16 22:02:04 +02:00
Windel Bouwman
50fdda4900 Merge pull request #154 from cgm616/builtins
Add max and min builtins
2018-10-16 21:52:17 +02:00
Windel Bouwman
950ef7e86f Merge branch 'master' into builtins 2018-10-16 21:51:42 +02:00
Windel Bouwman
75d73e6263 Merge pull request #159 from azmeuk/builtin_ord
builtin ord basic implementation. Fixes #151
2018-10-16 21:43:07 +02:00
Éloi Rivard
4e72c5204f Basic repl based on rustyline 2018-10-16 20:57:51 +02:00
Éloi Rivard
3e7f168359 builtin ord basic implementation. Fixes #151 2018-10-16 19:17:49 +02:00
rmliddle
302784df51 sysmod.argv added + snippet 2018-10-16 23:02:09 +11:00