BNFC-2.9.3: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Lexing

Synopsis

Documentation

mkRegMultilineComment :: String -> String -> Reg Source #

Create regex for multiline comments.

>>> debugPrint $ mkRegMultilineComment "<" ">"
'<'(char-'>')*'>'
>>> debugPrint $ mkRegMultilineComment "/*" "*/"
{"/*"}(char-'*')*'*'((char-["*/"])(char-'*')*'*'|'*')*'/'
>>> debugPrint $ mkRegMultilineComment "<!--" "-->"
{"<!--"}(char-'-')*'-'((char-'-')+'-')*'-'((char-["->"])(char-'-')*'-'((char-'-')+'-')*'-'|'-')*'>'