mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-30 23:45:23 +03:00
Pretty-print hex literals in parser AST using lowercase "abcdef".
This makes the Cryptol.Parser.AST pretty printer consistent with the one for values in Cryptol.Eval.Value.
This commit is contained in:
parent
4f28f4bfed
commit
ca14cff93a
@ -571,7 +571,7 @@ ppNumLit n info =
|
||||
PolyLit w -> text "<|" <+> poly w <+> text "|>"
|
||||
where
|
||||
pad base pref w =
|
||||
let txt = showIntAtBase base ("0123456789ABCDEF" !!) n ""
|
||||
let txt = showIntAtBase base ("0123456789abcdef" !!) n ""
|
||||
in text pref <> text (replicate (w - length txt) '0') <> text txt
|
||||
|
||||
poly w = let (res,deg) = bits Nothing [] 0 n
|
||||
|
Loading…
Reference in New Issue
Block a user