Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
9be21230
Commit
9be21230
authored
Sep 20, 2019
by
Tiago Jorge
Browse files
Warn if mapper data type is not yet supported.
parent
290057ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/B_mappers/brave_B_mapper.py
View file @
9be21230
...
...
@@ -175,6 +175,7 @@ class FromVHDLToASN1SCC(RecursiveMapperGeneric[List[int], str]): # pylint: disa
# return ["%s = (double) %s;\n" % (destVar, srcVHDL)]
def
MapBoolean
(
self
,
srcVHDL
:
List
[
int
],
destVar
:
str
,
_
:
AsnBool
,
__
:
AST_Leaftypes
,
___
:
AST_Lookup
)
->
List
[
str
]:
# pylint: disable=invalid-sequence-index
panicWithCallStack
(
"BOOLEANs (%s) not yet supported."
%
node
.
Location
())
# pragma: no cover
register
=
srcVHDL
[
0
]
+
srcVHDL
[
1
]
lines
=
[]
# type: List[str]
lines
.
append
(
"{
\n
"
)
...
...
@@ -211,6 +212,7 @@ class FromVHDLToASN1SCC(RecursiveMapperGeneric[List[int], str]): # pylint: disa
return
lines
def
MapEnumerated
(
self
,
srcVHDL
:
List
[
int
],
destVar
:
str
,
_
:
AsnEnumerated
,
__
:
AST_Leaftypes
,
___
:
AST_Lookup
)
->
List
[
str
]:
# pylint: disable=invalid-sequence-index
panicWithCallStack
(
"ENUMERATEDs (%s) not yet supported."
%
node
.
Location
())
# pragma: no cover
register
=
srcVHDL
[
0
]
+
srcVHDL
[
1
]
lines
=
[]
# type: List[str]
lines
.
append
(
"{
\n
"
)
...
...
@@ -237,6 +239,7 @@ class FromVHDLToASN1SCC(RecursiveMapperGeneric[List[int], str]): # pylint: disa
return
self
.
MapSequence
(
srcVHDL
,
destVar
,
node
,
leafTypeDict
,
names
)
# pragma: nocover
def
MapChoice
(
self
,
srcVHDL
:
List
[
int
],
destVar
:
str
,
node
:
AsnChoice
,
leafTypeDict
:
AST_Leaftypes
,
names
:
AST_Lookup
)
->
List
[
str
]:
# pylint: disable=invalid-sequence-index
panicWithCallStack
(
"CHOICEs (%s) not yet supported."
%
node
.
Location
())
# pragma: no cover
register
=
srcVHDL
[
0
]
+
srcVHDL
[
1
]
lines
=
[]
# type: List[str]
childNo
=
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment