Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
458b857b
Commit
458b857b
authored
Aug 11, 2015
by
Maxime Perrotin
Browse files
Fix parsing error
parent
04fec273
Changes
2
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/vdm_vn.py
View file @
458b857b
...
...
@@ -167,7 +167,8 @@ def vdm_to_swig(vdm, dest, sort, ASN1Swig, ASN1_AST, var=None):
none - "dest" is modified by this function
'''
# Parse the VDM string and transform it to a python value
var
=
var
or
value
.
parseString
(
vdm
,
True
)[
0
]
if
var
is
None
:
var
=
value
.
parseString
(
vdm
,
True
)[
0
]
def
find_basic_type
(
a_type
):
''' Return the ASN.1 basic type of a_type '''
...
...
asn1_value_editor/vn.py
View file @
458b857b
...
...
@@ -212,7 +212,8 @@ def valueNotationToSwig(gser, dest, sort, ASN1Swig, ASN1_AST, var=None):
Outputs:
none - "dest" is modified by this function
'''
var
=
var
or
value
.
parseString
(
gser
,
True
)[
0
]
if
var
is
None
:
var
=
value
.
parseString
(
gser
,
True
)[
0
]
def
reach
(
field
,
orig
,
idx
=
True
):
''' Helper: move swig pointer to the next field, and optionaly
index (if idx=True)
...
...
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