RE: [sv-bc] Keywords

From: Steven Sharp <sharp_at_.....>
Date: Tue Apr 26 2005 - 19:09:53 PDT
Mac wrote:

>But in truth the real issues with context sensitive keywords are
>elsewhere:
>
>  - with the human, who is not as good remembering that there was some
>  keyword 10k bytes back that made 'xyzzy' a keyword now, where as
>  usualy one would be free to use it as a variable name...

It makes _reading_ the code hard for humans too, who see a keyword in
unexpected syntax and don't realize it is a variable, not some weird
syntax they never learned.

And while context-sensitive lexing can be done, it makes the job harder.
Things get particularly nasty with error recovery after a syntax error.
If the lexer gets into the wrong state, it may become hopeless.

Steven Sharp
sharp@cadence.com
Received on Tue Apr 26 19:10:01 2005

This archive was generated by hypermail 2.1.8 : Tue Apr 26 2005 - 19:11:52 PDT