E101 Syntax errorΒΆ
The grammar text does not follow the syntax of grammars. The message lists what could have followed where reading stopped. Reading goes on at the next line that starts a rule or a directive, so that each mistake gets an error of its own, at most one at a place. A separator missing after ** or ++ says so in words, and reading goes on right after the operator.
start: "a" |
grammar.fpeg:1:13: error[E101]: expected "!", "%def", "%error", "%if", "%indent", "%off", "%on", "%ref", "%same", "&", "(", ".", "...", "~", character class, literal, name, property class
An alternative must follow every |. Complete it, or remove the |.
start: "a" | "b"