haxscramper / hcparse

High-level nim bindings for parsing C/C++ code
https://haxscramper.github.io/hcparse-doc/src/hcparse/libclang.html
Apache License 2.0
37 stars 2 forks source link

account for automatic code transformation, generate documentation #15

Open haxscramper opened 2 years ago

haxscramper commented 2 years ago

Due to the nature of the problem, some convoluted code transformation procedures are required, like merging whole analyzed source code in graph and extracting elements back again. Automatic renames, dropped enum values due to nim requirements and so on result in the API that is different from the original one. These differences must be automatically accounted for, and final produced documentation should make it clear how to use the library for someone who is already familiar with Cxx counterpart.