Commit Graph

  • 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
  • 34f3ea6973 More and probably the last tuple assignment stuff. Dave Halter 2014-10-22 02:29:47 +02:00
  • 297bcf6e19 Parentheses without commas are no tuples. Dave Halter 2014-10-22 02:10:48 +02:00
  • 6a8b840b29 Be able to differentiate tuple/list/dict. Dave Halter 2014-10-22 01:42:21 +02:00
  • 14113a1bff Fix a lot more of the tuple assignments. Dave Halter 2014-10-22 01:27:12 +02:00
  • 5b29e2c54d Add a method 'Name.assignment_indexes', to process tuple assignments. Dave Halter 2014-10-21 15:45:29 +02:00
  • c1807e5f33 Reworked ExprStmt.get_definition Dave Halter 2014-10-21 14:21:59 +02:00
  • 1c27759c4f Few fixes. Dave Halter 2014-10-21 13:54:03 +02:00
  • d119902496 Slices Dave Halter 2014-10-21 13:36:56 +02:00
  • ab53942e55 Start working with arithmetics. Dave Halter 2014-10-21 12:18:03 +02:00
  • 2eed6b7b5f Unaccessible array indexes should still produce results. Dave Halter 2014-10-21 12:03:01 +02:00
  • 8f3b7f9d44 A first array test passing. Dave Halter 2014-10-21 11:58:53 +02:00
  • fb2ef5a7a0 Start using arrays. Dave Halter 2014-10-21 11:05:12 +02:00
  • 718f43431c Introduce error recovery for the parser: At the moment just recover from broken statements. Dave Halter 2014-10-21 09:57:22 +02:00
  • c821b30017 Fix a first test: complex.py Dave Halter 2014-10-20 17:06:18 +02:00
  • 43e3452474 Fix more argument related stuff. Dave Halter 2014-10-20 16:34:17 +02:00
  • 1a639bd118 Arguments move to params. Dave Halter 2014-10-20 15:43:56 +02:00
  • b2c95cb02f Generating return statements. Dave Halter 2014-10-18 12:40:36 +02:00
  • 74d4fcf4e7 globals are more or less ready. Dave Halter 2014-10-17 18:48:07 +02:00
  • f08811fba7 Start implementing GlobalStmt. Dave Halter 2014-10-17 15:13:45 +02:00
  • 6abafc40fa ExprStmt now doesn't contain imports anymore. Dave Halter 2014-10-17 14:56:12 +02:00
  • d7face17f6 Using expr_stmt now instead of simple_stmt as ExprStmt, because that resembles the official grammar better. Dave Halter 2014-10-17 12:03:41 +02:00
  • 19acdd32b7 Fixed issues with the Python3.4 grammar file. Dave Halter 2014-10-17 01:34:47 +02:00
  • ae8969a0d1 New kind of KeywordStatement Dave Halter 2014-10-17 01:26:34 +02:00
  • aefc5ec15f add the 3.4 grammar. Dave Halter 2014-10-16 14:47:14 +02:00
  • 01ce93cb5c Preparation for a parser refactoring. Dave Halter 2014-10-16 11:45:25 +02:00
  • 887949e23f Start making executions work. Dave Halter 2014-10-16 10:58:27 +02:00
  • 7b91050c85 introduce something that resembles argument clinic in stdlib. Dave Halter 2014-10-16 10:58:11 +02:00
  • 631aa0ea61 Processing atom and power nodes. Dave Halter 2014-10-15 13:40:56 +02:00
  • 485b8ae3da Move Node away from pytree into the parser representation. Dave Halter 2014-10-13 13:47:32 +02:00
  • 6458047bac Name in statement definition implementation. Dave Halter 2014-10-13 13:33:49 +02:00
  • 0def3afaaa A move function for Nodes. Dave Halter 2014-10-12 23:37:46 +02:00
  • 660124aca1 Get an example running: 'import json; json.dump'. Dave Halter 2014-10-12 22:37:23 +02:00
  • e2b7e74aef Import improvements. Dave Halter 2014-10-10 17:52:36 +02:00
  • a192f4f347 Add keywords, improve import support. Dave Halter 2014-10-10 17:48:40 +02:00
  • 54c91b1509 Get a first local test passing. Dave Halter 2014-10-10 12:07:08 +02:00
  • 3bf1fec568 Start implementing an algorithm for actually evaluating the parser tree. Dave Halter 2014-10-10 11:29:03 +02:00
  • 66840a742c Implement the new parser in jedi.parser.Parser Dave Halter 2014-10-10 00:06:28 +02:00
  • 05fd7f992e Don't use the fast parser at the moment. It's more important for now to even get a parser working. Dave Halter 2014-10-09 14:36:52 +02:00
  • aa75140f96 Remove old base class for Nodes. Dave Halter 2014-10-09 13:33:42 +02:00
  • 92ee2a912e Actually get the first few written tests passing. Dave Halter 2014-10-09 13:21:30 +02:00
  • 68d23840bb Start actual testing of the new parser. Dave Halter 2014-10-09 13:16:28 +02:00
  • daee273a08 Remove all the old get_code references. Dave Halter 2014-10-09 11:38:57 +02:00
  • 843efb43e9 statement refactoring. Dave Halter 2014-10-09 11:36:27 +02:00
  • a0092c2653 remove old statement parser code. Dave Halter 2014-10-09 11:20:49 +02:00