summaryrefslogtreecommitdiff
path: root/pycparser
Commit message (Collapse)AuthorAgeFilesLines
* Prepare 2.16 for releaserelease_v2.16Eli Bendersky2016-10-181-2/+2
|
* Prepare for releasing v2.15release_v2.15Eli Bendersky2016-10-181-1/+1
|
* Issue #116: Fix coord assignment to compound statementsEli Bendersky2016-10-111-0/+2
|
* Issue #116: Fix line number assignment to EmptyStatementEli Bendersky2016-10-111-1/+1
|
* Improve the behavior of pathological bad string literals a bit.Eli Bendersky2016-10-101-1/+1
| | | | | By making the first * non-greedy, performance is ~10-15% better; it still demonstrates pahological backtracking slowness (issue #61).
* Adding test for exercising issue #61Eli Bendersky2016-10-101-1/+1
| | | | | The test shows that on a simple lexer level the issue doesn't manifest. It does, however, manifest if parsing a file.
* Fix eliben/pycparser#87 : offsetof() support is incompleteksero2016-09-091-1/+16
|
* report filename if error is "at end of input"Julian Hammer2016-08-161-1/+1
|
* Allow user to decide which lexer the parser uses.Erik Soma2016-07-251-2/+7
|
* Protected expressions in ternary operator with paranthesis.Daniel Murdin2016-07-141-3/+3
|
* Upgrade ply to 3.8Frederick Wagner2016-04-187-1411/+1759
| | | | The new version includes some bugfixes that affect downstream projects.
* Fix parsing of extra semi-colons inside structure declarations.Eli Bendersky2016-03-191-1/+9
| | | | Fixes #117
* Fix trivial comment typo.Matthew Fernandez2016-03-091-1/+1
|
* Merge pull request #109 from jamie-pate/masterEli Bendersky2015-12-151-1/+1
|\ | | | | Update c_generator to add {} around nested NamedInitializers
| * Update c_generator to add {} around nested NamedInitializersJamie Pate2015-12-151-1/+1
| |
* | fixed #107 "No coord for Prgama Node"Julian Hammer2015-12-151-2/+2
|/
* Add support for #pragmaJulian Hammer2015-10-205-11/+44
| | | | | | | | | | | | Preprocessor pragmas and their arguments are tokenized (as PPPRAGMA and PPPRAGMASTR) and included in the AST as a pppragma directive with the argument as value. If no argument was given the string will be empty. Unit test of the lexer, parser and generator have been modified and added accordingly. The previous behavior, that #pragma lines would be ignored, is henceforth obsolete.
* Preparing for release 2.14release_v2.14Eli Bendersky2015-06-091-1/+1
|
* Added taboutputdir parameter to control outputdir for tab filesShai Berger2015-06-091-3/+10
|
* Update version and CHANGES for 2.13 releaserelease_v2.13Eli Bendersky2015-05-121-1/+1
|
* Various cosmetic updates to documentationEli Bendersky2015-05-1010-11/+11
|
* Adding support for empty initializer lists.Eli Bendersky2015-05-101-2/+6
| | | | The idea comes from #79 but the implementation is somewhat different.
* Adding support for offsetof()Eli Bendersky2015-05-092-1/+10
|
* Release 2.12release_v2.12Eli Bendersky2015-04-211-1/+1
|
* Support weakref to AST objects.Eli Bendersky2015-04-213-49/+49
| | | | | | | weakref support was broken by setting __slots__ on AST objects to conserve memory. Reinstate it. See issue #76, #75
* Prepare for release 2.11release_v2.11Eli Bendersky2015-04-212-3/+1
|
* Cosmetic cleanupsEli Bendersky2015-04-201-2/+0
|
* Fix parsing order of nested PtrDeclsEli Bendersky2015-04-201-12/+28
| | | | Closes #68
* Cosmetic cleanupsEli Bendersky2015-04-201-1/+0
|
* Fix parsing of array declsEli Bendersky2015-04-201-3/+4
| | | | | After qualifiers were added, some problems seeped in assigning dimensions properly.
* Allow binary constants (e.g.: 0b01010)Konstanty Bialkowski2015-04-202-1/+9
| | | - Add lexer and parser tests.
* Add __slots__ to the Coord class.Eli Bendersky2015-04-181-0/+1
| | | | This further reduces memory usage for large inputs (#72)
* Decrease memory usage of pycparser by using __slots__ in AST nodes.Eli Bendersky2015-04-184-25/+77
| | | | | | | | | 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.
* adds visit_FuncDecl method to CGenerator + testSpencer Russell2015-02-201-2/+3
|
* Align array dimension grammar with the C standard.necase2015-01-111-23/+33
| | | | | | | | | | | | | | | | The pycparser grammar for direct-declarators diverged with the C standard, which permits const, volatile, restrict, and static to be modifiers in the array dimension. The relevant grammar can be found in section 6.7.5. The old p_direct_declarator_3 was split into two rules, and the remaining p_direct_declarator rules were renumbered, preserving precedence. So p_direct_declarator_3 now matches array declarations with optional type qualifiers or assignment expressions; p_direct_declarator_4 matches declarations with the static keyword; p_direct_declarator_5 matches the variable-length array declarations; and p_direct_declarator_6 matches declarations with parentheses.
* Merge pull request #59 from akiradeveloper/feature/fix-comma-op-assignEli Bendersky2014-10-051-1/+1
|\ | | | | fix: Comma operator in Assignment
| * fix: Comma operator in AssignmentAkira Hayakawa2014-09-201-1/+1
| | | | | | | | Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
* | fix typoAkira Hayakawa2014-09-201-1/+1
|/ | | | Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
* fix: comma operator in ternary operatorAkira Hayakawa2014-09-201-19/+14
| | | | Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
* Fix #33 pragma error when '=' occurs.wvi2014-09-091-1/+1
| | | | '=' added to pppragma_ignore.
* Bug in c_generator: children now returns a list of 2-tuplesSye van der Veen2014-05-231-1/+1
|
* Fix issue #27: handle unified wstring literals properlyEli Bendersky2014-03-151-1/+1
|
* Fix issue #28: coord for 'for' loopsEli Bendersky2014-03-151-1/+2
|
* fix for issue #24wayrick2014-02-061-1/+1
|
* Fuller support for qualifiers in array dimensions.Eli Bendersky2014-01-253-7/+27
| | | | Added a field to the ArrayDecl node and modified tests
* Add support for arr[const 10] in function declarations too;Eli Bendersky2014-01-252-1/+2
| | | | and move tests around.
* allow "static" in array parameters (GH issue #21)Robin Martinjak2014-01-221-1/+2
|
* moar cleanupsEli Bendersky2013-09-251-6/+6
|
* cleanupsEli Bendersky2013-09-253-30/+30
|
* Cosmetic whitespace fixesEli Bendersky2013-09-242-231/+231
|