Examples¶
List all entity names¶
The following example lists all entity names from a given source file. To have full forward and backward linking between blocks, the chain of blocks must be fully generated. One easy approach is to use a list comprehension.
VHDL Sourcefile
entity myEntity_1 is
end;
entity myEntity_2 is
end;
Expected Outputs
Found entity: myEntity_1
Found entity: myEntity_2
Algorithm
Todo
Document algorithm
Drawbacks
Now drawbacks compare to the purely token-base solution.