fix: hexDigit ('a' ≤ c ∧ c ≤ 'f')
This commit is contained in:
parent
ddeea5e14f
commit
c4121e779d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue