Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • So in other words, the parser handles it. Commented Jul 24, 2013 at 5:50
  • 1
    @jhewlett: Yes, and the lexer either hands out a "IdentifierOrKeyword" token, or the parser checks if the Identifier it got matches a keyword that can appear there. Commented Jul 24, 2013 at 7:34
  • 2
    @BartvanIngenSchenau: The lexer must give out the specific token types. But the grammar accepts identifier or any of the keywords in all places where it can. Commented Jul 24, 2013 at 9:01