-
Notifications
You must be signed in to change notification settings - Fork 253
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_parser depends on coding style to find ports/generics #58
Comments
I have fixed the problem and added some other corner case tests. |
Some time in the future I plan to rewrite the VHDL parser to be based on tokens by first tokenizing the input instead of the current raw regex approach. This will scale better and be more maintainable. The Verilog parser that I started working on in the systemverilog branch is already token based. |
thanks for the fix - that was fast...again! |
Yes the current raw regexp implementation can be tricked by cleverly crafted input as it is a weak method of parsing. That is why I want to rewrite it to use proper tokenization. It has worked well in practice for the parsing needs of VUnit though. |
works:
works:
does not work:
VHDL does not require a newline before
generic
orport
but vhdl_parser.py:387 /:413 currently implement it this way.The text was updated successfully, but these errors were encountered: