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

Lexer is grouping n1 <- n2 (a likely typo) as n1 < -n2 #208

Closed
tnelson opened this issue May 11, 2023 · 1 comment
Closed

Lexer is grouping n1 <- n2 (a likely typo) as n1 < -n2 #208

tnelson opened this issue May 11, 2023 · 1 comment
Labels
bug Something isn't working syntax Syntax problems in Forge

Comments

@tnelson
Copy link
Owner

tnelson commented May 11, 2023

Minimum example:

#lang forge
sig Person { age: one Int }
test expect {
    parsing: {all p: Person | (p.age <- 17) iff (p.age < -17)} is theorem
}

This test passes in 2.8.0. My expectation was that it would produce a parser error, since <- isn't a valid token in that position. (This example was extracted from a real typo made by a real user.)

@tnelson tnelson added bug Something isn't working syntax Syntax problems in Forge labels May 11, 2023
@tnelson
Copy link
Owner Author

tnelson commented Feb 13, 2024

Resolved by the above PR

@tnelson tnelson closed this as completed Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working syntax Syntax problems in Forge
Projects
None yet
Development

No branches or pull requests

1 participant