Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter 41c38311f7 Refactor some things in pgen 2018-06-12 22:08:19 +02:00
Dave Halter eeb456a6d4 Move some initializations 2018-06-12 22:00:49 +02:00
Dave Halter 1c0956d9e0 Change license again. The year shouldn't matter 2018-06-12 21:58:27 +02:00
Dave Halter c17156bd36 Make first private 2018-06-12 21:56:26 +02:00
Dave Halter 8865aa452c Change copyright years 2018-06-12 21:55:37 +02:00
Dave Halter e0c79a9fcc Remove some code from the grammar 2018-06-12 21:49:18 +02:00
Dave Halter 3c08b1b058 Separate the grammar generation from the grammar parsing 2018-06-12 21:30:09 +02:00
Dave Halter 0f32673092 In pgen now everything is named grammar and not c 2018-06-12 18:17:02 +02:00
Dave Halter 1e18163402 Better recovery for online classes and functions 2018-06-12 13:23:49 +02:00
Dave Halter cef9f1bdbd Fix one-line error recovery for all things that are using a suite
Fixes https://github.com/davidhalter/jedi/issues/1138.
2018-06-12 12:56:27 +02:00
Dave Halter 23db71a5f7 Add a debug function for first tokens 2018-06-12 01:50:37 +02:00
Dave Halter 6f385bdba1 Not testing Python 3.3 anymore on travis. It seems to be broken 2018-05-21 12:55:49 +02:00
Dave Halter 4fc31c58b3 Add a changelog for 0.2.1 2018-05-21 12:48:31 +02:00
Dave Halter 689decc66c Push the version 2018-05-21 12:44:10 +02:00
Dave Halter c2eacdb81c The diff parser was slighly off with prefixes, fixes #1121 2018-05-20 19:13:50 +02:00
Dave Halter ac0bf4fcdd A better repr for the endmarker 2018-05-17 09:56:16 +02:00
Dave Halter 948f9ccecc Merge branch 'master' of github.com:davidhalter/parso 2018-04-23 23:42:11 +02:00
Dave Halter f20106d88e Fix a prefix issue with error leafs. 2018-04-22 19:28:30 +02:00
Dave Halter 579146b501 Don't test python 2.6 in tox by default, because the newer pip versions don't support it anymore 2018-04-15 14:46:35 +02:00
Dave Halter deb4dbce1c Set a release date 2018-04-15 13:54:10 +02:00
Dave Halter 8eda8decea Fix whitespace issues with prefixes 2018-04-07 15:34:58 +02:00
Dave Halter f6935935c0 Use proper leafs for fstring start/end 2018-04-07 12:32:33 +02:00
Dave Halter d3fa7e1cad Fix a Python 2 related issue. 2018-04-07 11:14:41 +02:00
Dave Halter 83d9abd036 Forgot to delete another print. WTF I'm tired 2018-04-07 02:22:45 +02:00
Dave Halter 222e9117b4 Unfortunately forgot to delete a print 2018-04-07 02:21:59 +02:00
Dave Halter eda2207e6c Start to write a changelog for 0.2.0 2018-04-07 02:20:00 +02:00
Dave Halter a91e5f2775 Merge branch 'fstrings'
f-strings are now parsed as part of the Python grammar and not in separate
steps.

