diff options
| -rw-r--r-- | pyGHDL/dom/NonStandard.py | 4 | ||||
| -rw-r--r-- | pyGHDL/dom/_Utils.py | 1 | ||||
| -rw-r--r-- | pyGHDL/libghdl/flags.py | 18 | 
3 files changed, 13 insertions, 10 deletions
| diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index 13ddec68f..2066c190f 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -66,8 +66,8 @@ from pyGHDL.libghdl import (      files_map_editor,      ENCODING,  ) -from pyGHDL.libghdl.flags import Flag_Gather_Comments -from pyGHDL.libghdl.vhdl import nodes, sem_lib +from pyGHDL.libghdl.flags import Flag_Gather_Comments, Flags, VhdlStandard +from pyGHDL.libghdl.vhdl import nodes, sem_lib, parse  from pyGHDL.libghdl.vhdl.parse import Flag_Parse_Parenthesis  from pyGHDL.dom import DOMException, Position  from pyGHDL.dom._Utils import GetIirKindOfNode, CheckForErrors, GetNameOfNode, GetDocumentationOfNode diff --git a/pyGHDL/dom/_Utils.py b/pyGHDL/dom/_Utils.py index 22468d988..83f10eae8 100644 --- a/pyGHDL/dom/_Utils.py +++ b/pyGHDL/dom/_Utils.py @@ -53,6 +53,7 @@ __MODE_TRANSLATION = {  Translation table if IIR modes to pyVHDLModel mode enumeration values.  """ +  @export  def CheckForErrors() -> None:      """ diff --git a/pyGHDL/libghdl/flags.py b/pyGHDL/libghdl/flags.py index 4e5f73d00..26d548cd5 100644 --- a/pyGHDL/libghdl/flags.py +++ b/pyGHDL/libghdl/flags.py @@ -56,20 +56,22 @@ assert sizeof(c_bool) == 1  class VhdlStandard(IntEnum):      """An enumeration representing libghdl's internal ``Vhdl_Std_Type`` enumeration type.""" -    Vhdl_87 = 0   #: VHDL'87 -    Vhdl_93 = 1   #: VHDL'93 -    Vhdl_00 = 2   #: VHDL'2000 -    Vhdl_02 = 3   #: VHDL'2002 -    Vhdl_08 = 4   #: VHDL'2008 -    Vhdl_19 = 5   #: VHDL'2019 +    Vhdl_87 = 0  #: VHDL'87 +    Vhdl_93 = 1  #: VHDL'93 +    Vhdl_00 = 2  #: VHDL'2000 +    Vhdl_02 = 3  #: VHDL'2002 +    Vhdl_08 = 4  #: VHDL'2008 +    Vhdl_19 = 5  #: VHDL'2019 + -      Flag_Elocations = c_bool.in_dll(libghdl, "flags__flag_elocations")  Verbose = c_bool.in_dll(libghdl, "flags__verbose")  #: Internal boolean flag representing :option:`-v`.  MB_Comment = c_bool.in_dll(libghdl, "flags__mb_comment")  #: Internal boolean flag representing :option:`--mb-comment`.  Explicit = c_bool.in_dll(libghdl, "flags__flag_explicit")  #: Internal boolean flag representing :option:`-fexplicit`. -Relaxed = c_bool.in_dll(libghdl, "flags__flag_relaxed_rules")  #: Internal boolean flag representing :option:`-frelaxed`. +Relaxed = c_bool.in_dll( +    libghdl, "flags__flag_relaxed_rules" +)  #: Internal boolean flag representing :option:`-frelaxed`.  Flag_Elaborate_With_Outdated = c_bool.in_dll(libghdl, "flags__flag_elaborate_with_outdated") | 
