summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Update file name in serialize_ast and make sure it's in .gitignoreEli Bendersky2023-01-091-2/+3
|
* Clean up serialize_ast example to use HIGHEST_PROTOCOL for picklingEli Bendersky2023-01-091-6/+1
|
* Only run example tests on Linux, since many require cppEli Bendersky2021-10-291-5/+0
|
* Try to make func_calls example pass on all platforms with no argumentsEli Bendersky2021-10-292-2/+10
|
* Add test that runs all examples and makes sure they don't crashEli Bendersky2021-10-295-13/+27
|
* Fix typos (#443)Kian Meng Ang2021-10-182-3/+3
| | | | | * Fix typos * Revert changes in vendor module
* Fix examples/func_defs_add_param.py: add missing `align` parameter (#441)Eisuke Kawashima2021-10-151-0/+1
|
* Fix Flake8 Errors (#442)Eisuke Kawashima2021-10-156-6/+4
| | | | | | | | | * Fix PEP8 [E101](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E711](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix E999 (python2) * Fix PEP8 [F401](https://flake8.pycqa.org/en/4.0.1/user/error-codes.html)
* Implement _Alignas and _Alignof support with tests (#435)Vitaly Cheptsov2021-10-041-0/+1
| | | | | | | | | | | | | | | * Implement _Alignas and _Alignof support with tests * Improve testing and avoid unnecessary alignas for typedef * Add more tests * Drop legacy artifact * Remove extra _add_declaration_specifier call * Drop custom equality comparators for now Co-authored-by: vit9696 <vit9696@users.noreply.github.com>
* Clean up trailing whitespaceEli Bendersky2021-09-211-1/+1
|
* Add example file for ast dumpingEli Bendersky2021-05-271-0/+15
|
* Add example of modifying an AST and printing out modified codeEli Bendersky2020-04-151-0/+58
|
* Move code to __main__ blockEli Bendersky2020-04-151-9/+10
|
* Move internal testing stuff from c-to-c example into utils/internalEli Bendersky2020-04-151-31/+1
|
* Protect visiting recursion against empty argument listsEli Bendersky2019-02-151-1/+2
| | | | Fixes #308
* Fix example to properly visit nested function callsEli Bendersky2018-10-231-3/+3
| | | | Reported in #285
* Add option to dump_ast example to show coordinatesEli Bendersky2018-09-301-1/+3
|
* Use https:// for all project links where available (#267)Jon Dufresne2018-06-2610-10/+10
|
* Fix linkEli Bendersky2018-04-121-1/+1
|
* Fix link formattingEli Bendersky2018-04-121-3/+3
|
* Update READMEs to add more details about running examplesEli Bendersky2018-04-121-1/+8
|
* Remove trailing whitespace from .h/.c filesEli Bendersky2018-02-062-30/+30
|
* Basic AST dumping sampleEli Bendersky2017-04-071-0/+25
|
* Update CHANGES and clean up the explore_ast exampleEli Bendersky2017-03-101-31/+29
|
* Python 3.6 invalid escape sequence deprecation fixes (#177)Ville Skyttä2017-03-041-1/+1
| | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* Clean up cdecl.py a bitEli Bendersky2017-02-261-14/+19
|
* Add support for expanding struct and typedef -- Issue 93 (#174)Hart Chu2017-02-261-5/+93
| | | | | | * Add support for expanding struct and typedef * Make expansion return a new node instead of in-place modification
* Tweak serialize_ast sample to use `with` statementsEli Bendersky2017-02-211-8/+6
|
* Add example of serializing AST for #82 (#172)Hart Chu2017-02-211-0/+38
| | | | | | * Fix comment typo * Add example of serializing AST
* Fix comment typo (#171)Hart Chu2017-02-192-2/+2
|
* dump and load as json (#163)Michael White2017-02-021-0/+203
| | | | | | | | | | | | * 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.
* Remove Copyright from every source fileEli Bendersky2017-02-028-8/+8
| | | | Replace it by website link; copyright appears in the LICENSE file already, which is sufficient
* Clarify where examples should be run fromEli Bendersky2016-02-263-3/+2
|
* Add fake libc path to func_defs.pyEli Bendersky2015-12-121-2/+3
|
* Wipe out more mentions of lcc's cppEli Bendersky2015-05-181-4/+1
|
* Various cosmetic updates to documentationEli Bendersky2015-05-102-2/+2
|
* Fix up examples to run properly from the main source dirEli Bendersky2015-04-214-17/+12
|
* Cosmetic cleanupsEli Bendersky2015-04-202-4/+1
|
* modify example to use print function, rather than print statementChris Morrison2014-11-051-1/+1
|
* Some cosmetic cleanupEli Bendersky2014-08-222-4/+1
|
* examples: add example of rewriting AST nodeAkira Hayakawa2014-08-221-0/+31
| | | | Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
* Mention Clang for Windows in the README & using_gcc_E_libc example.Eli Bendersky2014-08-191-1/+2
| | | | Brought up in #38.
* Add an example: using gcc -E instead of cpp for preprocessing.Eli Bendersky2014-04-231-0/+30
|
* A bit of cleanupEli Bendersky2014-04-232-6/+2
|
* More cleanups - whitespace, copyrights, etc.Eli Bendersky2013-09-252-30/+32
|
* moar cleanupsEli Bendersky2013-09-251-15/+10
|
* fix example typoEli Bendersky2012-12-251-1/+1
|
* Issue 63: fix up line endingsEli Bendersky2012-06-238-841/+841
|
* 1. make examples callable from root dirBen2012-02-036-6/+6
| | | | | 2. improve error message displayed to the user when cpp is not found by parse_file
* cosmeticEli Bendersky2012-01-241-1/+1
|