diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-06-25 10:44:29 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-12-24 11:48:39 +0100 |
commit | e2f88a56ffc73b8df5eb501ad59a8112d23ea35c (patch) | |
tree | e0028ae7be57dd2394285563984906d1e28ea0c0 | |
parent | f4f081a771b2b389706a10a31068df6828002ab3 (diff) | |
download | ghdl-e2f88a56ffc73b8df5eb501ad59a8112d23ea35c.tar.gz ghdl-e2f88a56ffc73b8df5eb501ad59a8112d23ea35c.tar.bz2 ghdl-e2f88a56ffc73b8df5eb501ad59a8112d23ea35c.zip |
Formatting by black.
(cherry picked from commit 68f9ef6f18ac454dd25a180c6bf1046c8172174d)
-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") |