Dave Halter
cc661473bc
Trying to change used_names, so that they don't contain name definitions from CompFor.
2014-11-11 17:13:27 +01:00
Dave Halter
460d959988
Implicit tuples as a separate class.
2014-11-06 18:24:55 +01:00
Dave Halter
c0768924f6
Managed to get dict inputs working into kwargs. This was wrong in the old version of the parser.
2014-10-27 01:07:15 +01:00
Dave Halter
8df8749f22
Dict key that are not in dict should return all value types.
2014-10-27 00:19:31 +01:00
Dave Halter
e4124fcf9a
More dynamic *args
2014-10-25 15:58:09 +02:00
Dave Halter
7532f52cdd
Understanding implicit tuple returns (testlist)
2014-10-25 12:50:51 +02:00
Dave Halter
de4db11d25
Reading dicts works now.
2014-10-23 16:21:23 +02:00
Dave Halter
51ffc54471
Temporary params of class solution.
2014-10-23 14:41:01 +02:00
Dave Halter
34f3ea6973
More and probably the last tuple assignment stuff.
2014-10-22 02:29:47 +02:00
Dave Halter
d119902496
Slices
2014-10-21 13:36:56 +02:00
Dave Halter
ab53942e55
Start working with arithmetics.
2014-10-21 12:18:03 +02:00
Dave Halter
2eed6b7b5f
Unaccessible array indexes should still produce results.
2014-10-21 12:03:01 +02:00
Dave Halter
8f3b7f9d44
A first array test passing.
2014-10-21 11:58:53 +02:00
Dave Halter
fb2ef5a7a0
Start using arrays.
2014-10-21 11:05:12 +02:00
Dave Halter
03e01631cc
Remove NamePart from existance and rename it to Name.
2014-09-26 16:29:53 +02:00
Dave Halter
ce3ec6b534
Finally remove ArrayMethod and use an InstanceElement instead (which it basically is).
2014-09-26 12:08:04 +02:00
Dave Halter
6819deb404
Resolve some **kwargs issues.
2014-09-22 23:06:22 +02:00
Dave Halter
dae1a48d70
Remove a lot of the old Name.names usages in favor of a direct NamePart usage.
2014-09-22 22:34:33 +02:00
Dave Halter
8f3301f281
Passing Function tests now.
2014-09-22 14:06:38 +02:00
Dave Halter
d4503c77a5
get_parent_until should always have the same signature.
...
Fix it for ArrayMethod.get_parent_until.
2014-09-19 16:17:05 +02:00
Dave Halter
1fb9b4bc6b
Completion now always takes a NamePart as input.
2014-09-10 18:59:08 +02:00
Dave Halter
a93a389d5c
Fix all the normal issues with the NameFinder change. Now goto...
2014-09-10 16:30:22 +02:00
Dave Halter
1199defabb
Start to use NameParts only in Definition contexts.
2014-09-09 14:13:10 +02:00
Dave Halter
f57d9ef675
Rename Name.get_parent_stmt to Name.get_definition, because it's not always a statement. Also start using it in the NameFinder.
2014-09-06 10:43:26 +02:00
Dave Halter
d6dd7cd55e
Move process_precedence_element from the Evaluator to the precedence module.
2014-08-20 15:59:37 +02:00
Dave Halter
0e66aef511
Use IterableWrapper in the iterable module to be able to add methods like is_class quickly.
2014-08-20 14:01:41 +02:00
Dave Halter
33e5a3280a
Remove IsScope in favor of an is_scope function.
...
This function was partially implemented anway. Now we've also added a function called 'get_parent_scope', to make it easy to get a scope of a Call, Statement, whatever.
2014-08-12 01:19:19 +02:00
Dave Halter
f1711f8f9c
possible direction of branch checks for name resolution.
2014-08-10 13:17:37 +02:00
Dave Halter
0fbd5efefd
wrap instance element creation so that it only contains functions and statements, not CompiledObject or Instance.
2014-07-31 13:16:11 +02:00
Dave Halter
cf63d20988
get rid of the evaluate_generator param
2014-07-30 16:36:27 +02:00
Dave Halter
e58dc0a3d9
simplify evaluator.execute, because now everything is using py__call__
2014-07-30 15:40:10 +02:00
Dave Halter
373ff2c45a
fix most issues related to the py__call__ stuff and generalize it.
2014-07-30 15:23:41 +02:00
Dave Halter
1e6a950aec
further progress in changing to py__call__
2014-07-30 14:40:56 +02:00
Dave Halter
22e5574a91
Remove some get_defined_names methods, that are not needed anymore.
2014-07-03 12:12:50 +02:00
Dave Halter
ea370a083d
more consequent usage of scope_names_generator
2014-07-03 11:41:33 +02:00
Dave Halter
a7e4d81692
also add scope_names_generator to the iterable module classes, as well as cleaning up some old scope_names_generator stuff
2014-07-02 18:58:31 +02:00
Dave Halter
aba4a16ae3
fix indexing issues for multiple index options
2014-06-27 11:23:46 +02:00
Dave Halter
f8b79b3dd0
work in progress refactoring to make ListComprehension a sublass of ForFlow
2014-06-12 10:13:49 +02:00
Dave Halter
af801ef9b4
make generator comprehensions work
2014-06-10 00:36:36 +02:00
Dave Halter
0b926ca454
get rid of is_list_comp boolean in favor of a direct check of ListComprehensionFlow
2014-06-09 20:19:31 +02:00
Dave Halter
cb430c4c36
add a merged array class to account for array additions
2014-06-06 02:51:48 +02:00
Dave Halter
64af9524b7
simple generator static analysis subscript check
2014-05-12 16:06:28 +02:00
Dave Halter
b6ec589997
refactor general array lookup method get_index_types
2014-05-12 15:23:48 +02:00
Dave Halter
44d8abb198
fix for the recursive ArrayInstance issues.
2014-04-30 12:20:28 +02:00
Dave Halter
8dc7f6a771
small NO_DEFAULT fix for a memoize issue with iterable.Array
2014-04-22 10:29:06 +02:00
Dave Halter
2a0423302c
small evaluate.iterable.Array optimization
2014-04-22 10:13:23 +02:00
Dave Halter
eaf54942fc
fix a slice issue with precedences.
2014-04-21 02:30:17 +02:00
Dave Halter
240b0c9581
NamePart doesn't have an __eq__ method anymore
2014-04-18 14:36:10 +02:00
Dave Halter
ff810d9ece
cache compiled.CompiledObject.defined_names attribute, improves test suite performance by 20%, numpy by more than 50%. Awesome!
2014-04-14 02:20:22 +02:00
Dave Halter
3fced34544
the last commit featured an incomplete caching for compiled objects. The current one should improve this.
2014-04-13 21:55:29 +02:00