Commit Graph

1068 Commits

Author SHA1 Message Date
Dave Halter fbed1ecfe0 More dict to set 2018-06-17 17:45:40 +02:00
Dave Halter 1f27fa9320 Use more nonterminal/terminal terminology 2018-06-17 17:37:15 +02:00
Dave Halter 23362ec2d3 Start using the term nonterminal 2018-06-17 16:40:11 +02:00
Dave Halter 6b391af071 Use sets instead of dicts if possible 2018-06-17 16:36:27 +02:00
Dave Halter c43cb21a0e Add docstring 2018-06-15 17:57:59 +02:00
Dave Halter 24346a0d32 Add some comments 2018-06-15 10:21:00 +02:00
Dave Halter 9d452ec66a Use a set instead of dict if it's not necessary 2018-06-15 00:35:39 +02:00
Dave Halter 567e0d7aed Simplify some code 2018-06-15 00:06:56 +02:00
Dave Halter 1f02327cff Some refactorings for simplicity 2018-06-14 18:18:57 +02:00
Dave Halter 8c348aee6f Use NFAArc as a class 2018-06-14 10:29:19 +02:00
Dave Halter a277ccf288 Some more renames 2018-06-14 01:10:23 +02:00
Dave Halter a5ce2caab6 Another rename 2018-06-13 23:19:52 +02:00
Dave Halter da4df9c0f1 Rename 2018-06-13 21:12:48 +02:00
Dave Halter bd444df417 Move the grammar parsing to a separate module 2018-06-13 21:01:06 +02:00
Dave Halter 275dbca1b9 More renames 2018-06-13 20:54:18 +02:00
Dave Halter 9a0b6f4928 Rename 2018-06-13 20:47:16 +02:00
Dave Halter fc5560874b Separate generating dfas from parsing 2018-06-13 20:46:36 +02:00
Dave Halter 6e5a520e7b Cleanup some names 2018-06-13 10:18:05 +02:00
Dave Halter dcabf3d415 Remove some code that is not used anymore 2018-06-13 10:15:21 +02:00
Dave Halter 3bc82d112d Some cleanups and documentation 2018-06-13 10:10:17 +02:00
Dave Halter ec186a78f8 Move out some more functions out of classes 2018-06-13 01:50:25 +02:00
Dave Halter 3818fb2b22 Some more refactorings for clarification 2018-06-13 01:44:44 +02:00
Dave Halter 95ddeb4012 Factor out start_symbol into a better position 2018-06-13 00:54:18 +02:00
Dave Halter f638abb08e Refactor out dfas 2018-06-13 00:31:45 +02:00
Dave Halter f8558df27a Document pgen grammars a bit better 2018-06-13 00:27:51 +02:00
Dave Halter bae56e72e1 addarc -> add_arc 2018-06-12 22:13:08 +02:00
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
Aaron Meurer 34154d05a0 Don't mutate the standard library token.tok_name dictionary (#42)
* Don't mutate the standard library token.tok_name dictionary

Fixes #41.

* More robust test that tok_name isn't mutated

This test now works in Python 2.7, and actually tests something in Python 3.7,
and it's better anyway because it tests the whole dictionary instead of just
one token.

* Fix test_tok_name_copied in Python 3.7 and PyPy

Apparently Python 3.7 adds N_TOKENS to the tok_name dictionary, and PyPy
doesn't have NT_OFFSET in it.
2018-06-08 18:46:16 +02:00
Dave Halter 6f385bdba1 Not testing Python 3.3 anymore on travis. It seems to be broken v0.2.1 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
Aaron Meurer f4912f6c17 Use the correct field name in the PythonToken repr 2018-04-19 22:20:23 +02:00
Jonas Tranberg bf5a4b7c2c Added path param to load_grammar for loading custom grammar files 2018-04-19 10:16:33 +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 v0.2.0 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