1
0
forked from VimPlug/jedi
Commit Graph

106 Commits

Author SHA1 Message Date
David Halter
42450f48dc change an indentifier (avoid naming collisions) 2013-02-05 16:16:58 +01:00
David Halter
d372e86317 splitted parsing into parsing and parsing_representation 2013-02-05 16:15:21 +01:00
Danilo Bargen
a0f07c90e8 Development doc fixes 2013-02-05 11:31:05 +01:00
David Halter
3678f235c0 new parsing docstring 2013-02-05 00:02:29 +01:00
David Halter
057ed6bda2 better parsing docstring 2013-02-04 17:55:38 +01:00
David Halter
4bf6332a83 rename some parser functions (add underlines) 2013-02-04 16:55:35 +01:00
David Halter
95c5b9a5e3 parsing.PyFuzzyParser -> Parser 2013-02-04 16:18:24 +01:00
David Halter
9eec549a39 make docstrings ready for sphinx 2013-02-04 14:23:50 +01:00
David Halter
3faf50049b fix sphinx warnings/errors 2013-02-04 11:09:07 +01:00
David Halter
7b150630f0 stopiteration works in strange ways in the parser in py2, fixes #70, affects probably davidhalter/jedi-vim#68 2013-01-12 12:15:32 +01:00
David Halter
af92f7f9f2 pickling works now (had problems deriving str, see http://stackoverflow.com/questions/14248633/python-pickle-derived-str-object), #102 2013-01-11 22:26:30 +01:00
David Halter
9031e425be renamed code -> source 2013-01-10 11:41:11 +01:00
David Halter
21ee6f400d improvement for pickling 2013-01-10 09:33:15 +01:00
David Halter
7b73072045 cleanup / pep8 2013-01-09 22:47:21 +01:00
David Halter
e9aadce5ae __slots__ usage works much better now -> scan for all slots and not only for current class 2013-01-09 21:44:59 +01:00
David Halter
7aa527f12e use_as_parent again and fast_parent_copy deals now with __slots__ 2013-01-09 15:23:33 +01:00
David Halter
b85c54932b parsing.set_parent -> use_as_parent 2013-01-09 15:21:04 +01:00
David Halter
232aafeb6a improved slot statements 2013-01-09 15:18:28 +01:00
David Halter
1557ea792f use __slots__ to reduce memory footprint of parser, #102 2013-01-08 14:54:56 +01:00
David Halter
35186629f0 delete token generator after parsing, lowers the memory footprint for 10k files with a factor of 5, #102 2013-01-08 11:57:10 +01:00
David Halter
3c15471182 fix problems with unbounderrors in assignment calls 2013-01-07 20:52:40 +01:00
David Halter
8fbe1c47a5 working inline refactoring 2013-01-07 20:19:42 +01:00
David Halter
07cb30d91b set end_pos Arrays better 2013-01-07 20:08:54 +01:00
David Halter
50e64cf930 corrected indent of some extract functions 2013-01-07 01:47:33 +01:00
David Halter
3f5e9d6bca some docstring improvements 2013-01-04 20:07:20 +01:00
David Halter
3bf0ec70fc improved goto on assignees (just return the assignee). 2012-12-26 20:53:15 +01:00
David Halter
bd93f8fd2d move some parser details to protected class members 2012-12-24 12:53:38 +01:00
David Halter
40898450af support for super() 2012-12-24 12:27:43 +01:00
David Halter
e647e09f0c fix problems with unnecessary brackets and following executions, which fixes also the last remaining lambda problem 2012-12-24 10:47:11 +01:00
David Halter
f05b960386 lambdas: fix problems with reverse tokenizer 2012-12-24 01:26:35 +01:00
David Halter
716d2362fd fixed mostly wrong lambda tests (and a few lambda improvements as well) 2012-12-23 15:52:49 +01:00
David Halter
c7fd196850 get_code is now able to process returns again 2012-12-22 20:28:34 +01:00
David Halter
e701a4ef92 lambdas: add correct parents and change evaluate 2012-12-22 19:43:30 +01:00
David Halter
77b2ea2dce basic lambda parsing 2012-12-22 19:27:44 +01:00
David Halter
ef1f637e71 Lambda class 2012-12-22 19:08:37 +01:00
David Halter
e789e41fde remove old return statements 2012-12-19 21:27:59 +01:00
David Halter
ca21f76128 no confusions in executions for dict assignments, fixes #83 2012-12-19 21:23:50 +01:00
David Halter
15510a4c3b more unicode casts instead of str casts 2012-12-19 18:46:32 +01:00
David Halter
df95416160 refactored return/yield parsing, fixes davidhalter/jedi-vim#49 2012-12-18 15:35:59 +01:00
David Halter
ffeecc1674 improved speed for tests again, reparsing is now only done if something changed (removed reparsing of the user_scope in every completion). this is not going to have a deep impact on users, but it speeds up tests. 2012-12-18 00:51:25 +01:00
David Halter
7e7006e142 fix problems (end_pos of positions was wrong) with user_scopes 2012-12-17 23:19:44 +01:00
David Halter
8bbd2108bd basic caching of fast_parser modules. 2012-12-17 01:27:15 +01:00
David Halter
c1d442fa17 added a line_offset attribute - enables fast_parser to change positions 2012-12-16 17:23:15 +01:00
David Halter
36b75c3e15 fixed the last remaining problems with fast_parser (not cached yet) 2012-12-16 03:50:50 +01:00
David Halter
bcdf273c21 fix comment problem (code shouldn't be parsed multiple times) 2012-12-16 02:41:04 +01:00
David Halter
2b579eb09b many bugfixes related to fast_parser 2012-12-15 16:38:21 +01:00
David Halter
b8b4a02398 fixed some bugs within fast_parser and added an option 'settings.fast_parser' to turn on fast parsing. 2012-12-14 18:16:54 +01:00
David Halter
05885a8b06 parsing change of positions for modules (wasn't correct before) 2012-12-14 15:20:51 +01:00
David Halter
fa831b4f4a Module -> SubModule because of part_parser 2012-12-14 11:47:47 +01:00
David Halter
f3273e1cda refactor use of NoErrorTokenizer 2012-12-14 10:07:39 +01:00