OSLO, ANTLR or other parser grammar, for parsing QUERY EXPRESSION

Posted by Jay Allard on Stack Overflow See other posts from Stack Overflow or by Jay Allard
Published on 2010-05-01T02:19:39Z Indexed on 2010/05/01 2:27 UTC
Read the original article Hit count: 382

Greetings

I'm working on a project that requires me to write queries in text form, then convert them to some easily processed nodes to be processed by some abiguous repository. Of everything there, the part I'm least interested is the part that converts the text to nodes. I'm hoping it's already done somewhere.

Because I'm making stuff up as I go, I chose to use a LINQish expression syntax.

from m in Movie select m.A, m.B

I started parsing it manually and got the basics, but it's pretty cheesy. I'm looking for the better solution. I made some progress using MGrammar, but it would be nice if such a thing already existed. Does anyone know of anything that already does this? I looked for existing ANTLR templates, but no luck.

Thanks for the help.

© Stack Overflow or respective owner

Related posts about Oslo

Related posts about antlr