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

Inconsistency in token patterns #41

Open
webbnh opened this issue Jul 1, 2024 · 0 comments
Open

Inconsistency in token patterns #41

webbnh opened this issue Jul 1, 2024 · 0 comments

Comments

@webbnh
Copy link
Contributor

webbnh commented Jul 1, 2024

In the Arcaflow tokenizer, the pattern for BooleanLiteralToken is incorrect: since anchoring (^/$) is higher precedence than alternation (|), we need to explicitly group the alternation so that the anchoring applies to both alternates (which is why lines 110 and 112 contain groupings). As the code stands at the moment, it will match a string which begins with true or ends with false, since each alternation uses separate anchoring.

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

No branches or pull requests

1 participant