SQL and allowing .NET identifers

Feb 23, 2015 at 1:14 PM
Edited Feb 23, 2015 at 1: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)
Coordinator
Feb 23, 2015 at 5: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
Roman