Note that this is not the way that CPython does it. CPython still uses multiple
parse steps in ast.c.
2018-04-07 02:17:02 +02:00
Dave Halter cba4f2ccc1 Fix the syntax errors from f-strings 2018-04-07 02:14:35 +02:00
Dave Halter 8f1a436ba1 Remove the old f-string grammar and fix the tests with the new syntax 2018-04-07 02:11:26 +02:00
Dave Halter 9941348ec6 Add python 3.7 to tox 2018-04-06 20:30:07 +02:00
Dave Halter afb71dc762 Remove the f-string rules and replace them with new ones 2018-04-06 20:29:22 +02:00
Dave Halter 0d96b12566 Fix the fstring syntax if there's a conversion with exclamation mark 2018-04-06 09:59:15 +02:00
Dave Halter 9d2ce4bcd4 Fix a few fstring error gatherings 2018-04-06 09:50:07 +02:00
Dave Halter a3e280c2b9 Use strings as a non-terminal symbol in all grammars
This makes it easier to write the same logic for all Python versions
2018-04-05 09:55:19 +02:00
Dave Halter 7c7f4f4e54 Fix a test 2018-04-05 00:45:23 +02:00
Dave Halter 56b3e2cdc8 Also use the fstring modfications for the 3.7 grammar 2018-04-05 00:45:03 +02:00
Dave Halter 97f042c6ba Remove clutter from the grammar 2018-03-31 14:26:12 +02:00
Dave Halter b1aa7c6a79 Cleanup a lot of details in the tokenizer for fstrings 2018-03-31 14:25:29 +02:00
Dave Halter 235fda3fbb Fix a few things so that the tokenizer can at least parse the grammar. 2018-03-30 22:13:18 +02:00
Dave Halter d8d2e596a5 A first implementation of the fstring tokenizer 2018-03-30 20:50:49 +02:00
Dave Halter e05ce5ae31 Revert "A small improvement in checks"
The problem with this commit is that it probably makes some checks slower. It's
still slightly more beautiful, but we leave it for now.

