-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
Description
Some time ago, I wrote a generic VHDL language model pyVHDLModel in Python. This model can be produced (instantiated) by a parser like pyVHDLParser or pyGHDL.dom and it can be consumed by tools wanting to work with VHDL. A consumer could be a VHDLDomain for Sphinx.
I would like to discuss if NVC is interested in a NVC to Python bridge?
If so, I have a few questions:
- Can NVC be compiled as a shared library (
*.so/*.dll/*.dylib)? - Is there a list of function and parameter descriptions that can be called from Python?
In GHDL, a Python script auto generates most of the binding files. Then a decorator is used for interfacing.@export @BindToLibGHDL("files_map__location_to_file") def Location_To_File(Location: LocationType) -> SourceFileEntry: """ Convert :obj:`Location` to a source file. :param Location: Location :return: Source file. Return ``No_Source_File_Entry`` if location is incorrect. """ return 0 # pragma: no cover
- Can NVC preserve comments for documentation extraction?