grammar This ShExDoc.g4 captures the BNF in bnf, which was developed in yacker. parsers has the Python ShExC implementation of ShExDoc.g4.