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
Dave Halter
79e2ec85cc
implement slicing for __getitem__ with interpreter
2014-04-04 15:09:25 +02:00
Dave Halter
50ef3c7fa3
implement __getitem__ access for CompiledObject
2014-04-04 12:59:16 +02:00
Dave Halter
f7e236971b
moved the input of get_index_types to a more typical type system
2014-04-04 12:09:46 +02:00
Dave Halter
84fde13b84
implemented a first prototype of a slicing and index creation function
2014-04-03 21:10:42 +02:00
Dave Halter
394e2e77de
refactored the development docs, which was badly needed especially since evaluate/dynamic.py doesn't contain a lot of functionality anymore.
2014-03-11 17:26:38 +01:00
Dave Halter
6c5e91da69
some code - just written for @dbrgn
2014-03-10 23:08:09 +01:00
Dave Halter
e587b876b6
tests and improvements for __next__ and send generator methods
2014-01-23 20:02:36 +01:00
Dave Halter
162d794081
underscore_decorators now automatically convert generators to lists
2014-01-23 15:21:52 +01:00
Dave Halter
a1b68945ed
fix some generator parents
2014-01-23 14:27:20 +01:00
Dave Halter
d5aa36cc69
replace propery with safe_property in some evaluate cases. fixes #249
2014-01-15 15:07:06 +01:00
Dave Halter
99882724da
is_py3k -> is_py3
2014-01-14 11:43:56 +01:00
Dave Halter
cdd356ff9b
removed pr.String and pr.Number in favor of the more general pr.Literal
2014-01-13 16:47:01 +01:00
Dave Halter
682e1c2708
debug.dbg and debug.warning now take a string and format args parameters to make debugging a little bit cleaner
2014-01-13 16:16:07 +01:00
Dave Halter
83b490dd6d
PyObject -> CompiledObject, PyName -> CompiledName
2014-01-13 14:09:03 +01:00