blob: b3621f82998216a9bb4f65f94229bea083329a6c [file] [log] [blame]
Eli Bendersky84336292016-03-19 05:48:10 -07001+ Version 2.15 (??.2016)
2
Eli Benderskya3af25f2016-04-19 05:18:51 -07003 - PR #121: Update bundled PLY version to 3.8
Eli Bendersky84336292016-03-19 05:48:10 -07004 - Issue #117: Fix parsing of extra semi-colons inside structure declarations.
5 - PR #109: Update c_generator to add {} around nested named initializers.
6 - PR #101: Added support for parsing pragmas into the AST.
7 - Additional fake headers and typedefs, manifest fixes (#97, #106, #111).
Eli Benderskyb912a582016-04-19 05:20:25 -07008 - Testing with Python 3.5 instead of 3.3 now (3.4 and 3.5 are the 3.x versions
9 tested).
Eli Bendersky99143602016-09-10 08:29:22 -070010 - PR #145: More complete support for offsetof()
Eli Bendersky6ba95442016-10-11 20:59:50 -070011 - Issue #116: Fix line numbers recorded for empty and compound statements.
Eli Bendersky84336292016-03-19 05:48:10 -070012
Eli Bendersky7f6b3402015-06-09 20:00:55 -070013+ Version 2.14 (09.06.2015)
Eli Benderskya1334e52015-05-18 06:24:05 -070014
Eli Bendersky7f6b3402015-06-09 20:00:55 -070015 - Added CParser parameter to specify output directory for generated parsing
16 tables (#84).
17 - Removed lcc's cpp and its license from the distribution. Using lcc's cpp
18 is no longer recommended, now that Clang has binary builds available for
19 Windows.
Eli Benderskya1334e52015-05-18 06:24:05 -070020
Eli Benderskyc5463bd2015-05-12 06:06:21 -070021+ Version 2.13 (12.05.2015)
Eli Benderskyb85d5612015-05-10 06:31:39 -070022
Eli Benderskyc830da82015-05-10 07:56:41 -070023 - Added support for offsetof() the way gcc implements it (special builtin
24 that takes a type as an argument).
25 - Added faked va_* macros (these are expected to come from stdarg.h)
26 - Added a bunch more fake headers and typedefs to support parsing C projects
27 like Git and SQLite without modifications to pycparser.
28 - Added support for empty initializer lists (#79).
Eli Benderskyb85d5612015-05-10 06:31:39 -070029
Eli Benderskyf1b2db22015-04-21 17:37:54 -070030+ Version 2.12 (21.04.2015)
31
32 - This is a fix release for 2.11; the memory optimization with __slots__ on
33 Coord and AST nodes didn't take weakrefs into account, which broke cffi and
34 its many dependents (iseue #76). Fixed by adding __weakref__ to __slots__.
35
Eli Bendersky40af8bd2015-04-21 14:48:45 -070036+ Version 2.11 (21.04.2015)
Eli Benderskye7c55cf2014-01-25 06:15:43 -080037
Eli Bendersky8aad3182014-01-25 06:30:53 -080038 - Add support for C99 6.5.3.7 p7 - qualifiers within array dimensions in
39 function declarations. Started with issue #21 (reported with initial patch
40 by Robin Martinjak).
Eli Benderskyc9f1a382014-03-15 14:12:00 -070041 - Issue #27: bug in handling of unified wstring literals.
Eli Bendersky8e5d3a92014-03-15 14:06:00 -070042 - Issue #28: fix coord reporting for 'for' loops.
Eli Bendersky645855c2014-04-23 17:01:07 -070043 - Added ``examples/using_gcc_E_libc.py`` to demonstrate how ``gcc -E`` can
44 be used instead of ``cpp`` for preprocessing.
Eli Benderskyba1b7a02015-01-17 06:35:55 -080045 - Pull request #64: support keywords like const, volatile, restrict and static
46 in dimensions in array declarations.
Eli Bendersky08744122015-04-18 07:03:40 -070047 - Reduce memory usage of AST nodes (issue #72).
Eli Benderskyb17da152015-04-21 14:35:18 -070048 - Parsing order of nested pointer declarations fixed (issue #68).
Eli Benderskye7c55cf2014-01-25 06:15:43 -080049
Eli Bendersky8dbd1492013-08-03 06:07:08 -070050+ Version 2.10 (03.08.2013)
Eli Bendersky6e658942013-06-08 07:04:38 -070051
Eli Bendersky3877c4c2013-07-13 06:54:04 -070052 - A number of improvements in the handling of typedef-name ambiguities,
53 contributed by Sye van der Veen in GitHub issue #1:
54
Eli Benderskyfebd20b2013-07-30 06:45:08 -070055 * Allow shadowing of types by identifiers in inner scopes.
Eli Bendersky3877c4c2013-07-13 06:54:04 -070056 * Allow struct field names to reside in a separate namespace and have
57 the same names as types.
58 * Allow duplicate typedefs in some cases to mimic real compiler behavior.
59
Eli Bendersky39219c12013-06-12 06:18:37 -070060 - c_generator error for ExprList in expression context.
61 - Assume default int type for functions whose argument or return types were
62 not specified.
63 - Relax the lexer a bit w.r.t. some integer suffixes and $ in identifier names
64 (which is supported by some other compilers).
Eli Bendersky6e658942013-06-08 07:04:38 -070065
Eli Benderskyb74f1fa2012-12-29 05:22:23 -080066+ Version 2.09.1 (29.12.2012)
67
68 - No actual functionality changes.
69 - The source distribution was re-packaged to contain the pre-generated Lex and
70 Yacc tables of PLY.
71
Eli Bendersky66191e22012-12-27 06:04:52 -080072+ Version 2.09 (27.12.2012)
Eli Bendersky93352512012-12-24 20:18:33 -080073
Eli Bendersky645e2602012-12-25 06:21:08 -080074 - The pycparser project has moved to Bitbucket. For this version, issue
75 numbers still refer to the old Googlecode project, unless stated otherwise.
76 Starting with the next version all issue numbers will refer to the new
77 Bitbucket project.
Eli Bendersky93352512012-12-24 20:18:33 -080078 - pycparser now carries its PLY dependency along. The pycparser/ply directory
79 contains the source of PLY for the currently supported version. This makes
80 distribution and testing easier.
Eli Bendersky00edfc12012-12-25 15:18:02 -080081 - Issue #79: fix generation of new switch/case AST nodes.
Eli Bendersky293ea912012-12-25 14:52:48 -080082 - Issue #83: fix parsing and C generation to distinguish between initializer
83 lists in declarations and initializing variables with parenthesized
84 comma-separated expressions.
Eli Bendersky4476d092012-12-25 14:07:57 -080085 - Issue #84: fix C generation for some statements.
Eli Bendersky4961d1b2012-12-25 06:50:59 -080086 - Issues #86 and #87: improve location reporting for parse errors.
Eli Bendersky4476d092012-12-25 14:07:57 -080087 - Issue #89: fix C generation for K&R-style function definitions.
Eli Bendersky93352512012-12-24 20:18:33 -080088
Eli Bendersky07f67a22012-08-10 08:48:31 +030089+ Version 2.08 (10.08.2012)
Eli Bendersky19400fd2012-06-22 09:38:23 +030090
Eli Bendersky09fc2002012-08-10 07:41:42 +030091 - Issue 73: initial support for #pragma directives. Consume them without
92 errors and ignore (no tokens are returned). Line numbers are preserved.
Eli Bendersky5a0abdf2012-07-07 06:52:23 +030093 - Issue 68: more correct handling of source files without any actual content.
94 - Issue 69: running all tests will now set appropriate return code.
Eli Bendersky0a3ef0b2012-07-06 15:54:29 +030095 - Better error reporting in case where multiple type specifiers are provided.
96 Also fixes Issue 60.
Eli Bendersky5a0abdf2012-07-07 06:52:23 +030097 - Issue 63: line endings cleanup for consistent LF ending.
98 - Issues 64 & 65: added some more headers and typedefs to fake includes.
Eli Bendersky949ad822012-08-10 07:04:20 +030099 - Refactoring the cpp invocation in parse_file into a separate function, which
100 can also be used as a utility.
Eli Benderskyd9649812012-08-10 08:27:12 +0300101 - Issue 74: some Windows include paths were handled incorrectly.
Eli Bendersky19400fd2012-06-22 09:38:23 +0300102
Eli Bendersky081bac22012-06-16 16:10:39 +0300103+ Version 2.07 (16.06.2012)
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300104
Eli Bendersky203b9672012-06-15 10:11:24 +0300105 - Issue 54: added an optional parser argument to parse_file
106 - Issue 59: added some more fake headers for C99
107 - Issue 62: correct coord for Ellipsis nodes
Eli Bendersky3b1b08d2012-06-15 12:37:54 +0300108 - Issue 57: support for C99 hexadecimal float constants
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300109 - Made running tests that call on 'cpp' a bit more robust.
110
111+ Version 2.06 (04.02.2012)
112
113 - Issue 48: gracefully handle parsing of empty files
114 - Issues 49 & 50: handle more escaped chars in paths to #line - "..\..\test.h".
115 - Support for C99 _Complex type.
116 - CGenerator moves from examples/ to pycparser/ as a first-class citizen, and
117 added some fixes to it. examples/c-to-c.py still stays as a convenience
118 wrapper.
119 - Fix problem with parsing a file in which the first statement is just a
120 semicolon.
121 - Improved the AST created for switch statements, making it closer to the
122 semantic meaning than to the grammar.
123
124+ Version 2.05 (16.10.2011)
125
126 - Added support for the C99 ``_Bool`` type and ``stdbool.h`` header file
127 - Expanded ``examples/explore_ast.py`` with more details on working with the
128 AST
129 - Relaxed the rules on parsing unnamed struct members (helps parse ``windows.h``)
130 - Bug fixes:
131
132 * Fixed spacing issue for some type declarations
133 * Issue 47: display empty statements (lone ';') correctly after parsing
134
135+ Version 2.04 (21.05.2011)
136
137 - License changed from LGPL to BSD
138 - Bug fixes:
139
140 * Issue 31: constraining the scope of typedef definitions
141 * Issues 33, 35: fixes for the c-to-c.py example
142
143 - Added C99 integer types to fake headers
144 - Added unit tests for the c-to-c.py example
145
146+ Version 2.03 (06.03.2011)
147
148 - Bug fixes:
149
150 * Issue 17: empty file-level declarations
151 * Issue 18: empty statements and declarations in functions
152 * Issue 19: anonymous structs & union fields
153 * Issue 23: fix coordinates of Cast nodes
154
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700155 - New example added (``examples/c-to-c.py``) for translating ASTs generated
156 by ``pycparser`` back into C code.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300157 - ``pycparser`` is now on PyPI (Python Package Index)
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700158 - Created `FAQ <http://code.google.com/p/pycparser/wiki/FAQ>`_ on
159 the ``pycparser`` project page
160 - Removed support for Python 2.5. ``pycparser`` supports Python 2
161 from 2.6 and on, and Python 3.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300162
163+ Version 2.02 (10.12.2010)
164
165 * The name of a ``NamedInitializer`` node was turned into a sequence of nodes
166 instead of an attribute, to make it discoverable by the AST node visitor.
167 * Documentation updates
168
169+ Version 2.01 (04.12.2010)
170
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700171 * Removed dependency on YAML. Parsing of the AST node configuration file
172 is done with a simple parser.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300173 * Fixed issue 12: installation problems
174
175+ Version 2.00 (31.10.2010)
176
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700177 * Support for C99 (read
178 `this wiki page <http://code.google.com/p/pycparser/wiki/C99support>`_
179 for more information).
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300180
181+ Version 1.08 (09.10.2010)
182
183 * Bug fixes:
184
185 + Correct handling of ``do{} ... while`` statements in some cases
186 + Issues 6 & 7: Concatenation of string literals
187 + Issue 9: Support for unnamed bitfields in structs
188
189+ Version 1.07 (18.05.2010)
190
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700191 * Python 3.1 compatibility: ``pycparser`` was modified to run
192 on Python 3.1 as well as 2.6
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300193
194+ Version 1.06 (10.04.2010)
195
196 * Bug fixes:
197
198 + coord not propagated to FuncCall nodes
199 + lexing of the ^= token (XOREQUALS)
200 + parsing failed on some abstract declarator rules
201
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700202 * Linux compatibility: fixed end-of-line and ``cpp`` path issues to allow
203 all tests and examples run on Linux
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300204
205+ Version 1.05 (16.10.2009)
206
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700207 * Fixed the ``parse_file`` auxiliary function to handle multiple arguments to
208 ``cpp`` correctly
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300209
210+ Version 1.04 (22.05.2009)
211
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700212 * Added the ``fake_libc_include`` directory to allow parsing of C code that
213 uses standard C library include files without dependency on a real C
214 library.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300215 * Tested with Python 2.6 and PLY 3.2
216
217+ Version 1.03 (31.01.2009)
218
219 * Accept enumeration lists with a comma after the last item (C99 feature).
220
221+ Version 1.02 (16.01.2009)
222
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700223 * Fixed problem of parsing struct/enum/union names that were named similarly
224 to previously defined ``typedef`` types.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300225
226+ Version 1.01 (09.01.2009)
227
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700228 * Fixed subprocess invocation in the helper function parse_file - now
229 it's more portable
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300230
231+ Version 1.0 (15.11.2008)
232
233 * Initial release
234 * Support for ANSI C89