Keep It Simple, Stupid | |
PerlMonks |
Re: Marpa::XS for SQL INSERTs?by nikosv (Deacon) |
on Jan 06, 2012 at 15:33 UTC ( [id://946615]=note: print w/replies, xml ) | Need Help?? |
You could try using ANTLR which is generally recommended for parsing SQL mainly because of SQL's peculiar syntax rules There are example sql grammars online Then have a look at Using ANTLR and PerlXS to Generate a Parser on how to integrate the resulting parser into Perl But,I don't know if it is worth the trouble for just parsing an INSERT
In Section
Seekers of Perl Wisdom
|
|