Commit Graph

  • db76bbccc5 Trying to change the symbols in node. They are now strings. Dave Halter 2014-11-24 01:51:14 +01:00
  • 9f45f18ad1 Added a grammar param to the parser. Dave Halter 2014-11-24 01:10:39 +01:00
  • c152a1c58b Actually replace tree with representation (in all the imports). Dave Halter 2014-11-23 19:46:52 +01:00
  • 1fbc4c9196 Change parser.representation to parser.tree. It's shorter and says more. Dave Halter 2014-11-23 19:35:46 +01:00
  • ac41c31015 Removed more of the old parser representation code. Dave Halter 2014-11-23 19:33:18 +01:00
  • 9b54541cae Remove quite a bit of the old parser representation logic. Dave Halter 2014-11-23 19:26:30 +01:00
  • 0f21d38e2c Remove the old parser. Dave Halter 2014-11-23 19:17:50 +01:00
  • 267016f533 Function for evaluating functions with already executed arguments. Dave Halter 2014-11-23 19:12:25 +01:00
  • 8adfc47297 Fix some issues with params. Dave Halter 2014-11-23 12:22:03 +01:00
  • c10ec4f876 star arg iteration improved. Dave Halter 2014-11-23 11:59:20 +01:00
  • f1cbd45575 Usages are pretty solid now except for parser issues. Dave Halter 2014-11-22 15:43:23 +01:00
  • b82e1e28e5 Get at least some usages stuff right. Dave Halter 2014-11-22 02:05:36 +01:00
  • 22fbcf6c77 More goto improvements. Dave Halter 2014-11-21 15:45:17 +01:00
  • eb0bfb4381 get_code in Definition.description should not return first prefix. Dave Halter 2014-11-21 15:33:38 +01:00
  • f604066288 First small implementation of goto. Dave Halter 2014-11-21 14:21:00 +01:00
  • fd16dfe2c7 Fix the first part of sys path checks. Dave Halter 2014-11-21 01:46:18 +01:00
  • 11fa71bac8 Fixes for nested star imports. Dave Halter 2014-11-20 14:56:05 +01:00
  • 3b7454e294 copy fixes. Dave Halter 2014-11-20 14:51:01 +01:00
  • 83b09f6c1e Small issue with is_definition and params. Found by looking at stdlib/random.choice tests. Dave Halter 2014-11-20 14:48:14 +01:00
  • cc465364d3 Fixes towards better MergedArray and partial functions. Dave Halter 2014-11-20 13:33:05 +01:00
  • a6e1348757 type implementation. Dave Halter 2014-11-20 12:31:11 +01:00
  • f2e3a3d090 Just rebuilt reversed. Dave Halter 2014-11-20 11:56:54 +01:00
  • 53c2a1679c Fix types tests. Dave Halter 2014-11-20 11:16:52 +01:00
  • 2c3a7b6d6c Imports are not Statements. Dave Halter 2014-11-20 02:29:24 +01:00
  • 164518b993 Get docstrings working. Dave Halter 2014-11-20 02:19:01 +01:00
  • ce5d428d22 At least functions generate docstrings again. Dave Halter 2014-11-20 01:37:18 +01:00
  • 22b288fc73 Change docstring test function names, so that dynamic param completion doesn't interfere (especially because some of those files still generate parser errors). Dave Halter 2014-11-20 00:35:48 +01:00
  • b5418d9d73 Small issue with dynamic params. Dave Halter 2014-11-20 00:25:03 +01:00
  • e6364fdd8b Fix os.path issues. Dave Halter 2014-11-19 18:40:28 +01:00
  • ba0e61d99f Star imports are now part of the ModuleWrapper. Dave Halter 2014-11-19 18:09:49 +01:00
  • 08bdcfb8ca Small issue with relative imports that don't contain a path after from. Dave Halter 2014-11-19 15:22:18 +01:00
  • aeaf073ca2 Move some tests that targeted completion on import statements into a separate file. Dave Halter 2014-11-19 14:14:27 +01:00
  • bb9d6b4832 Temporarily disable on import completion. Not sure if we're going to do it with the normal parser. Dave Halter 2014-11-19 13:24:45 +01:00
  • c71646a9a0 Fixed relative imports. Dave Halter 2014-11-19 13:13:06 +01:00
  • 6c5f3419ff 'as' test and implementation for ImportName. Working pretty well. Dave Halter 2014-11-19 13:07:08 +01:00
  • e630eeb397 Care for import aliases better. Dave Halter 2014-11-19 12:45:39 +01:00
  • 1c240e75d3 Replace get_all_import_names with a leaf search method in Simple. Dave Halter 2014-11-19 01:31:08 +01:00
  • bab6788b42 split and improved Import*._paths Dave Halter 2014-11-19 00:45:20 +01:00
  • 3c6d5dafb1 Split Import, now there is ImportFrom and ImportName as it exists in the python grammar. Dave Halter 2014-11-19 00:40:16 +01:00
  • 535a69e499 Small improvments to from imports Dave Halter 2014-11-18 18:43:16 +01:00
  • 9d5f3162d7 More import stuff. Fake imports work a little bit better. Dave Halter 2014-11-18 18:22:26 +01:00
  • a4a767f8bb Import improvements. Dave Halter 2014-11-18 17:19:15 +01:00
  • b0109343e4 Jedi didn't care for decorator 'dotted_name' nodes and therefore descriptor tests failed. Dave Halter 2014-11-18 15:44:32 +01:00
  • 90ce1ac47f Simplify decorators, make them easier to read in debugging mode. Dave Halter 2014-11-18 15:04:20 +01:00
  • 6d866eb915 Small cleanup: Dynamic params comparison works now with the evaluator functions. Dave Halter 2014-11-18 13:28:24 +01:00
  • 78b7b8ffaf add a test that wasnt working with the old dynamic param lookup. Dave Halter 2014-11-18 13:08:27 +01:00
  • 93ffc799f5 Because of the change in dynamic params, we can now remove the decorator hack in the name finder. Dave Halter 2014-11-18 13:06:20 +01:00
  • f9276a8bd2 Fix issues with decorators and dynamic params combined. Dave Halter 2014-11-18 13:04:05 +01:00
  • 4fa78e3482 Fix the last remaining issue with decorators. Dave Halter 2014-11-17 23:59:38 +01:00
  • fd8752f285 Now most decorator tests pass. Dave Halter 2014-11-17 23:46:05 +01:00
  • f62f181066 First decorator implementations. Dave Halter 2014-11-17 22:24:54 +01:00
  • df5df1ccf5 FakeArray recursion issues. Dave Halter 2014-11-17 20:41:32 +01:00
  • d49a8fc073 The test runner should only start tests if the name starts with the same letters. Dave Halter 2014-11-17 17:56:43 +01:00
  • 9ac66261c9 Fi dynamic param stuff combined with list comprehensions. Dave Halter 2014-11-17 17:54:12 +01:00
  • ae3ff35674 Fix issues with buggy trailers in dynamic params. Dave Halter 2014-11-17 17:49:34 +01:00
  • b57e4c4e7c dynamic test descriptions. Dave Halter 2014-11-17 17:18:03 +01:00
  • 9054a3f674 Split dynamic tests into dynamic_params and dynamic_arrays. Dave Halter 2014-11-17 17:11:58 +01:00
  • da5273ce20 Fix issues with dynamic class parameter completion. Dave Halter 2014-11-17 17:07:32 +01:00
  • 259aa6bd5f First dynamic params working. Dave Halter 2014-11-17 16:22:47 +01:00
  • 22f20ec715 Treat executed params different from normal ones. Dave Halter 2014-11-17 13:35:16 +01:00
  • 2dfbc2a0fd Start to rework dynamic params. However goto is now needed first. Dave Halter 2014-11-17 12:34:32 +01:00
  • 0567a886c4 Fixed an issue with set literals. (The Array type was wrong before.) Dave Halter 2014-11-14 16:54:46 +01:00
  • fce715b867 By disabling dynamic arrays completely, arrays are now almost fully passing. Dave Halter 2014-11-14 16:43:53 +01:00
  • 7049ad58db Small fix for dict lookups. Dave Halter 2014-11-14 16:03:09 +01:00
  • 01178d30ea Disable dynamic array instances and fix an issue with missing the arguments class. Dave Halter 2014-11-14 15:55:02 +01:00
  • e64c78503e Fix some issues with array arguments. Dave Halter 2014-11-14 15:19:47 +01:00
  • 278bc9d705 Fix generators. Dave Halter 2014-11-14 02:05:25 +01:00
  • 13a128b160 global working. Dave Halter 2014-11-13 18:13:56 +01:00
  • f3c2b4fc33 Get with statements working. Dave Halter 2014-11-13 12:51:49 +01:00
  • 541b8872d0 Changed is_node so it can actually deal with InstanceElements. Dave Halter 2014-11-13 01:15:44 +01:00
  • 1ab67ebbba Fix except statements names. Dave Halter 2014-11-13 01:02:45 +01:00
  • 2fc67b97e5 Disable analysis for now. Dave Halter 2014-11-13 00:28:42 +01:00
  • f0a3c37fa0 __file__ should be listed as a module attribute. Dave Halter 2014-11-13 00:24:40 +01:00
  • 408eee50dd Start fixing issues with for loops and += operations. Dave Halter 2014-11-12 14:54:52 +01:00
  • 13c2279fea Make Generator tuple assignments work. Dave Halter 2014-11-12 13:48:08 +01:00
  • 65c18f143c Separate some Generator stuff. Dave Halter 2014-11-12 13:42:24 +01:00
  • 65f182ff0d Separate class for Generator and List Comprehensions. Dave Halter 2014-11-12 13:28:31 +01:00
  • f760a7755d Nested list comprehensions seem to be working pretty well. Dave Halter 2014-11-12 12:30:59 +01:00
  • c326562c27 Implemented x if foo else y case. Dave Halter 2014-11-12 11:49:27 +01:00
  • 54c5591ccb Progress with list comprehensions. There is now a separate class. Dave Halter 2014-11-12 11:42:31 +01:00
  • cc661473bc Trying to change used_names, so that they don't contain name definitions from CompFor. Dave Halter 2014-11-11 17:13:27 +01:00
  • 460d959988 Implicit tuples as a separate class. Dave Halter 2014-11-06 18:24:55 +01:00
  • 8200b68549 Fix for loops and for loops tuple assignments. Dave Halter 2014-11-06 17:21:00 +01:00
  • 3a9e9e29e1 Small pytree changes. Dave Halter 2014-11-06 14:17:34 +01:00
  • 00454daf57 change the new parser tests Dave Halter 2014-11-06 14:16:17 +01:00
  • aa0c73c9ab Fixed a few small things in the parser. Flow analysis is working again. Completely. Dave Halter 2014-11-06 04:41:16 +01:00
  • 56102e408e Small glitch with the change of return statements to loops in precedences. Dave Halter 2014-11-06 04:06:40 +01:00
  • d58046f38f Changed normal precedence calculation. Dave Halter 2014-11-06 03:47:42 +01:00
  • fae798adfe Simplify precedence.factor_calculate. Dave Halter 2014-11-05 23:21:32 +01:00
  • ca70d32f23 isinstance fixes Dave Halter 2014-11-05 22:14:38 +01:00
  • 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. Dave Halter 2014-11-05 21:29:54 +01:00
  • 186ce2b70a Improve flow analysis a bit. Dave Halter 2014-11-05 19:18:45 +01:00
  • 9549c2b389 Last few small changes to the parser. Now beginning to work on the tests again. Dave Halter 2014-11-05 17:39:56 +01:00
  • 70bc6642d8 symbols on the stack are now defined with a smaller tuple. Dave Halter 2014-11-05 10:27:24 +01:00
  • da5dd0efa1 simplify the parser stack. Dave Halter 2014-11-05 00:35:58 +01:00
  • 61df804e6e context is not needed for nodes. Dave Halter 2014-11-04 19:49:39 +01:00
  • 3b4a8dcd7e convert: run away from tuples. Dave Halter 2014-11-04 19:26:33 +01:00
  • 73bd576bb2 Merged some convert stuff. Dave Halter 2014-11-04 19:11:48 +01:00
  • 3518123afa Moved the convert function away from pytree Dave Halter 2014-11-04 19:09:58 +01:00
  • f3e4bf9ed1 Splitting up the convert function into leaves and nodes. Dave Halter 2014-11-04 18:54:25 +01:00