This project has moved and is read-only. For the latest updates, please go here.

SQL and allowing .NET identifers

Feb 23, 2015 at 2:14 PM
Edited Feb 23, 2015 at 2:16 PM
I'm trying to figure out how to change the SQL Grammar so that .NET identifiers are allowed.

For instance:
SELECT * FROM Table WHERe Column = @identifier;
The prefix can either be ?, : or @.

If I've interpreted things correctly it's the term expression that should be changed, but I can't figure out how. I also want to only modify the WHERE clause if possible.

(whereExpression -> binExpr -> expression -> term)
Feb 23, 2015 at 6:33 PM
Define another Identitifier terminal (SpecilId), with list of firstChars consisting of your prefix symbols, and add it to term.Rule expression. That should work I think