LLK

Parser and TreeParser Grammar Syntax

TokenSet

  • This is similar to the CharSet in lexer rules. But instead of characters, it specify a set of lexer tokens. TokenSet can also be prefixed by "~" to specify an inverted set of the specified tokens. The inverted token set consists of all lexer tokens except tokens in the token set and reserved tokens (eg. EOF).