Hi, thanks so far. Now I already completed it so far as I need it at work with Parse::RecDescent. Maybe I will start with something smaller first and then come back to PHP.
Helmut Wollmersdorfer Am Donnerstag, 28. Mai 2015 13:33:43 UTC+2 schrieb rns: > > Hi, > > Jean-Damien Durand did parsers for C, SQL, ECMAScript, m4 -- > https://github.com/jddurand?tab=repositories > > If you start with a PHP EBNF grammar, e.g. [1] -- perhaps you can find > useful a Lua parser I did -- I started with a similar EBNF for Lua [2], > converted it to Marpa SLIF (EBNF is preserved in comments, e.g. [3]). I > used external lexer, but you don't necessarily have to. > > Hope it helps. > > [1] http://www.icosaedro.it/articoli/php-syntax-ebnf.txt > > [2] http://www.lua.org/manual/5.1/manual.html#8 > > [3] > https://github.com/rns/MarpaX-Languages-Lua-AST/blob/master/lib/MarpaX/Languages/Lua/AST.pm#L50 > > > > > On Thu, May 28, 2015 at 2:05 PM, Helmut Wollmersdorfer < > [email protected] <javascript:>> wrote: > >> Hi, >> >> did somebody a PHP parser with Marpa, maybe unfinished? >> >> At the moment I adopted one using Parse::RecDescent, restricted to >> variables/structures. But with the time invested to get in running it would >> have been better to use Marpa. >> >> If nobody did, which implemented parser (for a similar language) can I >> take as a starting point? >> >> TIA >> >> Helmut Wollmersdorfer >> >> -- >> You received this message because you are subscribed to the Google Groups >> "marpa parser" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
