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
path: root/src
diff options
context:
space:
mode:
authorIan Johnson <ian.johnson@appliedlanguage.com>2013-06-10 20:26:36 +0400
committerIan Johnson <ian.johnson@appliedlanguage.com>2013-06-10 20:26:36 +0400
commitab07202c56fd5c1aec5aa3811978e9dde7559ae8 (patch)
tree8e152372ee853dc94f62c297591af920e42056ee /src
parent210265b6f4dd39d5c256fe27c1c4fe815d83a7a7 (diff)
PCLc: Errors for >>>, &&&, and *** now specify the line number of the operator.
Diffstat (limited to 'src')
-rw-r--r--src/pclc/parser/pcl_parser.py6
-rwxr-xr-xsrc/pclc/pclc.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pclc/parser/pcl_parser.py b/src/pclc/parser/pcl_parser.py
index 3c12c38..cba3a98 100644
--- a/src/pclc/parser/pcl_parser.py
+++ b/src/pclc/parser/pcl_parser.py
@@ -169,7 +169,7 @@ def p_composition_expression(p):
if len(p) == 2:
p[0] = p[1]
else:
- p[0] = CompositionExpression(p.parser.filename, p[1].lineno, p[1], p[3])
+ p[0] = CompositionExpression(p.parser.filename, p.lineno(2), p[1], p[3])
def p_parallel_with_tuple_expression(p):
'''parallel_with_tuple_expression : parallel_with_scalar_expression
@@ -177,7 +177,7 @@ def p_parallel_with_tuple_expression(p):
if len(p) == 2:
p[0] = p[1]
else:
- p[0] = ParallelWithTupleExpression(p.parser.filename, p[1].lineno, p[1], p[3])
+ p[0] = ParallelWithTupleExpression(p.parser.filename, p.lineno(2), p[1], p[3])
def p_parallel_with_scalar_expression(p):
'''parallel_with_scalar_expression : unary_expression
@@ -185,7 +185,7 @@ def p_parallel_with_scalar_expression(p):
if len(p) == 2:
p[0] = p[1]
else:
- p[0] = ParallelWithScalarExpression(p.parser.filename, p[1].lineno, p[1], p[3])
+ p[0] = ParallelWithScalarExpression(p.parser.filename, p.lineno(2), p[1], p[3])
def p_unary_expression(p):
'''unary_expression : first_expression
diff --git a/src/pclc/pclc.py b/src/pclc/pclc.py
index 597d88e..1a41bce 100755
--- a/src/pclc/pclc.py
+++ b/src/pclc/pclc.py
@@ -27,7 +27,7 @@ from parser.resolver import Resolver
from visitors.executor_visitor import ExecutorVisitor
-__VERSION = "1.1.0"
+__VERSION = "1.1.1"
if __name__ == '__main__':