summaryrefslogtreecommitdiff
path: root/pycparser/plyparser.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos (#443)Kian Meng Ang2021-10-181-2/+2
| | | | | * Fix typos * Revert changes in vendor module
* Use https:// for all project links where available (#267)Jon Dufresne2018-06-261-1/+1
|
* Address an import of pycparser in -OO mode.Eli Bendersky2017-07-131-2/+19
| | | | | | | In this mode there are no docstrings; we don't want an instantiation of CParser to fail, though it won't actually work correctly if used. See #197 and #198
* Add column support in c_parser (#178)serpilliere2017-03-101-0/+11
|
* Update changes and reformat commentEli Bendersky2017-02-221-3/+3
|
* Fix parsing TYPEIDs in declarators (#169)Nate Bogdanowicz2017-02-221-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove `init_declarator_list` workarounds * Remove `struct_declaration` workaround * Remove `declarator` pointer workaround * Add `@parameterized` decorator for parser rules * Rename `declarator` productions to `id_declarator` in preparation of adding `typeid_declarator` * Use `id_declarator` in function definitions * Add `typeid_declarator` and allow it as a `declarator` * Create separate production for `type_specifier_no_typeid` * Allow specifiers to be appended (useful for left-recursive lists) * Change `specifier_qualifier_list` to be left-recursive and require at least one `type specifier` * Change `declaration_specifiers` to require one `type_specifier` and disallow `typeid`s once we've seen a `type_specifier` * Allow `decl_body` to omit a `type_specifier` if `init_declarator` doesn't start with a TYPEID * Add `typeid_noparen_declarator` for use in `parameter_declaration`s * Add test for multi-declarator declaration using a typedef name * Move test into a more appropriate function and add another test * Expand UnaryOp in `expand_init()` * Add test for redefining name in the middle of a declaration * Added info on the `append` parameter. * Move rule template processing to a class constructor * Auto-remove template methods and remove leading underscores * Use xxx/yyy instead of XXX/YYY for better readability * Add more documentation of the templating functions * Add test for correct handling of ambiguity in parameter declarations * Don't test incremental generation of declarators yet
* Remove Copyright from every source fileEli Bendersky2017-02-021-1/+1
| | | | Replace it by website link; copyright appears in the LICENSE file already, which is sufficient
* Various cosmetic updates to documentationEli Bendersky2015-05-101-1/+1
|
* Support weakref to AST objects.Eli Bendersky2015-04-211-1/+1
| | | | | | | weakref support was broken by setting __slots__ on AST objects to conserve memory. Reinstate it. See issue #76, #75
* Cosmetic cleanupsEli Bendersky2015-04-201-1/+0
|
* Add __slots__ to the Coord class.Eli Bendersky2015-04-181-0/+1
| | | | This further reduces memory usage for large inputs (#72)
* Make sure the parser remembers the coordinates of simple string typesEli Bendersky2012-07-061-54/+54
| | | | | | | | (such as 'int' or typedef_name) by always keeping them in an IdentifierType node. This allows to correctly report some errors, which fixes issue 60. Also cleanup some whitespace & formatting issues, and replace deprecated unittest methods for python3.
* changed license notices to BSD in all fileseli.bendersky2011-04-291-2/+2
|
* initial implementation of C99 named initializers and compound literals. The ↵eli.bendersky2010-10-301-1/+1
| | | | latter still doesn't work because of a shift/reduce conflict
* initial import from SVNEli Bendersky2010-05-211-0/+55