-
Notifications
You must be signed in to change notification settings - Fork 68
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
VHDL: cannot visit FOR LOOP within a function #146
Comments
@andrasm62 it should be fixed you need to update also hdlConvertorAst, please confirm that the fix works for you so I can update pip packages as well. |
Thank you, @Nic30 ! By the way, what do you think about adding to this new test, when there's a function definition that uses a FOR...LOOP? |
It is a least I can do right now as it is easy to write test and it check that specified functionality. The for loop can appear also on other places, some places do corresponds to a different rules in VHDL grammar. It would be better to walk through the grammar and check if the all unique appearances are tested. |
I'm glad to help if it's easy to fix. |
If you can provide some examples of comments for the tests it would be nice #148 I am closing this issue as you confirmed that the fix is working. |
Hello!
I tried to parse a VHDL file that contains some functions each with a for loop inside.
The parsing seems to be okey, but after it, when I try to write it into a stream, I get an error.
My function looks like this:
During visiting the AST the code tries to find a FOR ... GENERATE loop, but it throws an exception (
raise TypeError("does not support HdlStmForIn", self, o)
), because the HdlStmForIn object's in_preproc attribute's value is False.I think it should be a valid scenario, when a FOR ... LOOP statement is present within a function.
The text was updated successfully, but these errors were encountered: