Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gaulthiergain/parserclang
A small C parser to extract functions from C/Cpp source files
https://github.com/gaulthiergain/parserclang
Last synced: 10 days ago
JSON representation
A small C parser to extract functions from C/Cpp source files
- Host: GitHub
- URL: https://github.com/gaulthiergain/parserclang
- Owner: gaulthiergain
- Created: 2020-03-05T10:05:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-25T14:16:39.000Z (over 3 years ago)
- Last Synced: 2023-07-02T18:27:09.494Z (over 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parserClang
A very basic C parser to extract functions from C/Cpp source files.
This is a prototype (no solid error handling, modular code, etc).## Installation
Run the following commands:
```
python3 -m pip install clang
```On Linux, execute the following commands:
```
cd /usr/lib/x86_64-linux-gnu/
sudo ln -s libclang-X.Y.so.1 libclang.so (X.Y the version number)
```## Run
```
python3 parserClang.py [-i includePaths] [-o outputfile] -[qvt] inputfile.c [otherinputfile.c ...]
```where `filepath` can be a repository/folder or a file (`c/cpp/h/hpp`)