Hi, On 13.09.2016 18:55, Patrick R. Michaud wrote: > I don't have an example handy, but I can categorically say that > Perl 6 grammars are designed to support exactly this form of parsing. > It's almost exactly what I did in "pynie" -- a Python implementation > on top of Perl 6. The parsing was done using a Perl 6 grammar.
See https://github.com/arnsholt/snake for a newer implementation that parses python (or subsets thereof). Its grammar is likely inspired by pynie, but your chances to get it to run are much better, due to the more recent development that has gone into it. Cheers, Moritz -- Moritz Lenz https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/