Skip to content

Bug in parser #47

@5nizza

Description

@5nizza

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions