summaryrefslogtreecommitdiff
path: root/pycparser/_ast_gen.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix Flake8 Errors (#442)Eisuke Kawashima2021-10-151-1/+0
| | | | | | | | | * Fix PEP8 [E101](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E711](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix E999 (python2) * Fix PEP8 [F401](https://flake8.pycqa.org/en/4.0.1/user/error-codes.html)
* Implement _Alignas and _Alignof support with tests (#435)Vitaly Cheptsov2021-10-041-1/+0
| | | | | | | | | | | | | | | * Implement _Alignas and _Alignof support with tests * Improve testing and avoid unnecessary alignas for typedef * Add more tests * Drop legacy artifact * Remove extra _add_declaration_specifier call * Drop custom equality comparators for now Co-authored-by: vit9696 <vit9696@users.noreply.github.com>
* Clean up whitespace in generated AST codeEli Bendersky2020-04-151-5/+5
|
* Use https:// for all project links where available (#267)Jon Dufresne2018-06-261-2/+2
|
* Implement __repr__ on Nodes (Issue #226) (#227)ldore2018-01-171-0/+29
| | | | * Implement __repr__ on Nodes.
* Minor cleanupsEli Bendersky2017-11-221-11/+2
| | | | | - Removed unnecessary whitespace - Removed old & stale 'if __main__' sections in some of the library files
* Improve NodeVisitor performance, add iterator on Node children (Issue #219). ↵ldore2017-11-201-4/+44
| | | | | | | (#220) Improve NodeVisitor performance, add iterator on Node children.
* Remove Copyright from every source fileEli Bendersky2017-02-021-2/+2
| | | | Replace it by website link; copyright appears in the LICENSE file already, which is sufficient
* Various cosmetic updates to documentationEli Bendersky2015-05-101-2/+2
|
* Support weakref to AST objects.Eli Bendersky2015-04-211-2/+2
| | | | | | | weakref support was broken by setting __slots__ on AST objects to conserve memory. Reinstate it. See issue #76, #75
* Decrease memory usage of pycparser by using __slots__ in AST nodes.Eli Bendersky2015-04-181-1/+6
| | | | | | | | | In general, there's no need to dynamically adjust the attributes of AST nodes. So __slots__ seems suitable. This reduces the memory usage of the test case reported in issue #72 from 21MB to 17.5MB and should reduce the amount of space consumed by AST nodes in general.
* cleanupsEli Bendersky2013-09-251-3/+3
|
* Cosmetic whitespace fixesEli Bendersky2013-09-241-43/+43
|
* typo & cosmetic changesEli Bendersky2012-02-031-2/+2
|
* fix problem in c-to-c generation of casts. Patch by Andreas KloecknerEli Bendersky2012-01-191-1/+2
|
* adding ability to Node.show to display each node's name (in its parent). ↵eli.bendersky2011-11-121-20/+33
| | | | Based on code contributed by Tomer Segal in Issue #51
* changed license notices to BSD in all fileseli.bendersky2011-04-291-4/+4
|
* Moved the .show method into the base class "Node" in _ast_gen.py, to make ↵eli.bendersky2011-02-041-24/+19
| | | | generated code much shorter
* releasing version 2.01 - removed yaml dependency, fix installation problemseli.bendersky2010-12-041-240/+255
|
* Implemented restrict and inline keywords for C99eli.bendersky2010-10-291-1/+1
| | | | inline: added field in Decl for it
* Backed out changeset: 8ee804744907eli.bendersky2010-08-131-0/+249
|
* Removall of dependency to yaml and use introspection for c_ast in place of ↵Charles Bajeux2010-08-131-249/+0
| | | | | | | | | | | | | | | generation. The goal is to have no generation of file even integrated. python is enough concise to avoid usage of a dsl like YAML. Introduction of introspection to act as the previously generated code. In such way it is possible to enrichen the class of the AST and drift from without the fear of alteration of the class in the future. sub class Node creation through introspection through the function subClassNode in ast which allow to have a more concise description of the nodes in the c_ast module.
* initial import from SVNEli Bendersky2010-05-211-0/+249