Compiling Java 9

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Nov 16 22:01:50 UTC 2016



On 11/16/2016 01:41 PM, Stephan Herrmann wrote:
>
> At the end of the day we need full pattern matching right? 

Not really, at least, not in javac.

Words like 'module', 'requires', etc are lexed as identifiers. When we 
get to the point where the grammar would accept one of these words as a 
keyword,  we simply check to see if we have an identifier with the 
appropriate value.

-- Jon


More information about the jigsaw-dev mailing list