diff options
Diffstat (limited to 'pyGHDL/libghdl/vhdl/parse.py')
-rw-r--r-- | pyGHDL/libghdl/vhdl/parse.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pyGHDL/libghdl/vhdl/parse.py b/pyGHDL/libghdl/vhdl/parse.py index e80773033..4f7412274 100644 --- a/pyGHDL/libghdl/vhdl/parse.py +++ b/pyGHDL/libghdl/vhdl/parse.py @@ -6,9 +6,9 @@ # | .__/ \__, |\____|_| |_|____/|_____(_)_|_|_.__/ \__, |_| |_|\__,_|_| # |_| |___/ |___/ # ============================================================================= -# Authors: -# Tristan Gingold -# Patrick Lehmann +# Authors: +# Tristan Gingold +# Patrick Lehmann # # Package module: Python binding and low-level API for shared library 'libghdl'. # @@ -37,15 +37,21 @@ from ctypes import c_bool from pydecor import export from pyGHDL.libghdl import libghdl +from pyGHDL.libghdl._types import Iir +from pyGHDL.libghdl._decorator import BindToLibGHDL -__all__ = ["Flag_Parse_Parenthesis"] + +__all__ = [ + "Flag_Parse_Parenthesis" +] Flag_Parse_Parenthesis = c_bool.in_dll(libghdl, "vhdl__parse__flag_parse_parenthesis") @export -def Parse_Design_File(): +@BindToLibGHDL("vhdl__parse__parse_design_file") +def Parse_Design_File() -> Iir: """ Parse a file. @@ -53,4 +59,3 @@ def Parse_Design_File(): :return: Return :obj:`~pyGHDL.libghdl.vhdl.nodes.Null_Iir` in case of error. Type: ``Iir_Design_File`` """ - return libghdl.vhdl__parse__parse_design_file() |