aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-07-30 22:42:40 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 16:35:33 +0200
commit8a71357337e46c256f9a243fb574dd78dcec67bc (patch)
tree64ccf1460f9a61a029611a2789b1c0a2f10eb0e1 /pyGHDL/dom
parent7ad5199fef58f8966121adaeda0440b10840ccdd (diff)
downloadghdl-8a71357337e46c256f9a243fb574dd78dcec67bc.tar.gz
ghdl-8a71357337e46c256f9a243fb574dd78dcec67bc.tar.bz2
ghdl-8a71357337e46c256f9a243fb574dd78dcec67bc.zip
Trying to provide a binding for str_table.
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r--pyGHDL/dom/Literal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyGHDL/dom/Literal.py b/pyGHDL/dom/Literal.py
index 435563793..5fb31f0e7 100644
--- a/pyGHDL/dom/Literal.py
+++ b/pyGHDL/dom/Literal.py
@@ -42,7 +42,7 @@ from pyVHDLModel.SyntaxModel import (
CharacterLiteral as VHDLModel_CharacterLiteral,
StringLiteral as VHDLModel_StringLiteral,
)
-from pyGHDL.libghdl import name_table
+from pyGHDL.libghdl import name_table, str_table
from pyGHDL.libghdl._types import Iir
from pyGHDL.libghdl.vhdl import nodes
from pyGHDL.dom import DOMMixin
@@ -150,5 +150,5 @@ class StringLiteral(VHDLModel_StringLiteral, DOMMixin):
@classmethod
def parse(cls, literalNode: Iir) -> "StringLiteral":
stringID = nodes.Get_String8_Id(literalNode)
- value = name_table.Get_Name_Ptr(stringID)
+ value = str_table.Get_String8_Ptr(stringID)
return cls(literalNode, value)