[modules-dev] modules question
Alex Buckley
Alex.Buckley at Sun.COM
Mon Jul 28 18:56:54 PDT 2008
Hi Brian,
Brian Frank wrote:
> Is the “module” keyword going to be context sensitive? Or will it
> become illegal to use “module” as an identifier?
The former, which is why I always refer to 'module' as a "restricted
keyword". This will have a formal definition in the JLS, but it's
basically an identifier everywhere except those specific productions
where the grammar allows it to be a keyword.
We believe it is straightforward for a parser to determine whether
'module' is an identifier or a keyword. We found a small exception to
that today, which I have discussed at
http://blogs.sun.com/abuckley/en_US/entry/a_wrinkle_with_module
Alex
More information about the modules-dev
mailing list