fix: hexDigit ('a' ≤ c ∧ c ≤ 'f')

This commit is contained in:
Chris Lovett 2022-08-05 13:06:21 -07:00 committed by Leonardo de Moura
parent ddeea5e14f
commit c4121e779d

View file

@ -124,8 +124,8 @@ def digit : Parsec Char := attempt do
def hexDigit : Parsec Char := attempt do
let c ← anyChar
if ('0' ≤ c ∧ c ≤ '9')
('a' ≤ c ∧ c ≤ 'a')
('A' ≤ c ∧ c ≤ 'A') then return c else fail s!"hex digit expected"
('a' ≤ c ∧ c ≤ 'f')
('A' ≤ c ∧ c ≤ 'F') then return c else fail s!"hex digit expected"
@[inline]
def asciiLetter : Parsec Char := attempt do