Dave Halter
|
7667cba17e
|
Remove old indent/dedent usages. Now they are not needed anymore.
|
2016-09-11 13:20:24 +02:00 |
|
Dave Halter
|
1226962922
|
Remove dedents from the parser tree. No need for them.
|
2016-09-11 13:03:29 +02:00 |
|
Dave Halter
|
2ae3aee7d0
|
Increase parser pickling version to reduce bugtracker issues in the future with people upgrading git commits.
|
2016-08-07 13:05:14 +02:00 |
|
Dave Halter
|
5f064a2a0a
|
Add a way to get the line in a BaseDefinition. Fixes #518.
|
2016-07-31 20:37:48 +02:00 |
|
Dave Halter
|
142f6652b5
|
Move toward ParserWithRecovery for the completion context.
It was simply not possible to do it with the normal parser, because of dedents.
|
2016-07-28 23:14:24 +02:00 |
|
Dave Halter
|
fc7fd9d989
|
Fix some more fast parser issues.
|
2016-07-25 18:29:01 +02:00 |
|
Dave Halter
|
2d544c51c6
|
Better completions in comments.
|
2016-07-25 09:58:04 +02:00 |
|
Dave Halter
|
ebbaaf7ad2
|
Fix some more problems with the fast parser.
|
2016-07-24 23:44:26 +02:00 |
|
Dave Halter
|
ff47fab62a
|
Remove Whitespace class and replace it with Newline and Endmarker.
|
2016-07-24 17:16:36 +02:00 |
|
Dave Halter
|
7f2f66f011
|
Trying to refactor the completion stack finding.
|
2016-07-24 17:06:54 +02:00 |
|
Dave Halter
|
2563746810
|
Fix issues with octals in Python 2 (and possibly 3). Fixes #559.
|
2016-07-17 22:36:26 +02:00 |
|
Dave Halter
|
927534a8d5
|
Strange unicode characters are error tokens. Fixes #587.
|
2016-07-13 08:53:08 +02:00 |
|
Dave Halter
|
72634a94b8
|
Try to use line numbers instead of offsets in the fast parser.
|
2016-07-11 08:56:30 +02:00 |
|
Dave Halter
|
1c0aa06c7d
|
PEP 3132 unpacking should not raise an error (it may yield wrong results though at the moment), fixes #707.
|
2016-07-10 17:51:01 +02:00 |
|
Dave Halter
|
e5f09e1c7d
|
Fix an issue with end_pos of a module.
|
2016-07-08 00:03:52 +02:00 |
|
Dave Halter
|
adcc1c2b51
|
Don't delete ErrorNode names. They are part of the parser now.
Fixes #594 and possibly also #590 and #579.
|
2016-07-07 18:33:45 +02:00 |
|
Dave Halter
|
4a19376187
|
Fix issue https://github.com/DamnWidget/anaconda/issues/449. Using self should not cause side effects in completion.
|
2016-07-06 18:31:47 +02:00 |
|
Dave Halter
|
4243adf54b
|
Add param splitting test.
|
2016-07-06 08:30:27 +02:00 |
|
Dave Halter
|
0223471237
|
Increase the parser pickling version.
|
2016-07-03 12:31:57 +02:00 |
|
Dave Halter
|
9245181a8c
|
Some python 2.7 (and 3.3) compatibility improvements.
|
2016-07-03 02:54:21 +02:00 |
|
Dave Halter
|
d5098ef096
|
Forgot to add parser/utils.py.
|
2016-06-30 19:36:48 +02:00 |
|
Dave Halter
|
52c42c3392
|
Reenable call signature caching and move a lot of parser specific caching to the parser itself.
|
2016-06-28 08:46:29 +02:00 |
|
Dave Halter
|
746a513ef9
|
Return a TokenInfo object in the tokenizer instead of a tuple (it's a namedtuple now.)
|
2016-06-27 09:14:11 +02:00 |
|
Dave Halter
|
9b85080fb8
|
Finally removed the user_context. Goodbye old hacks...
|
2016-06-27 08:49:27 +02:00 |
|
Dave Halter
|
969100e471
|
Move the parsing away from user_context to api.py.
|
2016-06-27 08:48:36 +02:00 |
|
Dave Halter
|
0445d51d34
|
Remove the user_scope from the user_context module.
|
2016-06-27 08:35:24 +02:00 |
|
Dave Halter
|
bb4ab45131
|
Don't use UserContextParser.user_stmt anymore, since we can access it directly.
|
2016-06-23 16:36:12 +02:00 |
|
Dave Halter
|
73e71b3c1a
|
Finally able to remove the user_context. This is awesome!
Now we only use the syntax tree to understand where the user is doing something.
|
2016-06-23 16:26:28 +02:00 |
|
Dave Halter
|
80aa9ad079
|
A small python 2 bugfix.
|
2016-06-22 00:45:14 +02:00 |
|
Dave Halter
|
6fec29d778
|
All tests except the Interpreter tests are working again.
|
2016-06-22 00:27:21 +02:00 |
|
Dave Halter
|
6f366e2d77
|
Rename next_sibling and prev_sibling.
|
2016-06-14 23:22:33 +02:00 |
|
Dave Halter
|
78d25541bb
|
The parser tree doesn't need to care about error statements anymore.
|
2016-06-14 18:12:19 +02:00 |
|
Dave Halter
|
6853bd70f4
|
Adding a token in pgen should have the same signature that the tokenizer uses.
|
2016-06-14 18:09:31 +02:00 |
|
Dave Halter
|
01ddacfec4
|
Generalize the tuple order of tokens.
|
2016-06-14 08:57:38 +02:00 |
|
Dave Halter
|
118ba7d833
|
A lot of stuff is not needed anymore, because of the recent refactorings.
|
2016-06-14 08:31:36 +02:00 |
|
Dave Halter
|
27f05de3b7
|
Fix a few more issues, mostly with the fast parser.
|
2016-06-13 18:21:17 +02:00 |
|
Dave Halter
|
c82691a12b
|
Make goto_definitions a lot simpler.
|
2016-06-11 23:13:04 +02:00 |
|
Dave Halter
|
82c76fa689
|
Merge with the linter branch (especially the changes of pep484.
|
2016-06-07 13:51:25 +02:00 |
|
Dave Halter
|
87a75fdfe4
|
Remove old unused code.
|
2016-06-06 09:27:43 +02:00 |
|
Dave Halter
|
4ec72d8f24
|
Finally fix the last remaining fast parser issue.
|
2016-06-06 08:55:10 +02:00 |
|
Dave Halter
|
436f7dffe0
|
Fix another very annoying fast parser issue.
|
2016-06-06 08:37:40 +02:00 |
|
Dave Halter
|
dd85fc6ffd
|
Add error token in a normal way to the syntax tree as ErrorLeaf.
|
2016-06-05 14:49:57 +02:00 |
|
Dave Halter
|
aa97e4e714
|
Fix the fast parser issue #589.
|
2016-06-05 14:42:32 +02:00 |
|
Dave Halter
|
6b63b9cf54
|
Further fixes for failing tests.
|
2016-06-04 00:59:17 +02:00 |
|
Dave Halter
|
c3ffaab8af
|
The fast parser had some splitting issues.
|
2016-06-04 00:50:36 +02:00 |
|
Dave Halter
|
e60c06b691
|
In every case of a new line the tokenize position should be correct.
|
2016-06-04 00:34:00 +02:00 |
|
Dave Halter
|
5edcf47512
|
Break Interpreter completion even more in favor of a better solution in the future.
|
2016-06-03 19:31:42 +02:00 |
|
Dave Halter
|
0c7894b3e6
|
Fix a few fast parser tests.
|
2016-06-02 08:24:52 +02:00 |
|
Dave Halter
|
ad8d730a57
|
More test fixes.
|
2016-05-31 01:12:07 +02:00 |
|
Dave Halter
|
4f6368e7eb
|
Now ErrorLeaf and ErrorNode are part of the syntax tree. This makes probably sense. The documentation will follow once it's clear how they will shape out.
|
2016-05-30 00:34:58 +02:00 |
|