1
0
forked from VimPlug/jedi
Commit Graph

128 Commits

Author SHA1 Message Date
Dave Halter
417db4e83f suites without indent can also be deleted. 2014-11-29 13:30:21 +01:00
Dave Halter
a7560069b0 Fixes for issues with empty compound_stmt. We always remove a whole stmt and just a funcdef as an error correction. 2014-11-29 13:25:31 +01:00
Dave Halter
3fb1934462 Fix invalid test issues. 2014-11-29 01:35:26 +01:00
Dave Halter
2b912cb75a The func/class dictionaries must be changed if some scopes are removed by the parser's error recovery. 2014-11-29 01:29:21 +01:00
Dave Halter
43c01afcfc invalid.py test changes. Error recovery will be different from the old one. 2014-11-28 21:58:44 +01:00
Dave Halter
2c684906e3 Working with dedents in error recovery. 2014-11-28 21:33:40 +01:00
Dave Halter
31600b9552 classes and functions are new statements and should never get removed by the error recovery. 2014-11-28 02:44:34 +01:00
Dave Halter
e1d6511f2f Trying to move the indent/dedent logic back into the tokenizer. 2014-11-28 02:04:04 +01:00
Dave Halter
97516eb26b The new tokenizer is more or less working now. Indents are calculated as they should 2014-11-27 16:03:58 +01:00
Dave Halter
c0df7003a5 Allow both the old tokenizer and the new one (able to toggle). 2014-11-27 01:12:49 +01:00
Dave Halter
cc1098b93c Fix a few tokenize tests and merge them back together. 2014-11-26 16:09:28 +01:00
Dave Halter
5d82b11f59 First implementation to be ready to complete corrupt imports. Working ok. 2014-11-25 19:35:27 +01:00
Dave Halter
e72eaf7a59 on import completion preparations. 2014-11-25 15:10:36 +01:00
Dave Halter
db76bbccc5 Trying to change the symbols in node. They are now strings.
With this change we are finally able to get rid of parser/pytree.py
2014-11-24 01:52:41 +01:00
Dave Halter
9f45f18ad1 Added a grammar param to the parser. 2014-11-24 01:10:39 +01:00
Dave Halter
c152a1c58b Actually replace tree with representation (in all the imports). 2014-11-23 19:46:52 +01:00
Dave Halter
0f21d38e2c Remove the old parser. 2014-11-23 19:17:50 +01:00
Dave Halter
ce5d428d22 At least functions generate docstrings again. 2014-11-20 01:37:18 +01:00
Dave Halter
3c6d5dafb1 Split Import, now there is ImportFrom and ImportName as it exists in the python grammar. 2014-11-19 00:40:16 +01:00
Dave Halter
a4a767f8bb Import improvements. 2014-11-18 17:19:15 +01:00
Dave Halter
f62f181066 First decorator implementations. 2014-11-17 22:24:54 +01:00
Dave Halter
13a128b160 global working. 2014-11-13 18:13:56 +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
70bc6642d8 symbols on the stack are now defined with a smaller tuple. 2014-11-05 10:27:24 +01:00
Dave Halter
3b4a8dcd7e convert: run away from tuples. 2014-11-04 19:26:33 +01:00
Dave Halter
73bd576bb2 Merged some convert stuff. 2014-11-04 19:12:02 +01:00
Dave Halter
3518123afa Moved the convert function away from pytree 2014-11-04 19:09:58 +01:00
Dave Halter
f3e4bf9ed1 Splitting up the convert function into leaves and nodes. 2014-11-04 18:54:25 +01:00
Dave Halter
c6c2768dda Parser error recovery simplified. Just fall back to scopes, if somethings wrong. 2014-11-04 09:40:32 +01:00
Dave Halter
81174741a4 After error recovery, names need to be removed from the used_names list, because they are not actually defined in the current AST. 2014-11-02 17:40:45 +01:00
Dave Halter
1ff4713848 Move error recovery function. 2014-11-02 17:24:06 +01:00
Dave Halter
0c3cba166e Make names_dict available in modules. 2014-11-02 14:22:00 +01:00
Dave Halter
1a6ff3e8e6 Small parser fix. 2014-10-27 16:07:24 +01:00
Dave Halter
93c97a78a3 Fix an issue with classes and decorators combined. 2014-10-24 00:41:26 +02:00
Dave Halter
3bbce49fd3 Scope.names_dict implementation. 2014-10-23 00:51:02 +02:00
Dave Halter
4f4aef7ac8 Param helper class in the tree. 2014-10-22 20:07:42 +02:00
Dave Halter
e9f4c60e49 Use used_names not in pgen2, but only in our parser. 2014-10-22 15:50:02 +02:00
Dave Halter
8f3b7f9d44 A first array test passing. 2014-10-21 11:58:53 +02:00
Dave Halter
74d4fcf4e7 globals are more or less ready. 2014-10-17 18:48:07 +02:00
Dave Halter
f08811fba7 Start implementing GlobalStmt. 2014-10-17 15:13:45 +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
66840a742c Implement the new parser in jedi.parser.Parser 2014-10-10 00:06:28 +02:00
Dave Halter
03e01631cc Remove NamePart from existance and rename it to Name. 2014-09-26 16:29:53 +02:00
Dave Halter
6f29e802c2 Fix an issue with as_names. 2014-09-26 15:48:49 +02:00
Dave Halter
90842ce62d Fixed global variables. 2014-09-26 11:58:11 +02:00
Dave Halter
9ecf3774a0 Import issues again. 2014-09-24 21:59:08 +02:00
Dave Halter
c43afae24a Issues with imports. 2014-09-24 21:12:38 +02:00
Dave Halter
d5fbc006e2 Add a names_dict to scopes. This is good for the future parser and now useful to process self.foo and other stuff. 2014-09-24 12:44:24 +02:00
Dave Halter
5efa467449 Few import issues. 2014-09-22 23:45:48 +02:00
Dave Halter
1d71b25109 Previously forgot to add the NameParts to used_names. (which had worked before that) 2014-09-22 23:24:29 +02:00