Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
48946410
Commit
48946410
authored
Sep 11, 2014
by
Maxime Perrotin
Browse files
Fixed ASN.1/SDL char conversion (dash/underscore)
parent
2361a814
Changes
1
Hide whitespace changes
Inline
Side-by-side
ogParser.py
View file @
48946410
...
...
@@ -692,7 +692,8 @@ def check_type_compatibility(primary, type_ref, context):
elif
isinstance
(
primary
,
ogAST
.
PrimChoiceItem
)
\
and
basic_type
.
kind
.
startswith
(
'Choice'
):
for
choicekey
,
choice
in
basic_type
.
Children
.
viewitems
():
if
choicekey
.
lower
()
==
primary
.
value
[
'choice'
].
lower
():
if
choicekey
.
lower
().
replace
(
'-'
,
'_'
)
==
\
primary
.
value
[
'choice'
].
lower
().
replace
(
'-'
,
'_'
):
break
else
:
raise
TypeError
(
'Non-existent choice "{choice}" in type {t1}'
...
...
@@ -1112,7 +1113,8 @@ def expression(root, context):
elif
root
.
type
==
lexer
.
SELECTOR
:
return
selector_expression
(
root
,
context
)
else
:
raise
NotImplementedError
raise
NotImplementedError
(
sdl92Parser
.
tokenNames
[
root
.
type
]
+
' - line '
+
str
(
root
.
getLine
()))
def
logic_expression
(
root
,
context
):
...
...
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