aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/vhdl
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-01-06 01:41:32 +0100
committertgingold <tgingold@users.noreply.github.com>2021-01-10 10:14:16 +0100
commitc633188e24e35aeb540b89ab142efabef0801f13 (patch)
tree36564458f3901bb826545afea56a7b3c9c0c94d8 /pyGHDL/libghdl/vhdl
parent4a55232c3461a370c08b6c8a05a42011655c22a0 (diff)
downloadghdl-c633188e24e35aeb540b89ab142efabef0801f13.tar.gz
ghdl-c633188e24e35aeb540b89ab142efabef0801f13.tar.bz2
ghdl-c633188e24e35aeb540b89ab142efabef0801f13.zip
Adding types and docstrings to libghdl.
Diffstat (limited to 'pyGHDL/libghdl/vhdl')
-rw-r--r--pyGHDL/libghdl/vhdl/nodes.py10
-rw-r--r--pyGHDL/libghdl/vhdl/nodes_meta.py4
-rw-r--r--pyGHDL/libghdl/vhdl/tokens.py2
3 files changed, 15 insertions, 1 deletions
diff --git a/pyGHDL/libghdl/vhdl/nodes.py b/pyGHDL/libghdl/vhdl/nodes.py
index fdf3fa437..659813d1e 100644
--- a/pyGHDL/libghdl/vhdl/nodes.py
+++ b/pyGHDL/libghdl/vhdl/nodes.py
@@ -1,6 +1,7 @@
# Auto generated Python source file from Ada sources
# Call 'make' in 'src/vhdl' to regenerate:
#
+from pydecor import export
from pyGHDL.libghdl import libghdl
Null_Iir = 0
@@ -13,7 +14,7 @@ Iir_Flist_Others = 1
Iir_Flist_All = 2
-
+@export
class Iir_Kind:
Unused = 0
Error = 1
@@ -332,6 +333,7 @@ class Iir_Kind:
Attribute_Name = 314
+@export
class Iir_Kinds:
Library_Unit = [
Iir_Kind.Entity_Declaration,
@@ -1034,6 +1036,7 @@ class Iir_Kinds:
+@export
class Iir_Mode:
Unknown_Mode = 0
Linkage_Mode = 1
@@ -1043,6 +1046,7 @@ class Iir_Mode:
In_Mode = 5
+@export
class Iir_Staticness:
Unknown = 0
PNone = 1
@@ -1050,17 +1054,20 @@ class Iir_Staticness:
Locally = 3
+@export
class Iir_Constraint:
Unconstrained = 0
Partially_Constrained = 1
Fully_Constrained = 2
+@export
class Iir_Delay_Mechanism:
Inertial_Delay = 0
Transport_Delay = 1
+@export
class Date_State:
Extern = 0
Disk = 1
@@ -1068,6 +1075,7 @@ class Date_State:
Analyze = 3
+@export
class Iir_Predefined:
Error = 0
Boolean_And = 1
diff --git a/pyGHDL/libghdl/vhdl/nodes_meta.py b/pyGHDL/libghdl/vhdl/nodes_meta.py
index 1826bef68..7d41476b2 100644
--- a/pyGHDL/libghdl/vhdl/nodes_meta.py
+++ b/pyGHDL/libghdl/vhdl/nodes_meta.py
@@ -1,6 +1,7 @@
# Auto generated Python source file from Ada sources
# Call 'make' in 'src/vhdl' to regenerate:
#
+from pydecor import export
from pyGHDL.libghdl import libghdl
@@ -16,6 +17,7 @@ get_field_type = libghdl.vhdl__nodes_meta__get_field_type
get_field_attribute = libghdl.vhdl__nodes_meta__get_field_attribute
+@export
class types:
Boolean = 0
Date_State_Type = 1
@@ -52,6 +54,7 @@ class types:
Tri_State_Type = 32
+@export
class Attr:
ANone = 0
Chain = 1
@@ -64,6 +67,7 @@ class Attr:
Ref = 8
+@export
class fields:
First_Design_Unit = 0
Last_Design_Unit = 1
diff --git a/pyGHDL/libghdl/vhdl/tokens.py b/pyGHDL/libghdl/vhdl/tokens.py
index d75ef1bde..87cc848b8 100644
--- a/pyGHDL/libghdl/vhdl/tokens.py
+++ b/pyGHDL/libghdl/vhdl/tokens.py
@@ -1,8 +1,10 @@
# Auto generated Python source file from Ada sources
# Call 'make' in 'src/vhdl' to regenerate:
#
+from pydecor import export
+@export
class Tok:
Invalid = 0
Left_Paren = 1