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
cdce9b24
Commit
cdce9b24
authored
Jun 11, 2016
by
Thanassis Tsiodras
Browse files
Appease Google's Mobile-friendly status on some pages
parent
a0f45ecd
Changes
48
Expand all
Hide whitespace changes
Inline
Side-by-side
A_mappers/.qgenc_A_mapper.py.swp
0 → 100644
View file @
cdce9b24
File added
asn2dataModel
/Stubs.py
→
A_mappers
/Stubs.py
View file @
cdce9b24
File moved
asn2dataModel
/__init__.py
→
A_mappers
/__init__.py
View file @
cdce9b24
...
...
@@ -4,7 +4,6 @@
"""
asn2dataModel converts ASN.1 modules to a variety of target languages
"""
from
.asn2dataModel
import
main
from
.
import
msgPrinter
from
.
import
msgPrinterASN1
__version__
=
1.0
asn2dataModel
/ada_A_mapper.py
→
A_mappers
/ada_A_mapper.py
View file @
cdce9b24
...
...
@@ -41,7 +41,7 @@ def OnStartup(unused_modelingLanguage, asnFiles, outputDir):
#print "Use ASN1SCC to generate the structures for '%s'" % asnFile
asn1SccPath
=
spawn
.
find_executable
(
'asn1.exe'
)
if
not
asn1SccPath
:
panic
(
"ASN1SCC seems
not installed on
your system (asn1.exe not found in PATH).
\n
"
)
# pragma: no cover
panic
(
"ASN1SCC seems
to be missing from
your system (asn1.exe not found in PATH).
\n
"
)
# pragma: no cover
os
.
system
(
(
"mono "
if
sys
.
argv
[
0
].
endswith
(
'.py'
)
and
sys
.
platform
.
startswith
(
'linux'
)
else
""
)
+
"
\"
{}
\"
-wordSize 8 -typePrefix asn1Scc -Ada -uPER -o
\"
"
.
format
(
asn1SccPath
)
+
...
...
asn2dataModel
/c_A_mapper.py
→
A_mappers
/c_A_mapper.py
View file @
cdce9b24
...
...
@@ -40,7 +40,7 @@ def OnStartup(unused_modelingLanguage, asnFiles, outputDir):
#print "Use ASN1SCC to generate the structures for '%s'" % asnFile
asn1SccPath
=
spawn
.
find_executable
(
'asn1.exe'
)
if
not
asn1SccPath
:
panic
(
"ASN1SCC seems
not installed on
your system (asn1.exe not found in PATH).
\n
"
)
# pragma: no cover
panic
(
"ASN1SCC seems
to be missing from
your system (asn1.exe not found in PATH).
\n
"
)
# pragma: no cover
os
.
system
(
(
"mono "
if
sys
.
argv
[
0
].
endswith
(
'.py'
)
and
sys
.
platform
.
startswith
(
'linux'
)
else
""
)
+
"
\"
{}
\"
-wordSize 8 -typePrefix asn1Scc -c -uPER -o
\"
"
.
format
(
asn1SccPath
)
+
...
...
asn2dataModel
/createInternalTypes.py
→
A_mappers
/createInternalTypes.py
View file @
cdce9b24
File moved
asn2dataModel
/learn_CHOICE_enums.py
→
A_mappers
/learn_CHOICE_enums.py
View file @
cdce9b24
File moved
asn2dataModel
/msgPrinter.py
→
A_mappers
/msgPrinter.py
View file @
cdce9b24
File moved
asn2dataModel
/msgPrinterASN1.py
→
A_mappers
/msgPrinterASN1.py
View file @
cdce9b24
File moved
asn2dataModel
/og_A_mapper.py
→
A_mappers
/og_A_mapper.py
View file @
cdce9b24
File moved
asn2dataModel
/python_A_mapper.py
→
A_mappers
/python_A_mapper.py
View file @
cdce9b24
File moved
asn2dataModel
/qgenada_A_mapper.py
→
A_mappers
/qgenada_A_mapper.py
View file @
cdce9b24
...
...
@@ -28,6 +28,8 @@ code generator A.'''
import
os
import
sys
import
re
import
distutils.spawn
as
spawn
import
commonPy
from
commonPy.utility
import
panic
,
inform
from
commonPy.asnAST
import
AsnBool
,
AsnInt
,
AsnReal
,
AsnString
,
AsnEnumerated
,
AsnSequence
,
AsnSet
,
AsnChoice
,
AsnMetaMember
,
AsnSequenceOf
,
AsnSetOf
...
...
@@ -57,13 +59,13 @@ def CleanNameAsSimulinkWants(name):
def
OnStartup
(
unused_modelingLanguage
,
asnFiles
,
outputDir
):
#print "Use ASN1SCC to generate the structures for '%s'" % asnFile
if
None
==
os
.
getenv
(
"ASN1SCC"
):
if
None
==
os
.
getenv
(
"DMT"
):
# pragma: no cover
panic
(
"DMT environment variable is not set, you must set it."
)
# pragma: no cover
os
.
putenv
(
"ASN1SCC"
,
os
.
getenv
(
"DMT"
)
+
os
.
sep
+
"asn1scc/asn1.exe"
)
# pragma: no cover
asn1SccPath
=
spawn
.
find_executable
(
'asn1.exe'
)
if
not
asn1SccPath
:
panic
(
"ASN1SCC seems to be missing from your system (asn1.exe not found in PATH).
\n
"
)
# pragma: no cover
os
.
system
(
(
"mono "
if
sys
.
argv
[
0
].
endswith
(
'.py'
)
and
sys
.
platform
.
startswith
(
'linux'
)
else
""
)
+
"
\"
$ASN1SCC
\"
-wordSize 8 -typePrefix asn1Scc -Ada -uPER -o
\"
"
+
outputDir
+
"
\"
\"
"
+
"
\"
\"
"
.
join
(
asnFiles
)
+
"
\"
"
)
"
\"
{}
\"
-wordSize 8 -typePrefix asn1Scc -c -uPER -o
\"
"
.
format
(
asn1SccPath
)
+
outputDir
+
"
\"
\"
"
+
"
\"
\"
"
.
join
(
asnFiles
)
+
"
\"
"
)
os
.
system
(
"rm -f
\"
"
+
outputDir
+
"
\"
/*.adb"
)
global
g_bHasStartupRunOnce
...
...
@@ -88,11 +90,11 @@ def OnStartup(unused_modelingLanguage, asnFiles, outputDir):
def
OnBasic
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: nocover
def
OnSequence
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: nocover
def
OnSet
(
nodeTypename
,
node
,
leafTypeDict
):
...
...
@@ -100,11 +102,11 @@ def OnSet(nodeTypename, node, leafTypeDict):
def
OnEnumerated
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: nocover
def
OnSequenceOf
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: nocover
def
OnSetOf
(
nodeTypename
,
node
,
leafTypeDict
):
...
...
@@ -112,7 +114,7 @@ def OnSetOf(nodeTypename, node, leafTypeDict):
def
OnChoice
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: nocover
def
OnShutdown
():
...
...
asn2dataModel
/qgenc_A_mapper.py
→
A_mappers
/qgenc_A_mapper.py
View file @
cdce9b24
...
...
@@ -22,6 +22,7 @@
# generated code.
#
import
re
import
commonPy
from
commonPy.utility
import
panic
,
inform
from
commonPy.asnAST
import
AsnBool
,
AsnInt
,
AsnReal
,
AsnString
,
AsnEnumerated
,
AsnSequence
,
AsnSet
,
AsnChoice
,
AsnMetaMember
,
AsnSequenceOf
,
AsnSetOf
...
...
@@ -68,11 +69,11 @@ def OnStartup(unused_modelingLanguage, unused_asnFile, outputDir):
def
OnBasic
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: no cover
def
OnSequence
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: no cover
def
OnSet
(
nodeTypename
,
node
,
leafTypeDict
):
...
...
@@ -80,11 +81,11 @@ def OnSet(nodeTypename, node, leafTypeDict):
def
OnEnumerated
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: no cover
def
OnSequenceOf
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: no cover
def
OnSetOf
(
nodeTypename
,
node
,
leafTypeDict
):
...
...
@@ -92,7 +93,7 @@ def OnSetOf(nodeTypename, node, leafTypeDict):
def
OnChoice
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: no cover
def
OnShutdown
():
...
...
asn2dataModel
/rtds_A_mapper.py
→
A_mappers
/rtds_A_mapper.py
View file @
cdce9b24
...
...
@@ -47,7 +47,7 @@ def OnSequence(nodeTypename, node, leafTypeDict):
def
OnSet
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: no cover
def
OnEnumerated
(
nodeTypename
,
node
,
leafTypeDict
):
...
...
@@ -59,7 +59,7 @@ def OnSequenceOf(nodeTypename, node, leafTypeDict):
def
OnSetOf
(
nodeTypename
,
node
,
leafTypeDict
):
pass
pass
# pragma: no cover
def
OnChoice
(
nodeTypename
,
node
,
leafTypeDict
):
...
...
asn2dataModel
/scade6_A_mapper.py
→
A_mappers
/scade6_A_mapper.py
View file @
cdce9b24
...
...
@@ -103,7 +103,7 @@ def OnStartup(unused_modelingLanguage, asnFile, outputDir):
inform
(
"Scade612_A_mapper: Creating file '%s'..."
,
outputFilename
)
global
g_outputFile
g_outputFile
=
open
(
outputDir
+
outputFilename
,
'w'
)
g_outputFile
=
open
(
outputDir
+
outputFilename
,
'w
b
'
)
global
g_mainOid
g_mainOid
=
"/"
+
RandomHex
(
4
)
+
"/"
+
RandomHex
(
3
)
+
"/"
...
...
asn2dataModel
/simulink_A_mapper.py
→
A_mappers
/simulink_A_mapper.py
View file @
cdce9b24
File moved
asn2dataModel
/smp2_A_mapper.py
→
A_mappers
/smp2_A_mapper.py
View file @
cdce9b24
File moved
asn2dataModel
/sql_A_mapper.py
→
A_mappers
/sql_A_mapper.py
View file @
cdce9b24
File moved
asn2dataModel
/sqlalchemy_A_mapper.py
→
A_mappers
/sqlalchemy_A_mapper.py
View file @
cdce9b24
File moved
B_mappers/AadlLexer.py
0 → 100644
View file @
cdce9b24
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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