Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dmt
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
dmt
Commits
f3f6a9de
Commit
f3f6a9de
authored
Jul 29, 2019
by
Thanassis Tsiodras
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitrepos.estec.esa.int/taste/dmt
parents
6c418708
8d96d503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
dmt/A_mappers/ada_A_mapper.py
dmt/A_mappers/ada_A_mapper.py
+1
-1
dmt/A_mappers/c_A_mapper.py
dmt/A_mappers/c_A_mapper.py
+6
-6
No files found.
dmt/A_mappers/ada_A_mapper.py
View file @
f3f6a9de
...
...
@@ -52,7 +52,7 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str,
(
"mono "
if
sys
.
platform
.
startswith
(
'linux'
)
else
""
)
+
"
\"
{}
\"
-typePrefix asn1Scc -Ada {} -o
\"
"
.
format
(
asn1SccPath
,
extraFlags
)
+
outputDir
+
"
\"
\"
"
+
"
\"
\"
"
.
join
(
asnFiles
)
+
"
\"
"
)
os
.
system
(
"rm -f
\"
"
+
outputDir
+
"
\"
/*.adb"
)
#
os.system("rm -f \"" + outputDir + "\"/*.adb")
def
OnBasic
(
unused_nodeTypename
:
str
,
unused_node
:
AsnBasicNode
,
unused_leafTypeDict
:
AST_Leaftypes
)
->
None
:
...
...
dmt/A_mappers/c_A_mapper.py
View file @
f3f6a9de
...
...
@@ -49,12 +49,12 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str,
(
"mono "
if
sys
.
platform
.
startswith
(
'linux'
)
else
""
)
+
"
\"
{}
\"
-typePrefix asn1Scc -c -uPER -o
\"
"
.
format
(
asn1SccPath
)
+
outputDir
+
"
\"
\"
"
+
"
\"
\"
"
.
join
(
asnFiles
)
+
"
\"
"
)
cmd
=
'rm -f '
for
i
in
[
'real.c'
,
'asn1crt.c'
,
'acn.c'
]:
cmd
+=
' "'
+
outputDir
+
'"/'
+
i
os
.
system
(
cmd
)
for
tmp
in
asnFiles
:
os
.
system
(
"rm -f
\"
"
+
outputDir
+
os
.
sep
+
os
.
path
.
basename
(
os
.
path
.
splitext
(
tmp
)[
0
])
+
".c
\"
"
)
#
cmd = 'rm -f '
#
for i in ['real.c', 'asn1crt.c', 'acn.c']:
#
cmd += ' "' + outputDir + '"/' + i
#
os.system(cmd)
#
for tmp in asnFiles:
#
os.system("rm -f \"" + outputDir + os.sep + os.path.basename(os.path.splitext(tmp)[0]) + ".c\"")
def
OnBasic
(
unused_nodeTypename
:
str
,
unused_node
:
AsnBasicNode
,
unused_leafTypeDict
:
AST_Leaftypes
)
->
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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