-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
HaskellLBNFConcerning the LBNF syntax and its checkingConcerning the LBNF syntax and its checkingbuglexerConcerning the generated lexerConcerning the generated lexer
Milestone
Description
LBNF does not support nested subtraction in regexps, like in
token Name (char - [ "(){};.@\"" ] - [ " \n\t" ]) + ;
It works with parentheses:
token Name ((char - [ "(){};.@\"" ]) - [ " \n\t" ]) + ;
This is translated to Alex as
(($u # [\( \) \{ \} \; \. \@ \"]) # [\ \n \t]) +
which is rejected by Alex. However, Alex supports it without parentheses:
($u # [\( \) \{ \} \; \. \@ \"] # [\ \n \t]) +
Both BNFC and Alex are behaving silly here, I must say.
Metadata
Metadata
Assignees
Labels
HaskellLBNFConcerning the LBNF syntax and its checkingConcerning the LBNF syntax and its checkingbuglexerConcerning the generated lexerConcerning the generated lexer