I am looking for a BNF grammar for C # v4 that I can pass to fsyacc, or if I cannot find an EBNF-based parser generator that F # can output.
EDIT: I don't want to write a parser for C #, but an experimental parser for a very similar grammar, and since there is a huge literal match between the two grammars, it's easier for me to start with a C # grammar and just change the rejected bits. However, the only grammar for C # v4 I found is EBNF
an alternative answer would be a converter from EBNF to BNF
source share