Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
adf2b306
Commit
adf2b306
authored
Oct 04, 2016
by
Maxime Perrotin
Browse files
Dont raise error when detecting multiple entry/exit
parent
d3ecd2c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/ogParser.py
View file @
adf2b306
...
...
@@ -2029,7 +2029,8 @@ def composite_state(root, parent=None, context=None):
# check for duplicate declaration
if
any
(
each
.
inputString
.
lower
()
==
new_proc
.
inputString
.
lower
()
for
each
in
chain
(
comp
.
content
.
inner_procedures
,
context
.
procedures
)):
context
.
procedures
)
if
each
.
inputString
.
lower
()
not
in
(
'entry'
,
'exit'
)):
errors
.
append
([
'Duplicate procedure Declaration: {}'
.
format
(
new_proc
.
inputString
),
[
new_proc
.
pos_x
,
new_proc
.
pos_y
],
[]])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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