[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting some enhancements


It just occurred to me that "lexer states" could be used to intentionally mask certain tokens.  Perhaps my request 2 is not desirable (unless one could request to supress warnings).  What do you think?


>2) When generating my lexer, could you emit a warning when a token will never occur?  For example, given:
>  word = ([a..z] + [A..Z])+;
>  keyword = 'KEY';
>it would be great if SableCC could say something like:
>"Warning: TKeyword is hidden behind TWord"