node-c-parser icon indicating copy to clipboard operation
node-c-parser copied to clipboard

C function using bool parameter returns null for parse tree

Open theBadT opened this issue 2 years ago • 1 comments

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

theBadT avatar Mar 17 '22 18:03 theBadT

There is no bool in C, or at least not in versions < C23

hypervisor avatar Aug 31 '22 07:08 hypervisor