Buddha Buck wrote:
T.M. Sommers wrote:

henrik wrote:

There is one serious problem with changing the BNF spec to literal strings
being case sensitive - places where we don't want case sensitiveness
become horribly complicated! E.g. dor dorian DOR Dor Dorian etc should all
be allowed, but the BNF for case insensitive of that would be
("d"/"D") ("o"/"O") ("r"/"R") [("i"/"I") [("a"/"A") ["n"/"N"]]]
which is quite unreadable.

This should not be unreadable to any programmer at all familiar with regexps; it is a common idiom.

Too bad we are dealing with regexps then... I think something like /dor(ian)?/i is more readable, and regexpy. It's just a perl pattern, after all.

Unfortunately, that won't work in lex; case sensitivity is a global property, and can't be turned on and off for different patterns.



To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to