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
d614520e
Commit
d614520e
authored
Aug 10, 2014
by
Maxime Perrotin
Browse files
Minor bugfixes
parent
8bd50d6d
Changes
1
Show whitespace changes
Inline
Side-by-side
ogParser.py
View file @
d614520e
...
...
@@ -2483,15 +2483,20 @@ def process_definition(root, parent=None, context=None):
elif
child
.
type
==
lexer
.
COMMENT
:
process
.
comment
,
_
,
_
=
end
(
child
)
else
:
warnings
.
append
(
'Unsupported process definition child: '
+
warnings
.
append
(
[
'Unsupported process definition child: '
+
sdl92Parser
.
tokenNames
[
child
.
type
]
+
' - line '
+
str
(
child
.
getLine
()))
' - line '
+
str
(
child
.
getLine
()),
[
proc_x
,
proc_y
],
[]])
for
proc
,
content
in
inner_proc
:
err
,
warn
=
procedure_post
(
proc
,
content
,
context
=
process
)
errors
.
extend
(
err
)
warnings
.
extend
(
warn
)
for
each
in
chain
(
errors
,
warnings
):
try
:
each
[
2
].
insert
(
0
,
'PROCESS {}'
.
format
(
process
.
processName
))
except
AttributeError
as
err
:
LOG
.
debug
(
str
(
err
))
LOG
.
error
(
'Internal error - please report "{}"'
.
format
(
str
(
each
)))
errors
.
extend
(
perr
)
return
process
,
errors
,
warnings
...
...
@@ -3477,6 +3482,9 @@ def assign(root, context):
)
expr
.
kind
=
'assign'
if
len
(
root
.
children
)
!=
2
:
errors
.
append
(
'Syntax error: {}'
.
format
(
expr
.
inputString
))
if
root
.
children
[
0
].
type
==
lexer
.
CALL
:
expr
.
left
,
err
,
warn
=
call_expression
(
root
.
children
[
0
],
context
)
elif
root
.
children
[
0
].
type
==
lexer
.
SELECTOR
:
...
...
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