node-c-parser
node-c-parser copied to clipboard
C function using bool parameter returns null for parse tree
Hi,
I'm trying to use your parser to parse c functions and transform them into another language. I started out using a very basic function to get a feeling of the handling. But when I started adding parameters to that function, I noticed, that when using a boolean type, the parse tree is returned as null.
Given your grammar I would have expected booleans to be working.
void foo(bool b) { }
Using other types, like int or double works perfectly fine. Hence I assume this to be a bug?
Regards, Thomas
There is no bool in C, or at least not in versions < C23