-
The lexer supports groups, as shown in this example here: https://github.com/Chevrotain/chevrotain/blob/master/examples/lexer/token_groups/token_group_spec.js#L24 Are there docs that demonstrate usage of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@1NF053C As far as I know, groups aren't supposed to be consumed by the parser at all, as they aren't part of the normal token stream that gets returned by the Are you perhaps confusing groups with token categories? |
Beta Was this translation helpful? Give feedback.
@1NF053C As far as I know, groups aren't supposed to be consumed by the parser at all, as they aren't part of the normal token stream that gets returned by the
Lexer
class. They are intended for tokens that live outside of the parser, such as whitespace tokens or comments.Are you perhaps confusing groups with token categories?