They can. But they need to know when to "start" the context. For configurations, one needs at least the word "config" to start the context. Since in SystemVerilog, one can also have bare declarations in a module, "config" really needs to be reserved since otherwise there could be other scenarios that would cause confusion (i.e. defining a type called "config" and then declaring a global of that type). Gord Kevin Cameron wrote: > Just as a matter of interest: whose compilers can't handle limited context keywords? > > I usually write recursive descent parsers that can handle tokens being keywords or > not depending on context. It seems that life would be easier if "keyword status" > could be limited to particular scopes for particular words e.g. there is no good > reason that keywords for configuration should have any special meaning outside of > a config block. > > Kev. -- -------------------------------------------------------------------- Gordon Vreugdenhil, Staff Engineer 503-685-0808 Model Technology (Mentor Graphics) gordonv@model.comReceived on Tue Apr 26 08:28:50 2005
This archive was generated by hypermail 2.1.8 : Tue Apr 26 2005 - 08:29:29 PDT