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

Reply via email to