Opaques take @ : %s/\$\([A-Z]\)/@\1/g

This commit is contained in:
Ayaz Hafiz 2022-04-25 12:26:38 -04:00
parent e43994530f
commit f1dc9c8298
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
20 changed files with 201 additions and 206 deletions

View file

@ -48,16 +48,16 @@ keep : Parser a, (a -> Parser b) -> Parser b
skip : Parser *, ({} -> Parser b) -> Parser b
symbol : Str -> Parser {}
symbol = \symbol -> $Parser Str.chompStr symbol
symbol = \symbol -> @Parser Str.chompStr symbol
u8 : Parser U8
u8 = $Parser Str.parseU8
u8 = @Parser Str.parseU8
i8 : Parser I8
i8 = $Parser Str.parseI8
i8 = @Parser Str.parseI8
end : Parser {}
end = $Parser \str ->
end = @Parser \str ->
if Str.isEmpty str then
Ok {}
else
@ -65,7 +65,7 @@ end = $Parser \str ->
lazy : ({} -> Parser a) -> Parser a
lazy = \thunk ->
$Parser \str ->
$Parser parse = thunk {}
@Parser \str ->
@Parser parse = thunk {}
parse str