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

Bug in parser #47

Open
5nizza opened this issue Jan 31, 2023 · 0 comments
Open

Bug in parser #47

5nizza opened this issue Jan 31, 2023 · 0 comments

Comments

@5nizza
Copy link

5nizza commented Jan 31, 2023

The tool fails to parse the implication operator if it is immediately (without spaces) followed by an open bracket:

INFO {
  TITLE:       ""
  DESCRIPTION: "parser bug"
  SEMANTICS:   Mealy
  TARGET:      Mealy
}
MAIN {
INPUTS { a; }
GUARANTEES { a->(!b); }  // <-- does not parse
// GUARANTEES { a-> (!b); }  // <-- does parse
}

When running:

$ syfco /tmp/bug.tlsf 
"Syntax Error" (line 9, column 18):
unexpected '('
expecting operator
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