bnfc
bnfc copied to clipboard
Fix #302: Keep internal token types out of lexer
[ WIP #302 ] isUsedCat distinguishes between Internal and Parsable
Haskell: prevent internal user token types to become part of the lexer. TODO: exclude them also from being mentioned in the parser (currently broken).
Lexer and Parser should share a common functionality that makes sure they do not get out of sync.