Skip to content

Avoid tokenizer exception when parsing VHDL attributes#54

Merged
Paebbels merged 1 commit into
Paebbels:devfrom
skaupper:bugfix/vhdl_attributes
Jun 20, 2023
Merged

Avoid tokenizer exception when parsing VHDL attributes#54
Paebbels merged 1 commit into
Paebbels:devfrom
skaupper:bugfix/vhdl_attributes

Conversation

@skaupper
Copy link
Copy Markdown

Since I also ran into the problem described by #4 and #18, I went ahead and applied the fix of #26.

An additional testcase in Tokens.py should catch regressions.

PS: While running the tests using pytest, a completely independent testcase failed for me. Seems like you commented the code on purpose. Maybe it was a mistake?

@skaupper skaupper force-pushed the bugfix/vhdl_attributes branch from 0711ea7 to 03280b8 Compare June 19, 2023 09:43
@Paebbels Paebbels changed the base branch from main to dev June 19, 2023 09:46
Comment thread pyVHDLParser/Blocks/InterfaceObject.py Outdated
@skaupper skaupper force-pushed the bugfix/vhdl_attributes branch from 03280b8 to 687d3f6 Compare June 20, 2023 05:50
@skaupper skaupper force-pushed the bugfix/vhdl_attributes branch from 687d3f6 to 519f9af Compare June 20, 2023 06:09
@skaupper
Copy link
Copy Markdown
Author

I removed the change to InterfaceObject.py and rebased my branch to dev.

For some tests to run successfully (the issue specific tests), I had to extend the equality and inequality operators of the ValuedToken class. Now two ValuedTokens can be compared with each other. Otherwise the calls to assertEquals in Linking.py lines 54 and 55 will fail.

@Paebbels Paebbels added the Bug label Jun 20, 2023
@Paebbels Paebbels merged commit 0ef712e into Paebbels:dev Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants