aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2019-02-15Protect visiting recursion against empty argument listsEli Bendersky
Fixes #308
2018-10-23Fix example to properly visit nested function callsEli Bendersky
Reported in #285
2018-09-30Add option to dump_ast example to show coordinatesEli Bendersky
2018-06-26Use https:// for all project links where available (#267)Jon Dufresne
2018-04-12Fix linkEli Bendersky
2018-04-12Fix link formattingEli Bendersky
2018-04-12Update READMEs to add more details about running examplesEli Bendersky
2018-02-06Remove trailing whitespace from .h/.c filesEli Bendersky
2017-04-07Basic AST dumping sampleEli Bendersky
2017-03-10Update CHANGES and clean up the explore_ast exampleEli Bendersky
2017-03-04Python 3.6 invalid escape sequence deprecation fixes (#177)Ville Skyttä
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2017-02-26Clean up cdecl.py a bitEli Bendersky
2017-02-26Add support for expanding struct and typedef -- Issue 93 (#174)Hart Chu
* Add support for expanding struct and typedef * Make expansion return a new node instead of in-place modification
2017-02-21Tweak serialize_ast sample to use `with` statementsEli Bendersky
2017-02-21Add example of serializing AST for #82 (#172)Hart Chu
* Fix comment typo * Add example of serializing AST
2017-02-19Fix comment typo (#171)Hart Chu
2017-02-02dump and load as json (#163)Michael White
* ast to json working * Now roundtrippable * Serialize all attrs to json. Handle coords attr which was silently dropped previously. * Documentation and comment fixes. * Minor comment tweak.
2017-02-02Remove Copyright from every source fileEli Bendersky
Replace it by website link; copyright appears in the LICENSE file already, which is sufficient
2016-02-26Clarify where examples should be run fromEli Bendersky
2015-12-12Add fake libc path to func_defs.pyEli Bendersky
2015-05-18Wipe out more mentions of lcc's cppEli Bendersky
2015-05-10Various cosmetic updates to documentationEli Bendersky
2015-04-21Fix up examples to run properly from the main source dirEli Bendersky
2015-04-20Cosmetic cleanupsEli Bendersky
2014-11-05modify example to use print function, rather than print statementChris Morrison
2014-08-22Some cosmetic cleanupEli Bendersky
2014-08-22examples: add example of rewriting AST nodeAkira Hayakawa
Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
2014-08-19Mention Clang for Windows in the README & using_gcc_E_libc example.Eli Bendersky
Brought up in #38.
2014-04-23Add an example: using gcc -E instead of cpp for preprocessing.Eli Bendersky
2014-04-23A bit of cleanupEli Bendersky
2013-09-25More cleanups - whitespace, copyrights, etc.Eli Bendersky
2013-09-25moar cleanupsEli Bendersky
2012-12-25fix example typoEli Bendersky
2012-06-23Issue 63: fix up line endingsEli Bendersky
2012-02-031. make examples callable from root dirBen
2. improve error message displayed to the user when cpp is not found by parse_file
2012-01-24cosmeticEli Bendersky
2012-01-24fix c generator to preserve qualifiers between pointer * and var nameEli Bendersky
2012-01-24fix the case where the first statement in a file is empty (just a ↵Eli Bendersky
semicolon). Fix provided by Andreas Kloeckner
2012-01-24moving CGenerator testsEli Bendersky
2012-01-24moving CGenerator from examples/c-to-c.py into its own class in pycparser/. ↵Eli Bendersky
c-to-c remains as a shell example over it
2012-01-20adaptations to execute tests successfully on Windows from the root direli.bendersky
2012-01-19fix problem in c-to-c generation of casts. Patch by Andreas KloecknerEli Bendersky
2012-01-19fix reversal of specifiers & qualifiers in C generationEli Bendersky
2011-10-16* Added EmptyStatement node to represent an empty statement (sole ';'), with ↵eli.bendersky
tests and c-to-c support * Added sys.path update in _build_tables.py to enable it to run correctly from the pycparser folder
2011-08-31* added some material to the explore_ast.py exampleeli.bendersky
* some cosmetic changes
2011-07-161. remove redundant codeeli.bendersky
2. fix spacing issue in empty type declarations
2011-05-26Issue 38: c-to-c: postfix -- behavioreli.bendersky
2011-05-26Issue 37: c-to-c: sizeof arg parenthesizingeli.bendersky
2011-05-26Fix issue 36: empty block in c-to-celi.bendersky
2011-05-20* A couple of bug fixes in c-to-c.py (Issue 35, and comlex types in function ↵eli.bendersky
argument declarations) * added unit tests for c-to-c.py