Deriving Quasi-Quoters from BNF Grammars