summaryrefslogtreecommitdiff
path: root/sphinx/pycode/pgen2
Commit message (Collapse)AuthorAgeFilesLines
* pycode: Replace pgen2 by own parserTakeshi KOMIYA2017-07-2610-6280/+0
|
* Use `with` on file write to ensure closureRobin Neatherway2017-07-191-3/+2
|
* Mark unused loop iteration variable as suchRobin Neatherway2017-07-191-1/+1
|
* Fix mypy violationsTakeshi KOMIYA2017-07-151-1/+1
|
* Upgrade to mypy-0.5Takeshi KOMIYA2017-03-034-3/+7
|
* Fix mypy violationsTakeshi KOMIYA2017-02-082-3/+3
|
* Add type-check annotations to sphinx.*Takeshi KOMIYA2016-11-164-30/+46
|
* Fix #2919: Drop py26 supportTakeshi KOMIYA2016-09-151-4/+1
|
* Remove sphinx version from the filename of compiled grammar filesTakeshi KOMIYA2016-07-121-2/+1
| | | | | | Now sphinx bundles the compiled grammar files. Then it will be replaced on upgrading sphinx. So the sphinx version is not needed on its filename.
* Bundle sphinx/pycode/Grammar-*.pickle (ref: #2765)Takeshi KOMIYA2016-07-121-16/+26
| | | | | | So far, sphinx generates the grammar files on demand. It causes uninstallation does not remove whole of files. With this fix, Sphinx bundles the files in the package.
* Refactor code using ``with`` syntaxTakeshi KOMIYA2016-05-261-4/+1
|
* Treat async/await as anonymous token and deal with them in tokenize.pyAlberto Berti2015-11-092-2/+14
| | | | .. as cpython's parser does
* Update Python3 grammar to Python3.5Alberto Berti2015-11-092-7/+13
| | | | Taken from https://hg.python.org/cpython/file/3.5/Grammar/Grammar@99014:0c704864b917
* Fix Python 2.6 incompatibility introduced in 4e77027.Valentin Lorentz2015-08-201-1/+4
|
* Make grammar generation deterministic.Valentin Lorentz2015-08-191-4/+11
|
* Fix: pgen2 tokenizer doesn't recognize `...` literal (Ellipsis for py3). ↵Takayuki Shimizukawa2014-08-281-2/+9
| | | | | | Closes #1547 I think pgen2 code derived from lib2to3 package. Basically, the package only support python2 code then it doesn't recognize `...` literal.
* fix py2/py3 compat for 'iter.next()/next(iter)' and ↵Takayuki Shimizukawa2014-05-011-1/+1
| | | | 'dict.values()/list(dict.values())'. refs #1350.
* wrap py3 iterators with list() for each places that expect a list object. ↵Takayuki Shimizukawa2014-04-302-3/+4
| | | | refs #1350.
* use six privided text_type() to replace with unicode() to support py2/py3 in ↵Takayuki Shimizukawa2014-04-291-1/+4
| | | | one source. refs #1350.
* provide __next__() and use native next() to support py2/py3 in one source. ↵Takayuki Shimizukawa2014-04-291-2/+2
| | | | refs #1350.
* wrap iterator with list() to avoid 'dictionary changed size during ↵Takayuki Shimizukawa2014-04-292-3/+3
| | | | iteration' on py3. refs #1350.
* use six privided iteritems(),itervalues() to support py2/py3 in one source. ↵Takayuki Shimizukawa2014-04-291-7/+9
| | | | refs #1350.
* consistency nitsGeorg Brandl2014-01-222-2/+5
|
* Modernize the code now that Python 2.5 is no longer supportedDmitry Shachnev2014-01-195-17/+22
| | | | | | | | | | | - Use print function instead of print statement; - Use new exception handling; - Use in operator instead of has_key(); - Do not use tuple arguments in functions; - Other miscellaneous improvements. This is based on output of `futurize --stage1`, with some manual corrections.
* merge headsTakayuki Shimizukawa2014-01-151-89/+0
|\
| * Drop python-2.5 and remove 2.4,2.5 support codesTakayuki Shimizukawa2013-12-151-89/+0
| |
* | Closes #1152: Fix pycode parsing errors of Python 3 code by including two ↵Georg Brandl2014-01-123-2/+5
| | | | | | | | | | | | | | grammar versions for Python 2 and 3, and loading the appropriate version for the running Python version.
* | Closes #641: use Sphinx version in cache pickle filename.Georg Brandl2014-01-101-2/+4
|/
* merge with 1.0Georg Brandl2010-12-281-1/+1
|\
| * major.minor version is enough for the grammar pickle.Georg Brandl2010-12-091-1/+1
| |
* | don't assume strings to be byte stringsDaniel Neuhäuser2010-05-241-1/+1
| |
* | Fixed issue #1Daniel Neuhäuser2010-05-011-1/+3
|/
* merge with trunkGeorg Brandl2010-02-172-1692/+3071
|\
| * Work a bit on the experimental Cython version of pgen2.parse.Georg Brandl2010-01-312-1692/+3071
| |
* | Remove XXXes from the pgen2 code.Georg Brandl2010-01-172-3/+3
| |
* | Make the _ gettext alias an explicit import instead of installing into builtins.Georg Brandl2010-01-172-3/+3
|/
* merge in Ben's bundle with more py3k compatibilityGeorg Brandl2009-01-101-2/+2
|\
| * normalize raise statementsBenjamin Peterson2009-01-101-2/+2
| |
* | Changed the tokenizer in pgen2 to add a newline to lines even if it's ↵Armin Ronacher2009-01-091-0/+5
|/ | | | missing. This makes sure that a file that does not end with a newline is properly parsed.
* Add support for decoding strings and comments to the analyzer.Georg Brandl2009-01-041-1/+3
|
* Support all types of string literals in literals.py.Georg Brandl2009-01-041-10/+44
|
* Add Python license info, add parse.c source generated by Cython.Georg Brandl2009-01-012-1/+3264
|
* * Add a tag-finding method based on tokens.Georg Brandl2008-12-301-9/+9
| | | | | * Don't parse immediately if tokenizing suffices. * Also cache by file name.
* Some speedups in pytree.Georg Brandl2008-12-301-0/+156
| | | | Add Cython parse.py replacement, yielding a 2x speedup in parsing.
* Add pgen2 and custom utilities.Georg Brandl2008-12-298-0/+1452