pyVHDLParser
pyVHDLParser copied to clipboard
Clk'event
The following piece of legal code if Clk'event and Clk = '1' then -- rising clock edge
yields this error:
ERROR: Expected ';', ':=' or whitespace after subtype indication.
================================================================================================================================================================
ERROR: (line: 103, col: 12): Ambiguous syntax detected.
This project is in development. The pyVHDLParser is not in a stable state yet.
Attributes are not supported yet. (Besides a long list of other features ...)
I should add a hint, that this project is under development :).
Ignoring them would be very nice though, as I'm more interested in the supported features.
Supported features are indirectly visible through the newly added test cases (>250) and the growing documentation at ReadTheDocs.
I don't know if it can help. My project "vertigo" : a VHDL parser (93 + many 08 features), written in pure Ruby. https://github.com/JC-LL/vertigo. It parses Microwatt , generates an AST and VHDL back.
@JC-LL thanks for pointing to this nice VHDL project. Do you want to try running the PoC Library through your parser? It surfaced a lot of problems in commercial tools :).
What are you using it for?
The goal for pyVHDLParser is generating a CodeDOM and documentation extraction.
Fixed by #54.