Dave Halter
278bc9d705
Fix generators.
2014-11-14 02:05:25 +01:00
Dave Halter
408eee50dd
Start fixing issues with for loops and += operations.
2014-11-12 14:54:52 +01:00
Dave Halter
65f182ff0d
Separate class for Generator and List Comprehensions.
2014-11-12 13:28:31 +01:00
Dave Halter
c326562c27
Implemented x if foo else y case.
2014-11-12 11:49:27 +01:00
Dave Halter
54c5591ccb
Progress with list comprehensions. There is now a separate class.
2014-11-12 11:42:31 +01:00
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
8200b68549
Fix for loops and for loops tuple assignments.
2014-11-06 17:21:00 +01:00
Dave Halter
d58046f38f
Changed normal precedence calculation.
2014-11-06 03:47:42 +01:00
Dave Halter
fae798adfe
Simplify precedence.factor_calculate.
2014-11-05 23:21:32 +01:00
Dave Halter
ca70d32f23
isinstance fixes
2014-11-05 22:14:38 +01:00
Dave Halter
fa0f4b1e00
Further small flow_analysis corrections. Keywords are only equal to other keywords if they are the same. Not in case of the same value anymore.
2014-11-05 21:29:54 +01:00
Dave Halter
186ce2b70a
Improve flow analysis a bit.
2014-11-05 19:18:45 +01:00
Dave Halter
1c09a90ac1
Disable usage of filter_private_variable for now.
2014-10-28 17:00:12 +01:00
Dave Halter
4f2223ae7b
Super is now working. Still has the same flaws like the old implementation, but the tests are passing.
2014-10-28 16:22:59 +01:00
Dave Halter
7532f52cdd
Understanding implicit tuple returns (testlist)
2014-10-25 12:50:51 +02:00
Dave Halter
22cb3ca5f0
subscriptable errors.
2014-10-25 11:34:16 +02:00
Dave Halter
4384e938e9
Get a few more things right with params.
2014-10-25 02:25:09 +02:00
Dave Halter
e2a07752fd
'.NAME' lookups.
2014-10-22 02:33:35 +02:00
Dave Halter
34f3ea6973
More and probably the last tuple assignment stuff.
2014-10-22 02:29:47 +02:00
Dave Halter
297bcf6e19
Parentheses without commas are no tuples.
2014-10-22 02:10:48 +02:00
Dave Halter
6a8b840b29
Be able to differentiate tuple/list/dict.
2014-10-22 01:42:21 +02:00
Dave Halter
5b29e2c54d
Add a method 'Name.assignment_indexes', to process tuple assignments.
2014-10-21 15:45:29 +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
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
c821b30017
Fix a first test: complex.py
2014-10-20 17:06:18 +02:00
Dave Halter
43e3452474
Fix more argument related stuff.
2014-10-20 16:34:17 +02:00
Dave Halter
1a639bd118
Arguments move to params.
2014-10-20 15:43:56 +02:00
Dave Halter
74d4fcf4e7
globals are more or less ready.
2014-10-17 18:48:07 +02:00
Dave Halter
887949e23f
Start making executions work.
2014-10-16 10:58:27 +02:00
Dave Halter
631aa0ea61
Processing atom and power nodes.
2014-10-15 13:40:56 +02:00
Dave Halter
54c91b1509
Get a first local test passing.
2014-10-10 12:07:08 +02:00
Dave Halter
3bf1fec568
Start implementing an algorithm for actually evaluating the parser tree.
2014-10-10 11:29:22 +02:00
Dave Halter
27444ed64d
Remove Import.alias_name_part, it was simply an alias for another lookup.
2014-09-26 16:32:36 +02:00
Dave Halter
03e01631cc
Remove NamePart from existance and rename it to Name.
2014-09-26 16:29:53 +02:00
Dave Halter
59225ceaa3
usages issues.
2014-09-25 00:14:43 +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
99d35e57b6
Fix alias usages in goto_assignments.
2014-09-19 13:42:47 +02:00
Dave Halter
ed56f73836
Care for nested imports in goto_assignments.
2014-09-19 12:14:29 +02:00
Dave Halter
b2342c76be
Refactoring: Make Import.get_all_import_names return NameParts.
2014-09-19 01:40:09 +02:00
Dave Halter
83d2af5138
First imports are working with goto.
2014-09-19 01:21:17 +02:00
Dave Halter
7b0bb83d16
Change the behavior of eval_statement_element and follow_call_path. Arrays should only be looked at in the latter.
2014-09-18 23:44:11 +02:00
Dave Halter
69e6139527
Goto on named params in class calls is now working.
2014-09-18 20:11:58 +02:00
Dave Halter
657a2c7d4f
Trying to get the NameFinder to use only NameParts.
2014-09-10 16:20:30 +02:00
Dave Halter
38f7296f39
Typo.
2014-09-09 16:51:46 +02:00
Dave Halter
87aa76678a
Goto should work on named params, too.
2014-09-09 16:48:53 +02:00
Dave Halter
5a3ee02399
Use ExprStmt pretty much everywhere where it should be used.
...
ExprStmt is now really a normal statement. All the other statements are from now on considered legacy code. As a side effect this increases the parser pickling version.
2014-09-06 11:13:58 +02:00
Dave Halter
06699993f1
Class inheritance definitions shouldn't be params. It's just statements.
2014-09-04 12:28:50 +02:00