aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-11-05 07:33:03 +0100
committerTristan Gingold <tgingold@free.fr>2021-11-05 07:33:03 +0100
commitb0f3a909b0ee15b57b6999706fe1327f97a48a6c (patch)
treef0c7c6535f4a3c7835d9688c2360c7c3887ef23b /scripts
parent46256fac0b1bf55c61deba39a368f53a2297b583 (diff)
downloadghdl-b0f3a909b0ee15b57b6999706fe1327f97a48a6c.tar.gz
ghdl-b0f3a909b0ee15b57b6999706fe1327f97a48a6c.tar.bz2
ghdl-b0f3a909b0ee15b57b6999706fe1327f97a48a6c.zip
scripts/pnodes.py: add a comment
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pnodes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/pnodes.py b/scripts/pnodes.py
index f260c4b1a..ec00a54ac 100755
--- a/scripts/pnodes.py
+++ b/scripts/pnodes.py
@@ -241,6 +241,9 @@ def read_kinds(filename):
# Read functions
def read_methods(filename):
lr = linereader(filename)
+ # Note: this is a list so that the output is deterministic.
+ # Duplicates are not detected, but they will be by the Ada compiler.
+ # TODO: use an ordered dict ?
funcs = []
pat_field = re.compile(r" -- Field: ([\w,]+)( \w+)?( \(\w+\))?\n")
pat_conv = re.compile(r"^ \((\w+)\)$")