A self-parsing and self-lexing grammar
[ This is cross-posted from the new home of the Ocean of Awareness blog. ] a previous post, I showed a self-parsing grammar, written in Marpa's new BNF interface. That grammar was in a tradition going back to the 70's. Following the tradition, I cheated a bit. That grammar required, but did not include, a lexer to make a prepass over its inp…