Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiplication sign #203

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Fix multiplication sign #203

merged 1 commit into from
Dec 5, 2024

Conversation

Lotes
Copy link
Collaborator

@Lotes Lotes commented Nov 26, 2024

Closes #188

The problem was that *ABC in XYZ*ABC was interpreted as symbolic label name. By removing the token and lifting it up to a data parser rule, it is possible to interpret it as multiplication.

@Lotes Lotes requested a review from dhuebner November 26, 2024 10:03
@Lotes Lotes force-pushed the lotes/188-multiplicator-sign branch from e3db9ab to be4b328 Compare November 26, 2024 10:06
@dhuebner
Copy link
Collaborator

dhuebner commented Dec 5, 2024

Turning lexer to parser rule unfortunately allows to write LabelRefs with a hidden token between asterisk and label name :
exitto * NEXT

We need to fix or at least validate this case.

Fix the bug

Add more escaped ids

Added validation for symbolic label reference text #188

Rebased on master
Copy link
Collaborator

@dhuebner dhuebner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected

@dhuebner dhuebner merged commit 5f4cf23 into main Dec 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

issue when multiplication sign * is not surrounded by whitespace
2 participants