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
926013c4
Commit
926013c4
authored
Jul 15, 2015
by
Maxime Perrotin
Browse files
Fix typos
parent
9b6ecc97
Changes
1
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/vn.py
View file @
926013c4
...
...
@@ -4,7 +4,7 @@
"""
ASN.1 Value Editor - Value Notation parser and converter
This module contains t
wo
functions:
This module contains t
he following
functions:
1) fromValueNotationToPySide(varName, string)
Parse a string containing an ASN.1 value expressed in GSER
...
...
@@ -15,6 +15,9 @@
2) toASN1ValueNotation(val)
Does the reverse (from Qt widget to ASN.1 Value Notation/GSER)
3) valueNotationToSwig(gser, dest, sort, ASN1Swig, ASN1_AST, var=None)
Parse a Value Notation string and fill a SWIG instance with the values
Copyright (c) 2012-2015 European Space Agency
Designed and implemented by Maxime Perrotin
...
...
@@ -65,7 +68,7 @@ INT = Combine(Optional(oneOf("+ -")) + (Word(srange("[1-9]"), nums)|Literal('0')
LID
=
Word
(
string
.
letters
,
string
.
letters
+
string
.
digits
+
'-'
)
identifier
=
LID
.
setResultsName
(
'IDENTIFIER'
)
# Value reference is in practice used to identify enumerated value
d
# Value reference is in practice used to identify enumerated value
s
valuereference
=
LID
.
setResultsName
(
'VALUE_REF'
)
# FloatingPointLiteral
...
...
@@ -209,7 +212,6 @@ def valueNotationToSwig(gser, dest, sort, ASN1Swig, ASN1_AST, var=None):
Outputs:
none - "dest" is modified by this function
'''
#var = var or fromValueNotationToPySide("input", gser).popitem()[1]
var
=
var
or
value
.
parseString
(
gser
,
True
)[
0
]
def
reach
(
field
,
orig
,
idx
=
True
):
''' Helper: move swig pointer to the next field, and optionaly
...
...
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