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
e70aa01a
Commit
e70aa01a
authored
Feb 12, 2015
by
Maxime Perrotin
Browse files
Fix substring generation
parent
d9e2847a
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/ogParser.py
View file @
e70aa01a
...
...
@@ -679,7 +679,8 @@ def check_type_compatibility(primary, type_ref, context):
str
(
basic_type
.
Min
)
+
'..'
+
str
(
basic_type
.
Max
)
+
']'
)
for
elem
in
primary
.
value
:
check_type_compatibility
(
elem
,
basic_type
.
type
,
context
)
if
not
hasattr
(
primary
,
'expected_type'
):
if
not
hasattr
(
primary
,
'expected_type'
)
\
and
type_ref
.
__name__
not
in
(
'Apnd'
,
'SubStr'
):
primary
.
expected_type
=
type_ref
return
elif
isinstance
(
primary
,
ogAST
.
PrimSequence
)
\
...
...
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