Skip to content

Commit

Permalink
preparing for release 2.03
Browse files Browse the repository at this point in the history
  • Loading branch information
eli.bendersky committed Mar 6, 2011
1 parent b36f5bb commit b56e8f8
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 27 deletions.
26 changes: 20 additions & 6 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" />
<title>pycparser v2.02</title>
<title>pycparser v2.03</title>
<meta name="author" content="Eli Bendersky" />
<style type="text/css">

Expand Down Expand Up @@ -305,8 +305,8 @@
</style>
</head>
<body>
<div class="document" id="pycparser-v2-02">
<h1 class="title">pycparser v2.02</h1>
<div class="document" id="pycparser-v2-03">
<h1 class="title">pycparser v2.03</h1>
<table class="docinfo" frame="void" rules="none">
<col class="docinfo-name" />
<col class="docinfo-content" />
Expand Down Expand Up @@ -387,8 +387,8 @@ <h1>2&nbsp;&nbsp;&nbsp;Installing</h1>
<div class="section" id="prerequisites">
<h2>2.1&nbsp;&nbsp;&nbsp;Prerequisites</h2>
<ul class="simple">
<li><tt class="docutils literal"><span class="pre">pycparser</span></tt> was tested on Python 2.5, 2.6 and 3.1, on both Linux and Windows</li>
<li><tt class="docutils literal"><span class="pre">pycparser</span></tt> uses the PLY module for the actual lexer and parser construction. Install PLY version 3.3 (earlier versions work at least since 2.5) from <a class="reference external" href="http://www.dabeaz.com/ply/">its website</a>.</li>
<li><tt class="docutils literal"><span class="pre">pycparser</span></tt> was tested on Python 2.6 and 3.2, on both Linux and Windows. It should work on any later version (in both the 2.x and 3.x lines) as well.</li>
<li><tt class="docutils literal"><span class="pre">pycparser</span></tt> uses the PLY module for the actual lexer and parser construction. Install PLY from <a class="reference external" href="http://www.dabeaz.com/ply/">its website</a>.</li>
</ul>
</div>
<div class="section" id="installation-process">
Expand All @@ -413,7 +413,7 @@ <h2>3.1&nbsp;&nbsp;&nbsp;Interaction with the C preprocessor</h2>
</div>
<div class="section" id="what-about-the-standard-c-library-headers">
<h2>3.2&nbsp;&nbsp;&nbsp;What about the standard C library headers?</h2>
<p>C code almost always includes various header files from the standard C library, like <tt class="docutils literal"><span class="pre">stdio.h</span></tt>. While, with some effort, <tt class="docutils literal"><span class="pre">pycparser</span></tt> can be made to parse the standard headers from any C compiler, it's much simpler to use the provided &quot;fake&quot; standard in includes in <tt class="docutils literal"><span class="pre">utils/fake_libc_include</span></tt>. These are standard C header files that contain only the bare necessities to allow valid parsing of the files that use them. As a bonus, since they're minimal, it can significantly improve the performance of parsing C files.</p>
<p>C code almost always includes various header files from the standard C library, like <tt class="docutils literal"><span class="pre">stdio.h</span></tt>. While, with some effort, <tt class="docutils literal"><span class="pre">pycparser</span></tt> can be made to parse the standard headers from any C compiler, it's much simpler to use the provided &quot;fake&quot; standard includes in <tt class="docutils literal"><span class="pre">utils/fake_libc_include</span></tt>. These are standard C header files that contain only the bare necessities to allow valid parsing of the files that use them. As a bonus, since they're minimal, it can significantly improve the performance of parsing C files.</p>
<p>See the <tt class="docutils literal"><span class="pre">using_cpp_libc.py</span></tt> example for more details.</p>
</div>
<div class="section" id="basic-usage">
Expand Down Expand Up @@ -463,6 +463,20 @@ <h1>6&nbsp;&nbsp;&nbsp;Contributors</h1>
<div class="section" id="changelog">
<h1>7&nbsp;&nbsp;&nbsp;Changelog</h1>
<ul class="simple">
<li>Version 2.03 (06.03.2011)<ul>
<li>Bug fixes:<ul>
<li>Issue 17: empty file-level declarations</li>
<li>Issue 18: empty statements and declarations in functions</li>
<li>Issue 19: anonymous structs &amp; union fields</li>
<li>Issue 23: fix coordinates of Cast nodes</li>
</ul>
</li>
<li>New example added (<tt class="docutils literal"><span class="pre">examples/c-to-c.py</span></tt>) for translating ASTs generated by <tt class="docutils literal"><span class="pre">pycparser</span></tt> back into C code.</li>
<li><tt class="docutils literal"><span class="pre">pycparser</span></tt> is now on PyPI (Python Package Index)</li>
<li>Created <a class="reference external" href="http://code.google.com/p/pycparser/wiki/FAQ">FAQ</a> on the <tt class="docutils literal"><span class="pre">pycparser</span></tt> project page</li>
<li>Removed support for Python 2.5. <tt class="docutils literal"><span class="pre">pycparser</span></tt> supports Python 2 from 2.6 and on, and Python 3.</li>
</ul>
</li>
<li>Version 2.02 (10.12.2010)<ul>
<li>The name of a <tt class="docutils literal"><span class="pre">NamedInitializer</span></tt> node was turned into a sequence of nodes
instead of an attribute, to make it discoverable by the AST node visitor.</li>
Expand Down
22 changes: 18 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
===============
pycparser v2.02
pycparser v2.03
===============