This reverts commit 25e4ea9c24.
2018-03-28 09:51:37 +02:00
Dave Halter 25e4ea9c24 A small improvement in checks 2018-03-28 02:16:37 +02:00
Dave Halter 9f88fe16a3 Added the fstring grammar without the tokenization part
This means that fstrings are not yet parsed, because there are no f-string tokens.
2018-03-28 02:03:18 +02:00
Dave Halter ba0e7a2e9d A comparison was slightly off 2018-03-24 22:40:12 +01:00
Dave Halter dc80152ff8 Ignore the pytest cache 2018-03-23 20:24:08 +01:00
Dave Halter 9e3154d167 Fix an error message change in Python 3.7 2018-03-23 20:23:15 +01:00
Dave Halter 065da34272 Fix an issue in the diff parser about endmarker newlines
This was discovered in https://github.com/davidhalter/jedi/issues/1000.
2018-03-11 23:41:18 +01:00
Dave Halter f89809de9a Remove the copyright for good 2018-01-09 23:27:46 +01:00
Dave Halter fc44af6165 Merge branch 'master' of github.com:davidhalter/parso 2017-12-30 18:08:17 +01:00
Dave Halter 73439d5863 Don't use a newer pytest version
Otherwise python 3.3 and 2.6 are not working anymore
2017-12-30 18:07:58 +01:00
Dave Halter 085aad3038 The tags should be annotated if possible 2017-12-30 14:05:50 +01:00
Dave Halter 0dea94c801 Bump version for the next release 2017-11-05 15:11:51 +01:00
Dave Halter 6cf487aee2 Use 3.7-dev not 3.7 for travis 2017-11-05 14:39:13 +01:00
Dave Halter 2ca629a2f6 Don't use py37 in tox but on travis 2017-11-05 14:34:09 +01:00
Dave Halter 5c1e953c17 Add the v0.1.1 changes to the changelog 2017-11-05 12:43:55 +01:00
Dave Halter a5f565ae10 Python 3.7 should be tested as well 2017-11-05 12:18:28 +01:00
Dave Halter a29ec25598 Use os.path.join instead of a slash
Fixes #20
2017-11-04 14:58:57 +01:00
Dave Halter dcae8cda92 Merge branch 'master' of github.com:davidhalter/parso 2017-10-12 22:59:24 +02:00
Dave Halter 1f6683b8ac Don't use the root logger
The root logger should not be used in parso. Use custom loggers for each module. Fixes #9.
2017-10-12 22:59:17 +02:00
Dave Halter 8db1498185 Deployment script forgot to push the tags to github. 2017-09-21 00:06:48 +02:00
Dave Halter 26e882d19c Magic names were not validated correctly
Fixes #6.
2017-09-14 09:04:08 +02:00
Dave Halter 3a506b44ac Remove dead code in get_definition. Fixes #4. 2017-09-05 08:59:16 +02:00
Dave Halter 5a57e8df06 Remove the width from the logo, because it's not needed. 2017-09-04 23:19:04 +02:00
Dave Halter aa82a1d39a Add a parso image to the README. 2017-09-04 23:17:24 +02:00
Dave Halter e0f74dd8ad Bump the Python version. 2017-09-04 22:54:48 +02:00
Dave Halter 7df254440e Mention that Salome Schneider did the parso logo. 2017-09-04 22:52:07 +02:00
Dave Halter 05a8236d3f Small corrections. 2017-09-04 22:51:17 +02:00
Dave Halter 2067845cef Try to recommend using parso without diff_cache. 2017-09-04 22:03:12 +02:00
Dave Halter dcdd3bbc8e More tree docstrings. 2017-09-04 21:58:48 +02:00
Dave Halter 82868580a2 Fix a docstring. 2017-09-04 21:38:57 +02:00
Dave Halter a18baf0d2c The readme should match the documentation. 2017-09-04 21:31:45 +02:00
Dave Halter ed803f5749 A better README. 2017-09-04 21:22:51 +02:00
Dave Halter 032c7563c4 Document issues about our internal tree. 2017-09-04 20:54:48 +02:00
Dave Halter b83c641057 Better documentation for leafs/nodes. 2017-09-04 20:19:00 +02:00
Dave Halter 97d9aeafb7 Bettter NoeOrLeaf docstrings. 2017-09-04 09:48:23 +02:00
Dave Halter 7a277c7302 Move to python 3.6 intersphinx. 2017-09-03 23:32:43 +02:00
Dave Halter 5993765e0a Better documentation of issues. 2017-09-03 23:01:34 +02:00
Dave Halter 435d310c2b More general overhaul of the documentation. 2017-09-03 22:20:03 +02:00
Dave Halter 8aa280342a Rework the parse documentation. 2017-09-03 22:08:28 +02:00
Dave Halter 73c61bca4a More docstrings. 2017-09-03 18:36:03 +02:00
Dave Halter 60ed141d80 A few documentation improvements. 2017-09-03 14:02:53 +02:00
Dave Halter 091e72562c Bump version. 2017-09-03 01:14:35 +02:00
Dave Halter fc6202ffb3 Rename _get_definition to get_definition. 2017-09-03 00:42:06 +02:00
Dave Halter 0e201810fa Remove the old get_definition function. 2017-09-03 00:41:39 +02:00
Dave Halter 7a9739c5d6 Add an option to the new get_definition. 2017-09-02 23:45:50 +02:00
Dave Halter 1bf9ca94bb A small docstring. 2017-09-02 22:41:15 +02:00
Dave Halter a4d28d2eda Rework is_definition. 2017-09-02 17:26:29 +02:00
Dave Halter 36ddbaddf4 Remove a note about not parsing f-strings. 2017-09-02 14:13:47 +02:00
Dave Halter b944fb9145 Fix a test around rb/br string literals. 2017-09-02 14:09:15 +02:00
Dave Halter 7a85409da7 Get rid of one more isinstance. 2017-09-02 13:59:21 +02:00
Dave Halter e79c0755eb iter_return_stmts should also return return statements without a value. 2017-09-02 12:32:32 +02:00
Dave Halter 9ab5937a3c Fix yield scanning. 2017-09-01 18:03:47 +02:00
Dave Halter d3e58955a9 iter_yield_expr should not work correctly. 2017-09-01 09:34:01 +02:00
Dave Halter a21ec2c0ad Better yield/yield from support. 2017-09-01 01:06:07 +02:00
Dave Halter 910a660c6f Fix some todos. 2017-09-01 00:35:22 +02:00
Dave Halter 68fa70b959 future_import_names is not public, at the moment. 2017-09-01 00:25:32 +02:00
Dave Halter fa0bf4951c Fix string prefixes for Python2. 2017-09-01 00:20:24 +02:00
Dave Halter ba2c0ad41a Bump version. 2017-08-31 22:44:15 +02:00
Dave Halter 4b32408001 Finally get a release out with this script. 2017-08-31 22:41:28 +02:00
Dave Halter 5c3304f7c2 Move start symbols a bit. 2017-08-31 19:39:27 +02:00