Commit d614520e authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Minor bugfixes

parent 8bd50d6d
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment