Eli Bendersky | dfeac9e | 2017-01-28 07:08:43 -0800 | [diff] [blame] | 1 | + Version 2.18 (??) |
| 2 | |
| 3 | - PR #161: Update bundled PLY version to 3.9 |
Eli Bendersky | dfeac9e | 2017-01-28 07:08:43 -0800 | [diff] [blame] | 4 | - PR #158: Add support for the __int128 type. |
Eli Bendersky | 516af94 | 2017-03-10 06:07:29 -0800 | [diff] [blame^] | 5 | - PR #169: Handle more tricky TYPEID in declarators. |
| 6 | - PR #178: Add columns to the coord of each node |
Eli Bendersky | dfeac9e | 2017-01-28 07:08:43 -0800 | [diff] [blame] | 7 | |
Eli Bendersky | f29f92a | 2016-10-27 20:15:49 -0700 | [diff] [blame] | 8 | + Version 2.17 (29.10.2016) |
| 9 | |
| 10 | - Again functionality identical to 2.15 and 2.16; the difference is that the |
| 11 | tarball now contains Python files with properly set permissions. |
| 12 | |
Eli Bendersky | f2275a6 | 2016-10-18 08:14:27 -0700 | [diff] [blame] | 13 | + Version 2.16 (18.10.2016) |
| 14 | |
| 15 | - Functionally identical to 2.15, but fixes a packaging problem that caused |
| 16 | failed installation (_build_tables wasn't rerun in the pycparser/ dir). |
| 17 | |
Eli Bendersky | 9e9855b | 2016-10-18 06:14:24 -0700 | [diff] [blame] | 18 | + Version 2.15 (18.10.2016) |
Eli Bendersky | 8433629 | 2016-03-19 05:48:10 -0700 | [diff] [blame] | 19 | |
Eli Bendersky | a3af25f | 2016-04-19 05:18:51 -0700 | [diff] [blame] | 20 | - PR #121: Update bundled PLY version to 3.8 |
Eli Bendersky | 8433629 | 2016-03-19 05:48:10 -0700 | [diff] [blame] | 21 | - Issue #117: Fix parsing of extra semi-colons inside structure declarations. |
| 22 | - PR #109: Update c_generator to add {} around nested named initializers. |
| 23 | - PR #101: Added support for parsing pragmas into the AST. |
| 24 | - Additional fake headers and typedefs, manifest fixes (#97, #106, #111). |
Eli Bendersky | b912a58 | 2016-04-19 05:20:25 -0700 | [diff] [blame] | 25 | - Testing with Python 3.5 instead of 3.3 now (3.4 and 3.5 are the 3.x versions |
| 26 | tested). |
Eli Bendersky | 9914360 | 2016-09-10 08:29:22 -0700 | [diff] [blame] | 27 | - PR #145: More complete support for offsetof() |
Eli Bendersky | 6ba9544 | 2016-10-11 20:59:50 -0700 | [diff] [blame] | 28 | - Issue #116: Fix line numbers recorded for empty and compound statements. |
Eli Bendersky | 9e9855b | 2016-10-18 06:14:24 -0700 | [diff] [blame] | 29 | - Minor performance improvement to the invalid string literal regex. |
Eli Bendersky | 8433629 | 2016-03-19 05:48:10 -0700 | [diff] [blame] | 30 | |
Eli Bendersky | 7f6b340 | 2015-06-09 20:00:55 -0700 | [diff] [blame] | 31 | + Version 2.14 (09.06.2015) |
Eli Bendersky | a1334e5 | 2015-05-18 06:24:05 -0700 | [diff] [blame] | 32 | |
Eli Bendersky | 7f6b340 | 2015-06-09 20:00:55 -0700 | [diff] [blame] | 33 | - Added CParser parameter to specify output directory for generated parsing |
| 34 | tables (#84). |
| 35 | - Removed lcc's cpp and its license from the distribution. Using lcc's cpp |
| 36 | is no longer recommended, now that Clang has binary builds available for |
| 37 | Windows. |
Eli Bendersky | a1334e5 | 2015-05-18 06:24:05 -0700 | [diff] [blame] | 38 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 39 | + Version 2.13 (12.05.2015) |
Eli Bendersky | b85d561 | 2015-05-10 06:31:39 -0700 | [diff] [blame] | 40 | |
Eli Bendersky | c830da8 | 2015-05-10 07:56:41 -0700 | [diff] [blame] | 41 | - Added support for offsetof() the way gcc implements it (special builtin |
| 42 | that takes a type as an argument). |
| 43 | - Added faked va_* macros (these are expected to come from stdarg.h) |
| 44 | - Added a bunch more fake headers and typedefs to support parsing C projects |
| 45 | like Git and SQLite without modifications to pycparser. |
| 46 | - Added support for empty initializer lists (#79). |
Eli Bendersky | b85d561 | 2015-05-10 06:31:39 -0700 | [diff] [blame] | 47 | |
Eli Bendersky | f1b2db2 | 2015-04-21 17:37:54 -0700 | [diff] [blame] | 48 | + Version 2.12 (21.04.2015) |
| 49 | |
| 50 | - This is a fix release for 2.11; the memory optimization with __slots__ on |
| 51 | Coord and AST nodes didn't take weakrefs into account, which broke cffi and |
Eli Bendersky | 05c2782 | 2016-10-27 20:13:29 -0700 | [diff] [blame] | 52 | its many dependents (issue #76). Fixed by adding __weakref__ to __slots__. |
Eli Bendersky | f1b2db2 | 2015-04-21 17:37:54 -0700 | [diff] [blame] | 53 | |
Eli Bendersky | 40af8bd | 2015-04-21 14:48:45 -0700 | [diff] [blame] | 54 | + Version 2.11 (21.04.2015) |
Eli Bendersky | e7c55cf | 2014-01-25 06:15:43 -0800 | [diff] [blame] | 55 | |
Eli Bendersky | 8aad318 | 2014-01-25 06:30:53 -0800 | [diff] [blame] | 56 | - Add support for C99 6.5.3.7 p7 - qualifiers within array dimensions in |
| 57 | function declarations. Started with issue #21 (reported with initial patch |
| 58 | by Robin Martinjak). |
Eli Bendersky | c9f1a38 | 2014-03-15 14:12:00 -0700 | [diff] [blame] | 59 | - Issue #27: bug in handling of unified wstring literals. |
Eli Bendersky | 8e5d3a9 | 2014-03-15 14:06:00 -0700 | [diff] [blame] | 60 | - Issue #28: fix coord reporting for 'for' loops. |
Eli Bendersky | 645855c | 2014-04-23 17:01:07 -0700 | [diff] [blame] | 61 | - Added ``examples/using_gcc_E_libc.py`` to demonstrate how ``gcc -E`` can |
| 62 | be used instead of ``cpp`` for preprocessing. |
Eli Bendersky | ba1b7a0 | 2015-01-17 06:35:55 -0800 | [diff] [blame] | 63 | - Pull request #64: support keywords like const, volatile, restrict and static |
| 64 | in dimensions in array declarations. |
Eli Bendersky | 0874412 | 2015-04-18 07:03:40 -0700 | [diff] [blame] | 65 | - Reduce memory usage of AST nodes (issue #72). |
Eli Bendersky | b17da15 | 2015-04-21 14:35:18 -0700 | [diff] [blame] | 66 | - Parsing order of nested pointer declarations fixed (issue #68). |
Eli Bendersky | e7c55cf | 2014-01-25 06:15:43 -0800 | [diff] [blame] | 67 | |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 68 | + Version 2.10 (03.08.2013) |
Eli Bendersky | 6e65894 | 2013-06-08 07:04:38 -0700 | [diff] [blame] | 69 | |
Eli Bendersky | 3877c4c | 2013-07-13 06:54:04 -0700 | [diff] [blame] | 70 | - A number of improvements in the handling of typedef-name ambiguities, |
| 71 | contributed by Sye van der Veen in GitHub issue #1: |
| 72 | |
Eli Bendersky | febd20b | 2013-07-30 06:45:08 -0700 | [diff] [blame] | 73 | * Allow shadowing of types by identifiers in inner scopes. |
Eli Bendersky | 3877c4c | 2013-07-13 06:54:04 -0700 | [diff] [blame] | 74 | * Allow struct field names to reside in a separate namespace and have |
| 75 | the same names as types. |
| 76 | * Allow duplicate typedefs in some cases to mimic real compiler behavior. |
| 77 | |
Eli Bendersky | 39219c1 | 2013-06-12 06:18:37 -0700 | [diff] [blame] | 78 | - c_generator error for ExprList in expression context. |
| 79 | - Assume default int type for functions whose argument or return types were |
| 80 | not specified. |
| 81 | - Relax the lexer a bit w.r.t. some integer suffixes and $ in identifier names |
| 82 | (which is supported by some other compilers). |
Eli Bendersky | 6e65894 | 2013-06-08 07:04:38 -0700 | [diff] [blame] | 83 | |
Eli Bendersky | b74f1fa | 2012-12-29 05:22:23 -0800 | [diff] [blame] | 84 | + Version 2.09.1 (29.12.2012) |
| 85 | |
| 86 | - No actual functionality changes. |
| 87 | - The source distribution was re-packaged to contain the pre-generated Lex and |
| 88 | Yacc tables of PLY. |
| 89 | |
Eli Bendersky | 66191e2 | 2012-12-27 06:04:52 -0800 | [diff] [blame] | 90 | + Version 2.09 (27.12.2012) |
Eli Bendersky | 9335251 | 2012-12-24 20:18:33 -0800 | [diff] [blame] | 91 | |
Eli Bendersky | 645e260 | 2012-12-25 06:21:08 -0800 | [diff] [blame] | 92 | - The pycparser project has moved to Bitbucket. For this version, issue |
| 93 | numbers still refer to the old Googlecode project, unless stated otherwise. |
| 94 | Starting with the next version all issue numbers will refer to the new |
| 95 | Bitbucket project. |
Eli Bendersky | 9335251 | 2012-12-24 20:18:33 -0800 | [diff] [blame] | 96 | - pycparser now carries its PLY dependency along. The pycparser/ply directory |
| 97 | contains the source of PLY for the currently supported version. This makes |
| 98 | distribution and testing easier. |
Eli Bendersky | 00edfc1 | 2012-12-25 15:18:02 -0800 | [diff] [blame] | 99 | - Issue #79: fix generation of new switch/case AST nodes. |
Eli Bendersky | 293ea91 | 2012-12-25 14:52:48 -0800 | [diff] [blame] | 100 | - Issue #83: fix parsing and C generation to distinguish between initializer |
| 101 | lists in declarations and initializing variables with parenthesized |
| 102 | comma-separated expressions. |
Eli Bendersky | 4476d09 | 2012-12-25 14:07:57 -0800 | [diff] [blame] | 103 | - Issue #84: fix C generation for some statements. |
Eli Bendersky | 4961d1b | 2012-12-25 06:50:59 -0800 | [diff] [blame] | 104 | - Issues #86 and #87: improve location reporting for parse errors. |
Eli Bendersky | 4476d09 | 2012-12-25 14:07:57 -0800 | [diff] [blame] | 105 | - Issue #89: fix C generation for K&R-style function definitions. |
Eli Bendersky | 9335251 | 2012-12-24 20:18:33 -0800 | [diff] [blame] | 106 | |
Eli Bendersky | 07f67a2 | 2012-08-10 08:48:31 +0300 | [diff] [blame] | 107 | + Version 2.08 (10.08.2012) |
Eli Bendersky | 19400fd | 2012-06-22 09:38:23 +0300 | [diff] [blame] | 108 | |
Eli Bendersky | 09fc200 | 2012-08-10 07:41:42 +0300 | [diff] [blame] | 109 | - Issue 73: initial support for #pragma directives. Consume them without |
| 110 | errors and ignore (no tokens are returned). Line numbers are preserved. |
Eli Bendersky | 5a0abdf | 2012-07-07 06:52:23 +0300 | [diff] [blame] | 111 | - Issue 68: more correct handling of source files without any actual content. |
| 112 | - Issue 69: running all tests will now set appropriate return code. |
Eli Bendersky | 0a3ef0b | 2012-07-06 15:54:29 +0300 | [diff] [blame] | 113 | - Better error reporting in case where multiple type specifiers are provided. |
| 114 | Also fixes Issue 60. |
Eli Bendersky | 5a0abdf | 2012-07-07 06:52:23 +0300 | [diff] [blame] | 115 | - Issue 63: line endings cleanup for consistent LF ending. |
| 116 | - Issues 64 & 65: added some more headers and typedefs to fake includes. |
Eli Bendersky | 949ad82 | 2012-08-10 07:04:20 +0300 | [diff] [blame] | 117 | - Refactoring the cpp invocation in parse_file into a separate function, which |
| 118 | can also be used as a utility. |
Eli Bendersky | d964981 | 2012-08-10 08:27:12 +0300 | [diff] [blame] | 119 | - Issue 74: some Windows include paths were handled incorrectly. |
Eli Bendersky | 19400fd | 2012-06-22 09:38:23 +0300 | [diff] [blame] | 120 | |
Eli Bendersky | 081bac2 | 2012-06-16 16:10:39 +0300 | [diff] [blame] | 121 | + Version 2.07 (16.06.2012) |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 122 | |
Eli Bendersky | 203b967 | 2012-06-15 10:11:24 +0300 | [diff] [blame] | 123 | - Issue 54: added an optional parser argument to parse_file |
| 124 | - Issue 59: added some more fake headers for C99 |
| 125 | - Issue 62: correct coord for Ellipsis nodes |
Eli Bendersky | 3b1b08d | 2012-06-15 12:37:54 +0300 | [diff] [blame] | 126 | - Issue 57: support for C99 hexadecimal float constants |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 127 | - Made running tests that call on 'cpp' a bit more robust. |
| 128 | |
| 129 | + Version 2.06 (04.02.2012) |
| 130 | |
| 131 | - Issue 48: gracefully handle parsing of empty files |
| 132 | - Issues 49 & 50: handle more escaped chars in paths to #line - "..\..\test.h". |
| 133 | - Support for C99 _Complex type. |
| 134 | - CGenerator moves from examples/ to pycparser/ as a first-class citizen, and |
| 135 | added some fixes to it. examples/c-to-c.py still stays as a convenience |
| 136 | wrapper. |
| 137 | - Fix problem with parsing a file in which the first statement is just a |
| 138 | semicolon. |
| 139 | - Improved the AST created for switch statements, making it closer to the |
| 140 | semantic meaning than to the grammar. |
| 141 | |
| 142 | + Version 2.05 (16.10.2011) |
| 143 | |
| 144 | - Added support for the C99 ``_Bool`` type and ``stdbool.h`` header file |
| 145 | - Expanded ``examples/explore_ast.py`` with more details on working with the |
| 146 | AST |
| 147 | - Relaxed the rules on parsing unnamed struct members (helps parse ``windows.h``) |
| 148 | - Bug fixes: |
| 149 | |
| 150 | * Fixed spacing issue for some type declarations |
| 151 | * Issue 47: display empty statements (lone ';') correctly after parsing |
| 152 | |
| 153 | + Version 2.04 (21.05.2011) |
| 154 | |
| 155 | - License changed from LGPL to BSD |
| 156 | - Bug fixes: |
| 157 | |
| 158 | * Issue 31: constraining the scope of typedef definitions |
| 159 | * Issues 33, 35: fixes for the c-to-c.py example |
| 160 | |
| 161 | - Added C99 integer types to fake headers |
| 162 | - Added unit tests for the c-to-c.py example |
| 163 | |
| 164 | + Version 2.03 (06.03.2011) |
| 165 | |
| 166 | - Bug fixes: |
| 167 | |
| 168 | * Issue 17: empty file-level declarations |
| 169 | * Issue 18: empty statements and declarations in functions |
| 170 | * Issue 19: anonymous structs & union fields |
| 171 | * Issue 23: fix coordinates of Cast nodes |
| 172 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 173 | - New example added (``examples/c-to-c.py``) for translating ASTs generated |
| 174 | by ``pycparser`` back into C code. |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 175 | - ``pycparser`` is now on PyPI (Python Package Index) |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 176 | - Created `FAQ <http://code.google.com/p/pycparser/wiki/FAQ>`_ on |
| 177 | the ``pycparser`` project page |
| 178 | - Removed support for Python 2.5. ``pycparser`` supports Python 2 |
| 179 | from 2.6 and on, and Python 3. |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 180 | |
| 181 | + Version 2.02 (10.12.2010) |
| 182 | |
| 183 | * The name of a ``NamedInitializer`` node was turned into a sequence of nodes |
| 184 | instead of an attribute, to make it discoverable by the AST node visitor. |
| 185 | * Documentation updates |
| 186 | |
| 187 | + Version 2.01 (04.12.2010) |
| 188 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 189 | * Removed dependency on YAML. Parsing of the AST node configuration file |
| 190 | is done with a simple parser. |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 191 | * Fixed issue 12: installation problems |
| 192 | |
| 193 | + Version 2.00 (31.10.2010) |
| 194 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 195 | * Support for C99 (read |
| 196 | `this wiki page <http://code.google.com/p/pycparser/wiki/C99support>`_ |
| 197 | for more information). |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 198 | |
| 199 | + Version 1.08 (09.10.2010) |
| 200 | |
| 201 | * Bug fixes: |
| 202 | |
| 203 | + Correct handling of ``do{} ... while`` statements in some cases |
| 204 | + Issues 6 & 7: Concatenation of string literals |
| 205 | + Issue 9: Support for unnamed bitfields in structs |
| 206 | |
| 207 | + Version 1.07 (18.05.2010) |
| 208 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 209 | * Python 3.1 compatibility: ``pycparser`` was modified to run |
| 210 | on Python 3.1 as well as 2.6 |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 211 | |
| 212 | + Version 1.06 (10.04.2010) |
| 213 | |
| 214 | * Bug fixes: |
| 215 | |
| 216 | + coord not propagated to FuncCall nodes |
| 217 | + lexing of the ^= token (XOREQUALS) |
| 218 | + parsing failed on some abstract declarator rules |
| 219 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 220 | * Linux compatibility: fixed end-of-line and ``cpp`` path issues to allow |
| 221 | all tests and examples run on Linux |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 222 | |
| 223 | + Version 1.05 (16.10.2009) |
| 224 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 225 | * Fixed the ``parse_file`` auxiliary function to handle multiple arguments to |
| 226 | ``cpp`` correctly |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 227 | |
| 228 | + Version 1.04 (22.05.2009) |
| 229 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 230 | * Added the ``fake_libc_include`` directory to allow parsing of C code that |
| 231 | uses standard C library include files without dependency on a real C |
| 232 | library. |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 233 | * Tested with Python 2.6 and PLY 3.2 |
| 234 | |
| 235 | + Version 1.03 (31.01.2009) |
| 236 | |
| 237 | * Accept enumeration lists with a comma after the last item (C99 feature). |
| 238 | |
| 239 | + Version 1.02 (16.01.2009) |
| 240 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 241 | * Fixed problem of parsing struct/enum/union names that were named similarly |
| 242 | to previously defined ``typedef`` types. |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 243 | |
| 244 | + Version 1.01 (09.01.2009) |
| 245 | |
Eli Bendersky | c5463bd | 2015-05-12 06:06:21 -0700 | [diff] [blame] | 246 | * Fixed subprocess invocation in the helper function parse_file - now |
| 247 | it's more portable |
Eli Bendersky | 13d0a6f | 2012-06-15 09:30:04 +0300 | [diff] [blame] | 248 | |
| 249 | + Version 1.0 (15.11.2008) |
| 250 | |
| 251 | * Initial release |
| 252 | * Support for ANSI C89 |