:Author: `Eli Bendersky <http://eli.thegreenplace.net>`_
Expand Down Expand Up @@ -62,8 +62,8 @@ Installing
Prerequisites
-------------

* ``pycparser`` was tested on Python 2.5, 2.6 and 3.1, on both Linux and Windows
* ``pycparser`` uses the PLY module for the actual lexer and parser construction. Install PLY version 3.3 (earlier versions work at least since 2.5) from `its website <http://www.dabeaz.com/ply/>`_.
* ``pycparser`` was tested on Python 2.6 and 3.2, on both Linux and Windows. It should work on any later version (in both the 2.x and 3.x lines) as well.
* ``pycparser`` uses the PLY module for the actual lexer and parser construction. Install PLY from `its website <http://www.dabeaz.com/ply/>`_.

Installation process
--------------------
Expand Down Expand Up @@ -92,7 +92,7 @@ On the vast majority of Linux systems, ``cpp`` is installed and is in the PATH.
What about the standard C library headers?
------------------------------------------

C code almost always includes various header files from the standard C library, like ``stdio.h``. While, with some effort, ``pycparser`` can be made to parse the standard headers from any C compiler, it's much simpler to use the provided "fake" standard in includes in ``utils/fake_libc_include``. These are standard C header files that contain only the bare necessities to allow valid parsing of the files that use them. As a bonus, since they're minimal, it can significantly improve the performance of parsing C files.
C code almost always includes various header files from the standard C library, like ``stdio.h``. While, with some effort, ``pycparser`` can be made to parse the standard headers from any C compiler, it's much simpler to use the provided "fake" standard includes in ``utils/fake_libc_include``. These are standard C header files that contain only the bare necessities to allow valid parsing of the files that use them. As a bonus, since they're minimal, it can significantly improve the performance of parsing C files.

See the ``using_cpp_libc.py`` example for more details.

Expand Down Expand Up @@ -154,6 +154,20 @@ Some people have contributed to ``pycparser`` by opening issues on bugs they've
Changelog
=========

+ Version 2.03 (06.03.2011)

- Bug fixes:

* Issue 17: empty file-level declarations
* Issue 18: empty statements and declarations in functions
* Issue 19: anonymous structs & union fields
* Issue 23: fix coordinates of Cast nodes

- New example added (``examples/c-to-c.py``) for translating ASTs generated by ``pycparser`` back into C code.
- ``pycparser`` is now on PyPI (Python Package Index)
- Created `FAQ <http://code.google.com/p/pycparser/wiki/FAQ>`_ on the ``pycparser`` project page
- Removed support for Python 2.5. ``pycparser`` supports Python 2 from 2.6 and on, and Python 3.

+ Version 2.02 (10.12.2010)

* The name of a ``NamedInitializer`` node was turned into a sequence of nodes
Expand Down
14 changes: 0 additions & 14 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
Todo
----

* move changelist to wiki maybe?


Fixes since last:
------------------

* Issue 17: empty file-level declarations
* Issue 18: empty statements and declarations in functions
* Issue 19: anonymous structs & union fields
* Issue 23: fix coordinates of Cast nodes
* pycparser is now on PyPI (Python Package Index)
* Created FAQ on the pycparser project page - the readme now points to it
* No support for Python 2.5, only starting with 2.6 and 3.x


Version Update
--------------
Expand Down
4 changes: 2 additions & 2 deletions pycparser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
# This package file exports some convenience functions for
# interacting with pycparser
#
# Copyright (C) 2008-2010, Eli Bendersky
# Copyright (C) 2008-2011, Eli Bendersky
# License: LGPL
#-----------------------------------------------------------------

__all__ = ['c_lexer', 'c_parser', 'c_ast']
__version__ = '2.02'
__version__ = '2.03'

from subprocess import Popen, PIPE

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""",
install_requires=['ply'],
license='LGPL',
version='2.02',
version='2.03',
author='Eli Bendersky',
maintainer='Eli Bendersky',
author_email='[email protected]',
Expand Down

0 comments on commit b56e8f8

Please sign in to comment.