Helmut Eller writes: > The LPEG people wrote a paper[*] about this problem. I tried to convert their transcription function to Elisp. See below. Seems to work - but so far only basic regexp constructs are supported. > The problem probably are backrefs and other extensions. I think backrefs can be implemented in peg.el in a simple way. They can't be a standard extension though because matching the backref needs to advance point (so they are not just a certain `guard'). If that is supported by peg.el I think backrefs could just be transcribed more or less directly but I I'm not sure about equivalence. > Helmut > > http://www.lua.inf.puc-rio.br/publications/medeiros11regular.pdf