Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | pycode: Replace pgen2 by own parser | Takeshi KOMIYA | 2017-07-26 | 10 | -6280/+0 |
| | |||||
* | Use `with` on file write to ensure closure | Robin Neatherway | 2017-07-19 | 1 | -3/+2 |
| | |||||
* | Mark unused loop iteration variable as such | Robin Neatherway | 2017-07-19 | 1 | -1/+1 |
| | |||||
* | Fix mypy violations | Takeshi KOMIYA | 2017-07-15 | 1 | -1/+1 |
| | |||||
* | Upgrade to mypy-0.5 | Takeshi KOMIYA | 2017-03-03 | 4 | -3/+7 |
| | |||||
* | Fix mypy violations | Takeshi KOMIYA | 2017-02-08 | 2 | -3/+3 |
| | |||||
* | Add type-check annotations to sphinx.* | Takeshi KOMIYA | 2016-11-16 | 4 | -30/+46 |
| | |||||
* | Fix #2919: Drop py26 support | Takeshi KOMIYA | 2016-09-15 | 1 | -4/+1 |
| | |||||
* | Remove sphinx version from the filename of compiled grammar files | Takeshi KOMIYA | 2016-07-12 | 1 | -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 KOMIYA | 2016-07-12 | 1 | -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`` syntax | Takeshi KOMIYA | 2016-05-26 | 1 | -4/+1 |
| | |||||
* | Treat async/await as anonymous token and deal with them in tokenize.py | Alberto Berti | 2015-11-09 | 2 | -2/+14 |
| | | | | .. as cpython's parser does | ||||
* | Update Python3 grammar to Python3.5 | Alberto Berti | 2015-11-09 | 2 | -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 Lorentz | 2015-08-20 | 1 | -1/+4 |
| | |||||
* | Make grammar generation deterministic. | Valentin Lorentz | 2015-08-19 | 1 | -4/+11 |
| | |||||
* | Fix: pgen2 tokenizer doesn't recognize `...` literal (Ellipsis for py3). ↵ | Takayuki Shimizukawa | 2014-08-28 | 1 | -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 Shimizukawa | 2014-05-01 | 1 | -1/+1 |
| | | | | 'dict.values()/list(dict.values())'. refs #1350. | ||||
* | wrap py3 iterators with list() for each places that expect a list object. ↵ | Takayuki Shimizukawa | 2014-04-30 | 2 | -3/+4 |
| | | | | refs #1350. | ||||
* | use six privided text_type() to replace with unicode() to support py2/py3 in ↵ | Takayuki Shimizukawa | 2014-04-29 | 1 | -1/+4 |
| | | | | one source. refs #1350. | ||||
* | provide __next__() and use native next() to support py2/py3 in one source. ↵ | Takayuki Shimizukawa | 2014-04-29 | 1 | -2/+2 |
| | | | | refs #1350. | ||||
* | wrap iterator with list() to avoid 'dictionary changed size during ↵ | Takayuki Shimizukawa | 2014-04-29 | 2 | -3/+3 |
| | | | | iteration' on py3. refs #1350. | ||||
* | use six privided iteritems(),itervalues() to support py2/py3 in one source. ↵ | Takayuki Shimizukawa | 2014-04-29 | 1 | -7/+9 |
| | | | | refs #1350. | ||||
* | consistency nits | Georg Brandl | 2014-01-22 | 2 | -2/+5 |
| | |||||
* | Modernize the code now that Python 2.5 is no longer supported | Dmitry Shachnev | 2014-01-19 | 5 | -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 heads | Takayuki Shimizukawa | 2014-01-15 | 1 | -89/+0 |
|\ | |||||
| * | Drop python-2.5 and remove 2.4,2.5 support codes | Takayuki Shimizukawa | 2013-12-15 | 1 | -89/+0 |
| | | |||||
* | | Closes #1152: Fix pycode parsing errors of Python 3 code by including two ↵ | Georg Brandl | 2014-01-12 | 3 | -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 Brandl | 2014-01-10 | 1 | -2/+4 |
|/ | |||||
* | merge with 1.0 | Georg Brandl | 2010-12-28 | 1 | -1/+1 |
|\ | |||||
| * | major.minor version is enough for the grammar pickle. | Georg Brandl | 2010-12-09 | 1 | -1/+1 |
| | | |||||
* | | don't assume strings to be byte strings | Daniel Neuhäuser | 2010-05-24 | 1 | -1/+1 |
| | | |||||
* | | Fixed issue #1 | Daniel Neuhäuser | 2010-05-01 | 1 | -1/+3 |
|/ | |||||
* | merge with trunk | Georg Brandl | 2010-02-17 | 2 | -1692/+3071 |
|\ | |||||
| * | Work a bit on the experimental Cython version of pgen2.parse. | Georg Brandl | 2010-01-31 | 2 | -1692/+3071 |
| | | |||||
* | | Remove XXXes from the pgen2 code. | Georg Brandl | 2010-01-17 | 2 | -3/+3 |
| | | |||||
* | | Make the _ gettext alias an explicit import instead of installing into builtins. | Georg Brandl | 2010-01-17 | 2 | -3/+3 |
|/ | |||||
* | merge in Ben's bundle with more py3k compatibility | Georg Brandl | 2009-01-10 | 1 | -2/+2 |
|\ | |||||
| * | normalize raise statements | Benjamin Peterson | 2009-01-10 | 1 | -2/+2 |
| | | |||||
* | | Changed the tokenizer in pgen2 to add a newline to lines even if it's ↵ | Armin Ronacher | 2009-01-09 | 1 | -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 Brandl | 2009-01-04 | 1 | -1/+3 |
| | |||||
* | Support all types of string literals in literals.py. | Georg Brandl | 2009-01-04 | 1 | -10/+44 |
| | |||||
* | Add Python license info, add parse.c source generated by Cython. | Georg Brandl | 2009-01-01 | 2 | -1/+3264 |
| | |||||
* | * Add a tag-finding method based on tokens. | Georg Brandl | 2008-12-30 | 1 | -9/+9 |
| | | | | | * Don't parse immediately if tokenizing suffices. * Also cache by file name. | ||||
* | Some speedups in pytree. | Georg Brandl | 2008-12-30 | 1 | -0/+156 |
| | | | | Add Cython parse.py replacement, yielding a 2x speedup in parsing. | ||||
* | Add pgen2 and custom utilities. | Georg Brandl | 2008-12-29 | 8 | -0/+1452 |