Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ianj-als/pcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/pclc/visitors/first_pass_resolver_visitor.py')
-rw-r--r--src/pclc/visitors/first_pass_resolver_visitor.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pclc/visitors/first_pass_resolver_visitor.py b/src/pclc/visitors/first_pass_resolver_visitor.py
index dc8370b..d8c6573 100644
--- a/src/pclc/visitors/first_pass_resolver_visitor.py
+++ b/src/pclc/visitors/first_pass_resolver_visitor.py
@@ -383,6 +383,14 @@ class FirstPassResolverVisitor(ResolverVisitor):
component.declarations,
component.module.resolution_symbols['imports'])
+ self._add_errors("ERROR: %(filename)s at line %(lineno)d, only one input is supported",
+ [component.inputs[0]] if isinstance(component.inputs, tuple) and component.is_leaf else [],
+ lambda i: {'filename' : i.filename,
+ 'lineno' : i.lineno})
+ self._add_errors("ERROR: %(filename)s at line %(lineno)d, only one output is supported",
+ [component.output[0]] if isinstance(component.outputs, tuple) and component.is_leaf else [],
+ lambda o: {'filename' : o.filename,
+ 'lineno' : o.lineno})
self._add_errors("ERROR: %(filename)s at line %(lineno)d, input " \
"declaration contains duplicate identifier %(entity)s",
duplicate_inputs,