Commit Graph

  • 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
  • 140320143a Remove the old Leave class. Dave Halter 2014-10-09 11:02:03 +02:00
  • c7c222daab Implement WhiteSpace as well and merge with pytree. Dave Halter 2014-10-09 10:55:03 +02:00
  • 8236ce18a2 Refactor Literal. Dave Halter 2014-10-09 03:23:52 +02:00
  • eb384fc2d1 Name refactoring. Dave Halter 2014-10-09 03:21:18 +02:00
  • 432ec8f186 Operator refactoring. Dave Halter 2014-10-09 03:15:50 +02:00
  • 6bb88ddd85 Function is starting to work. Dave Halter 2014-10-08 17:58:02 +02:00
  • 585e92ac9f Temporarily disable evaluate/compiled stuff, because it interferes with the current changes of the parser. This will be undone. Dave Halter 2014-10-08 17:45:49 +02:00
  • 308c971ad7 Change pr.Simple. Dave Halter 2014-10-08 17:02:37 +02:00
  • d9aa84f971 simplify the use of 'context' Dave Halter 2014-10-08 16:33:35 +02:00
  • e54dac3777 Start setting up the parser.representation merge Dave Halter 2014-10-08 16:15:27 +02:00
  • 220ddc8a74 Probably the last big removals, there's not a lot left. Dave Halter 2014-10-08 15:35:45 +02:00
  • a23ad3df10 Remove more and more from pytree. Dave Halter 2014-10-08 15:30:15 +02:00
  • 2781a4ac98 Remove comparison methods. Dave Halter 2014-10-08 15:22:44 +02:00
  • 1fb6e15750 Fix prefixes of Leafs. Dave Halter 2014-10-08 15:19:36 +02:00
  • 36368cd606 More removals and cleanups. Dave Halter 2014-10-08 15:13:43 +02:00
  • 07d9111c77 Remove some more pytree methods. Dave Halter 2014-10-08 15:05:29 +02:00
  • a7fff54d7b Remove some fixer related stuff (lib2to3 stuff). Dave Halter 2014-10-08 15:04:01 +02:00
  • 834172a3e9 Add a new parser, check it pgen2 would work. (already modified outside this repository) Dave Halter 2014-10-08 14:26:52 +02:00
  • 09a7317bc9 Merge branch 'dev' of github.com:davidhalter/jedi into dev Dave Halter 2014-10-06 17:55:46 +02:00
  • e9a3a44780 Remove some other _star_import_cache stuff, and with this, #489 should be fixed. Dave Halter 2014-10-06 17:55:28 +02:00
  • 3638d5149d Change time_cache, to also host the star_import_cache. Dave Halter 2014-10-06 17:37:34 +02:00
  • bbdb4703ec change cache_call_signatures, so that it has a well defined input. Dave Halter 2014-10-06 16:07:33 +02:00
  • 87574e9d2e star_import_cache refactorings: Make it more readable. Dave Halter 2014-10-04 12:43:08 +02:00
  • a1b55a9df7 clear_caches -> clear_time_caches Dave Halter 2014-10-03 14:23:46 +02:00
  • 116e9e72fc is_definition/Import issue Dave Halter 2014-10-02 11:27:01 +02:00
  • 8ca48f03db Tests for imports and is_definition. Dave Halter 2014-10-02 11:14:03 +02:00
  • 90d159eadd Merge pull request #483 from ColinDuquesnoy/fix_runtime_error Dave Halter 2014-09-29 16:07:01 +04:30
  • d7836c1034 Add a comment and link to issue #483 #483 ColinDuquesnoy 2014-09-29 11:57:38 +02:00
  • 42596dba15 Merge remote-tracking branch 'upstream/dev' into fix_runtime_error ColinDuquesnoy 2014-09-29 11:49:21 +02:00
  • d1ae447362 Simplify code ColinDuquesnoy 2014-09-29 09:50:49 +02:00
  • 27444ed64d Remove Import.alias_name_part, it was simply an alias for another lookup. Dave Halter 2014-09-26 16:32:36 +02:00
  • 03e01631cc Remove NamePart from existance and rename it to Name. Dave Halter 2014-09-26 16:29:53 +02:00
  • 522c9eda90 Remove pr.Name completely. Dave Halter 2014-09-26 16:18:10 +02:00
  • 4d7db35340 Fix a few last tests, now Jedi's working again, tests are passing. Dave Halter 2014-09-26 16:02:03 +02:00
  • 6f29e802c2 Fix an issue with as_names. Dave Halter 2014-09-26 15:48:49 +02:00
  • 7fea6437d9 Fix issues with Definition.full_name Dave Halter 2014-09-26 13:07:21 +02:00
  • 4f4ac505a3 Fix isses with interpreter completions. Dave Halter 2014-09-26 13:07:08 +02:00
  • 3add6e4289 Fix various bugs. Dave Halter 2014-09-26 12:22:56 +02:00
  • ce3ec6b534 Finally remove ArrayMethod and use an InstanceElement instead (which it basically is). Dave Halter 2014-09-26 12:08:04 +02:00
  • 90842ce62d Fixed global variables. Dave Halter 2014-09-26 11:58:11 +02:00
  • 4eaee09d6e Fix named param issues. Dave Halter 2014-09-26 11:52:26 +02:00
  • 47c4369d28 Fix remaining issues with sys path checks. Dave Halter 2014-09-25 18:27:35 +02:00
  • f4c99259b5 Fix an issue with sys.path. Also moved the names closure for isinstance checks away (used for sys.path stuff) and use a get_code check instead, which is more flexible. Dave Halter 2014-09-25 12:35:53 +02:00
  • c2d645b7c1 Fix one of the really hard issues: deep_ast_copy didn't copy the newly created _names_dict. Dave Halter 2014-09-25 12:15:15 +02:00
  • 16f244a1b2 Fix isinstance issues. Dave Halter 2014-09-25 00:36:53 +02:00
  • 59225ceaa3 usages issues. Dave Halter 2014-09-25 00:14:43 +02:00
  • 9ecf3774a0 Import issues again. Dave Halter 2014-09-24 21:59:08 +02:00
  • c43afae24a Issues with imports. Dave Halter 2014-09-24 21:12:38 +02:00
  • ff61c1d81c Fix an extremely annoying bug that made pickling impossible. Dave Halter 2014-09-24 20:58:29 +02:00
  • 56243e10c6 The get_code generation of imports was buggy. Dave Halter 2014-09-24 17:48:11 +02:00
  • db31536d78 Fix issue with descriptors. Dave Halter 2014-09-24 16:52:44 +02:00
  • 19b32a3657 And by changing small things about NamePart/InstanceElement usage, we're finally able to pass the class tests again. Dave Halter 2014-09-24 15:42:44 +02:00
  • f300e63dae A couple of changes: Dave Halter 2014-09-24 15:21:56 +02:00
  • 0a65eea2cf Start to change the logic for self.foo variables. Dave Halter 2014-09-24 14:33:15 +02:00
  • 12e391c97a Add a LazyDict to be able to use it within FunctionExecution for get_names_dict Dave Halter 2014-09-24 12:57:26 +02:00
  • d5fbc006e2 Add a names_dict to scopes. This is good for the future parser and now useful to process self.foo and other stuff. Dave Halter 2014-09-24 12:44:24 +02:00
  • c61f79314b Introduce get_names_dict to statements to actually fetch the calls out of a statement. Dave Halter 2014-09-24 12:06:41 +02:00
  • 5efa467449 Few import issues. Dave Halter 2014-09-22 23:45:48 +02:00
  • 1d71b25109 Previously forgot to add the NameParts to used_names. (which had worked before that) Dave Halter 2014-09-22 23:24:29 +02:00