From 8675abadc5e7a90c948bea8214a0f2ccf9ad1e42 Mon Sep 17 00:00:00 2001 From: Derval Guillaume <gderval@uliege.be> Date: Sun, 4 Dec 2022 15:44:33 +0100 Subject: [PATCH] Typo --- src/gboml/gboml.lark | 4 ++-- src/gboml/parsing.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gboml/gboml.lark b/src/gboml/gboml.lark index 8938d67..886c3cb 100644 --- a/src/gboml/gboml.lark +++ b/src/gboml/gboml.lark @@ -106,8 +106,8 @@ dict_entry: rvalue ":" rvalue [loop] range: "[" expression ":" expression [":" expression] "]" // EXPRESSIONS -?expression: substraction -?substraction: _separated_list{sum, "-"} +?expression: subtraction +?subtraction: _separated_list{sum, "-"} ?sum: _separated_list{division, "+"} ?division: _separated_list{product, "/"} ?product: _separated_list{modulo, "*"} diff --git a/src/gboml/parsing.py b/src/gboml/parsing.py index 9c14e01..b896a8c 100644 --- a/src/gboml/parsing.py +++ b/src/gboml/parsing.py @@ -72,7 +72,7 @@ def _lark_to_gboml(tree: Tree, filename: Optional[str] = None) -> GBOMLGraph: "objective": Objective, "base_loop": BaseLoop, "implicit_loop": ImplicitLoop, - "substraction": op_transform(Operator.minus), + "subtraction": op_transform(Operator.minus), "sum": op_transform(Operator.plus), "exponent": op_transform(Operator.exponent), "product": op_transform(Operator.times), -- GitLab