[antlr-interest] Integer literal ending problem

Ivan Brezina ibre5041 at ibrezina.net
Wed Dec 14 00:36:04 PST 2011


On 12/14/2011 06:43 AM, Shevchenko A wrote:
> Hello Justin,
>
> Thanks for response.
> For languages like SQL, the string "SELECT 123 A ..." is valid and "SELECT
> 123A ..." is not.
>
>

Are you sure? For example in Oracle you can have statements like this:

SELECT 1D FROM DUAL; -- "D" is an alias for column 1
SELECT * FROM A WHERE A.C = :1AND A.D = :2; -- Note there is no gap 
between bindvar and "AND".

Ivan



More information about the antlr-interest mailing list