I\'d like to parse C header files in Javascript. Is there any such library available? Otherwise, any tips to help me get started?
Update: My ultimate go
Well I'll answer my own question since I found something interesting:
http://www.swig.org/Doc2.0/SWIGDocumentation.html#SWIG_nn2
Swig can output an XML representation of C header files that I could then load from Javascript.
For example:
swig -module yaml -xmlout yaml.xml yaml.h
Generates the following file (snippet below for the yaml_token_delete
function):
...
...