[plt-scheme] Parser Tools group-id for tokens
>
> Not bothersome at all. I just couldn't and maybe still can't see the
> point, since the usual way is to pass one token into the parser. Why
> pass a group of them?
>
>
But the tokens are the things you can use in the grammar. If you only
passed in one token how would you match more than one of the lexemes?
Some code from a lexer
(define-tokens c-val-tokens
(number-literal char-literal))
And from the parser
(constant
[(number-literal) (make-exp:const 'number $1)]
[(char-literal) (make-exp:const 'char $1)])