Commit Graph

  • 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
  • d483d50284 Small optimizations to make parsing faster. Dave Halter 2014-11-04 17:23:16 +01:00
  • c6c2768dda Parser error recovery simplified. Just fall back to scopes, if somethings wrong. Dave Halter 2014-11-04 09:40:32 +01:00
  • 8c775e0a18 Resolved if/else issues in instances with get_defined_names. Dave Halter 2014-11-04 00:23:23 +01:00
  • 1d2980cd2d Remove a flow information thing for now. Dave Halter 2014-11-03 18:27:31 +01:00
  • 55db65434c Add the parsers flow information as classes to parser.representation. Dave Halter 2014-11-03 18:25:10 +01:00
  • e25684d470 Start to check for name positions with names_dict name finder. Dave Halter 2014-11-03 15:58:56 +01:00
  • 4676998fb5 Playing with params/names_dict Dave Halter 2014-11-03 13:38:57 +01:00
  • f4d7020ebf Improve Name.is_definition Dave Halter 2014-11-02 17:53:04 +01:00
  • 81174741a4 After error recovery, names need to be removed from the used_names list, because they are not actually defined in the current AST. Dave Halter 2014-11-02 17:40:45 +01:00
  • 1ff4713848 Move error recovery function. Dave Halter 2014-11-02 17:24:06 +01:00
  • 0c3cba166e Make names_dict available in modules. Dave Halter 2014-11-02 14:22:00 +01:00
  • afca0ef047 The user context parser should ignore keywords if they are not standing alone. Dave Halter 2014-10-30 01:56:08 +01:00
  • 1bb0eccc86 Simple error recovery in the parser: For now just discard everything that is not a suite or file_input, if we detect an error. Dave Halter 2014-10-30 01:40:22 +01:00
  • f09ff04fcc Yield expressions are now separate form ReturnStmt. Dave Halter 2014-10-29 18:54:05 +01:00
  • 71c3d34965 Increase ParserPickling.version. Dave Halter 2014-10-29 01:46:46 +01:00
  • 1c09a90ac1 Disable usage of filter_private_variable for now. Dave Halter 2014-10-28 17:00:12 +01:00
  • 4f2223ae7b Super is now working. Still has the same flaws like the old implementation, but the tests are passing. Dave Halter 2014-10-28 16:22:59 +01:00
  • 500ac9b384 A irst super() implementation in stdlib. Dave Halter 2014-10-28 15:50:05 +01:00
  • d27df89681 A temporary argument clinic implementation for the stdlib. Dave Halter 2014-10-28 14:56:22 +01:00
  • f8bb369467 __call__ issues Dave Halter 2014-10-28 13:36:13 +01:00
  • 1cc1d4480b Fix issues with copying children in combination with InstanceElement. Dave Halter 2014-10-28 13:33:40 +01:00
  • b550f67bce Small instance refactoring, now adding is_generated as a param. Dave Halter 2014-10-28 11:33:28 +01:00
  • 19e083cbfb Make Leaf public Dave Halter 2014-10-28 11:13:33 +01:00
  • d667f19c57 Remove the old is_generated. Dave Halter 2014-10-28 02:11:50 +01:00
  • b3d87302f9 Small changes to adapt oto the new param structure. Dave Halter 2014-10-28 02:11:13 +01:00
  • fe7c750c2c Param is now the parent of its names and not just a helper class. Dave Halter 2014-10-28 02:05:44 +01:00
  • 68378a1468 Merge pull request #502 from abingham/patch-1 Dave Halter 2014-10-27 16:17:43 +01:00
  • 1a6ff3e8e6 Small parser fix. Dave Halter 2014-10-27 16:07:24 +01:00
  • 8911ecb6a5 A last change for defaults. Params are pretty usable and work smooth now. Dave Halter 2014-10-27 15:36:29 +01:00
  • df4845790e Added link to emacs-ycmd. abingham 2014-10-27 16:12:10 +02:00
  • 14ec210891 param default values. Dave Halter 2014-10-27 12:03:09 +01:00
  • db2d380441 Issues with errors *args resolution. Dave Halter 2014-10-27 01:29:49 +01:00
  • c0768924f6 Managed to get dict inputs working into kwargs. This was wrong in the old version of the parser. Dave Halter 2014-10-27 01:07:15 +01:00
  • 8df8749f22 Dict key that are not in dict should return all value types. Dave Halter 2014-10-27 00:19:31 +01:00
  • e4124fcf9a More dynamic *args Dave Halter 2014-10-25 15:58:09 +02:00
  • 2315d51e68 direct param evaluation Dave Halter 2014-10-25 14:37:01 +02:00
  • afbdf1a7ea Fix for default arguments in combination with named arguments. Dave Halter 2014-10-25 13:14:01 +02:00
  • 7532f52cdd Understanding implicit tuple returns (testlist) Dave Halter 2014-10-25 12:50:51 +02:00
  • 97a102bd24 Get param parsing right. Dave Halter 2014-10-25 12:02:54 +02:00
  • 22cb3ca5f0 subscriptable errors. Dave Halter 2014-10-25 11:34:16 +02:00
  • 995f0700c9 Fix params, so that quite a few functions can now pass. Dave Halter 2014-10-25 02:35:04 +02:00
  • 4384e938e9 Get a few more things right with params. Dave Halter 2014-10-25 02:25:09 +02:00
  • 9f1336095b unpacking arguments. Dave Halter 2014-10-24 21:46:42 +02:00
  • c58975807c Small function/param corrections. Dave Halter 2014-10-24 01:58:56 +02:00
  • 93c97a78a3 Fix an issue with classes and decorators combined. Dave Halter 2014-10-24 00:41:26 +02:00
  • 3bdd32ad87 Always create a module. Dave Halter 2014-10-23 16:27:16 +02:00
  • de4db11d25 Reading dicts works now. Dave Halter 2014-10-23 16:21:23 +02:00
  • 51ffc54471 Temporary params of class solution. Dave Halter 2014-10-23 14:41:01 +02:00
  • 387fc3b038 Adding prev_sibling, getting self attributes. Dave Halter 2014-10-23 14:03:52 +02:00
  • 88dcbe1f48 Name.is_definition implementation. Dave Halter 2014-10-23 13:37:35 +02:00
  • 971f1db823 Create a next_sibling method on _Leaf, which is then used to check for self attributes. Dave Halter 2014-10-23 01:36:24 +02:00
  • abb8d0e26c get_names_dict removed and use instead the names_dict attribute. Dave Halter 2014-10-23 01:06:50 +02:00
  • 3bbce49fd3 Scope.names_dict implementation. Dave Halter 2014-10-23 00:51:02 +02:00
  • 4f4aef7ac8 Param helper class in the tree. Dave Halter 2014-10-22 20:07:42 +02:00
  • e9f4c60e49 Use used_names not in pgen2, but only in our parser. Dave Halter 2014-10-22 15:50:02 +02:00
  • e2a07752fd '.NAME' lookups. Dave Halter 2014-10-22 02:33:35 +02:00