Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Marpa::XS for SQL INSERTs?

by Jeffrey Kegler (Hermit)
on Jan 04, 2012 at 04:23 UTC ( [id://946191]=note: print w/replies, xml ) Need Help??


in reply to Marpa::XS for SQL INSERTs?

I took your example on as an exercise, doing it in the style I've learned from Wolfgang Kinkeldei. Note in particular how the lexing is done. I put my sample code up as a gist. You may find Wolfgang's original example instructive also, even though it is for CSS.

I've limited the syntax to little more than the minimum needed to get the example working, but I think it's clear how it would be extended. Symbols names and are from the SQL-2003 standard, and the BNF, while just a very small subset, follows that standard pretty closely.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://946191]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-19 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found