From e2a88fd5a47b2ef3377494c5561abcdff83a0f3b Mon Sep 17 00:00:00 2001 From: Angelo Probst Date: Wed, 6 Nov 2024 15:39:01 -0300 Subject: [PATCH] hotfix --- hyperon_das/tokenizers/elements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperon_das/tokenizers/elements.py b/hyperon_das/tokenizers/elements.py index 8350777a..1c5a2896 100644 --- a/hyperon_das/tokenizers/elements.py +++ b/hyperon_das/tokenizers/elements.py @@ -232,7 +232,7 @@ def from_tokens(tokens: list[str], cursor: int = 0) -> tuple[int, "OrOperator"]: cursor, operand = ElementBuilder.from_tokens(tokens, cursor) operator.operands.append(operand) return cursor, operator - raise ValueError(f"Unsupported sequence of tokens: {tokens[cursor-1:]}") + raise ValueError(f"Unsupported sequence of tokens: {tokens[cursor:]}") @dataclasses.dataclass