Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language.Fortran.Parser.LexerUtils
Description
Utils for both lexers.
Synopsis
- readIntOrBoz :: String -> Integer
- unescapeSpecialChars :: String -> String
Documentation
readIntOrBoz :: String -> Integer Source #
Read a string as either a signed integer, or a BOZ constant (positive).
Useful in manual lexing.
unescapeSpecialChars :: String -> String Source #
Pretty prints exception message that contains things like carriage return, indents, etc.