Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C function using bool parameter returns null for parse tree #9

Open
theBadT opened this issue Mar 17, 2022 · 1 comment
Open

C function using bool parameter returns null for parse tree #9

theBadT opened this issue Mar 17, 2022 · 1 comment

Comments

@theBadT
Copy link

theBadT commented Mar 17, 2022

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

@hypervisor
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants