Py010parser

Latest version: v0.1.16

Safety actively analyzes 613807 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

2.11

- Add support for C99 6.5.3.7 p7 - qualifiers within array dimensions in
function declarations. Started with issue 21 (reported with initial patch
by Robin Martinjak).
- Issue 27: bug in handling of unified wstring literals.
- Issue 28: fix coord reporting for 'for' loops.
- Added ``examples/using_gcc_E_libc.py`` to demonstrate how ``gcc -E`` can
be used instead of ``cpp`` for preprocessing.
- Pull request 64: support keywords like const, volatile, restrict and static
in dimensions in array declarations.

2.10

- A number of improvements in the handling of typedef-name ambiguities,
contributed by Sye van der Veen in GitHub issue 1:

* Allow shadowing of types by identifiers in inner scopes.
* Allow struct field names to reside in a separate namespace and have
the same names as types.
* Allow duplicate typedefs in some cases to mimic real compiler behavior.

- c_generator error for ExprList in expression context.
- Assume default int type for functions whose argument or return types were
not specified.
- Relax the lexer a bit w.r.t. some integer suffixes and $ in identifier names
(which is supported by some other compilers).

2.09.1

- No actual functionality changes.
- The source distribution was re-packaged to contain the pre-generated Lex and
Yacc tables of PLY.

2.09

- The pycparser project has moved to Bitbucket. For this version, issue
numbers still refer to the old Googlecode project, unless stated otherwise.
Starting with the next version all issue numbers will refer to the new
Bitbucket project.
- pycparser now carries its PLY dependency along. The pycparser/ply directory
contains the source of PLY for the currently supported version. This makes
distribution and testing easier.
- Issue 79: fix generation of new switch/case AST nodes.
- Issue 83: fix parsing and C generation to distinguish between initializer
lists in declarations and initializing variables with parenthesized
comma-separated expressions.
- Issue 84: fix C generation for some statements.
- Issues 86 and 87: improve location reporting for parse errors.
- Issue 89: fix C generation for K&R-style function definitions.

2.08

- Issue 73: initial support for pragma directives. Consume them without
errors and ignore (no tokens are returned). Line numbers are preserved.
- Issue 68: more correct handling of source files without any actual content.
- Issue 69: running all tests will now set appropriate return code.
- Better error reporting in case where multiple type specifiers are provided.
Also fixes Issue 60.
- Issue 63: line endings cleanup for consistent LF ending.
- Issues 64 & 65: added some more headers and typedefs to fake includes.
- Refactoring the cpp invocation in parse_file into a separate function, which
can also be used as a utility.
- Issue 74: some Windows include paths were handled incorrectly.

2.07

- Issue 54: added an optional parser argument to parse_file
- Issue 59: added some more fake headers for C99
- Issue 62: correct coord for Ellipsis nodes
- Issue 57: support for C99 hexadecimal float constants
- Made running tests that call on 'cpp' a bit more robust.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.