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
Line numbers set to 0 #116
Comments
Seems fairly arbitrary to me, since these nodes don't really have a concrete source representation |
Well, I haven't explored deeply the grammar used for parsing but i guess an For toto3.c
toto4.c
Pycparser gives me this
That would lead me to think that they indeed match braces. So I don't really see your point but maybe have I missed something. Regards |
That sounds reasonable. Feel free to submit a PR and we can talk over the concrete details there |
Hi sorry for asking again about this. It might be resolved and I'm not aware. Is this issue fixed? I'm interested on getting this functionality working... Thanks. Regards |
@guivigon Not that I know of |
I believe this should be fixed int the |
Hi,
First of all, thanks for the work done over here.
I've noticed that field
.coord.line
is systematically set to 0 for nodes of classesCompound
andEmptyStatement
(and maybe some others).For instance, considering below file toto.c :
Pycparser give me this :
Is this an implementation choice, a known issue, a new one ?
Regards
The text was updated successfully, but these errors were encountered: