> This:
> data : 'db' WS 'Aa'
> Can match
>
> db Aa
>
> But this can't, why?
> data : 'db' WS 'A' 'a'
>
>
> Why fail after split 'Aa' to 'A' 'a' ?
In cases like that where you don't get the expected tokens, print your token list to see if it really gives what you would like to see. Use your CommonTokenStream instance to get the token list (if you do that before parsing call fill() first).
Mike
--
www.soft-gems.net