README (node-castjson)
A warper interface for castjson whihc is a C language project parsing C/C++ source code to AST(JSON) with LLVM libclang.
Installation
npm install node-castjson
Quick Start
const CASTJson = ;let jsonbuf = 'data': '';let bStatus = castJson;if bStatusconsole;
Example
Input: One function in test/sample/dirmodule.c!ReadDir()
staticconst FILE_ENTRY*
Output: JSON format from castjson.exe/castjson.out utility.
Test
$ mochaCAstJson class-√ should return true-√ should return true 153ms2
Resource
- node-castjson
https://github.com/dougpuob/node-castjson.git
- castjson
https://github.com/dougpuob/castjson.git
License
MIT