diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-11-23 18:33:02 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-11-23 18:33:02 +0100 |
commit | 345bcdbf2fbe012a8b4da772329d18757fef5594 (patch) | |
tree | cf0b071286121889773d35c0bd0f84e15e726853 /src/vhdl/python/pnodespy.py | |
parent | 501366998031d73cc4286aefabffafda39921a67 (diff) | |
download | ghdl-345bcdbf2fbe012a8b4da772329d18757fef5594.tar.gz ghdl-345bcdbf2fbe012a8b4da772329d18757fef5594.tar.bz2 ghdl-345bcdbf2fbe012a8b4da772329d18757fef5594.zip |
Update python binding for flists.
Diffstat (limited to 'src/vhdl/python/pnodespy.py')
-rwxr-xr-x | src/vhdl/python/pnodespy.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vhdl/python/pnodespy.py b/src/vhdl/python/pnodespy.py index 11f9fcf2f..3f3dfb4ee 100755 --- a/src/vhdl/python/pnodespy.py +++ b/src/vhdl/python/pnodespy.py @@ -99,7 +99,7 @@ def do_class_fields(): def read_spec_enum(type_name, prefix, class_name): """Read an enumeration declaration from iirs.ads""" pat_decl = re.compile(r' type {0} is$'.format(type_name)) - pat_enum = re.compile(r' {0}_(\w+),?(-- .*)?$'.format(prefix)) + pat_enum = re.compile(r' {0}(\w+),?(-- .*)?$'.format(prefix)) lr = pnodes.linereader(pnodes.kind_file) while not pat_decl.match(lr.get()): pass @@ -117,10 +117,12 @@ def read_spec_enum(type_name, prefix, class_name): def do_libghdl_iirs(): print('from libghdl import libghdl') do_class_kinds() - read_spec_enum('Iir_Mode', 'Iir', 'Iir_Mode') - read_spec_enum('Date_State_Type', 'Date', 'Date_State') + read_spec_enum('Iir_Mode', 'Iir_', 'Iir_Mode') + read_spec_enum('Iir_Staticness', '', 'Iir_Staticness') + read_spec_enum('Iir_Constraint', '', 'Iir_Constraint') + read_spec_enum('Date_State_Type', 'Date_', 'Date_State') read_spec_enum('Iir_Predefined_Functions', - 'Iir_Predefined', 'Iir_Predefined') + 'Iir_Predefined_', 'Iir_Predefined') do_iirs_subprg() |