I am looking at the zig grammar here, and it is different from other grammars I have viewed in the past. Two obvious differences are: it uses <-
rather than =
or :==
to define rules, and it uses /
rather than |
to define alternatives for a rule. Is this a well-known format for defining grammars, and in that case, does this format have a name (or a link to a definition)?
Alternatively, what system would accept this format? I tried with yacc
(bison
on my Mac) and it choked on it.
Cheers!