mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Opaques take @ : %s/\$\([A-Z]\)/@\1/g
This commit is contained in:
parent
e43994530f
commit
f1dc9c8298
20 changed files with 201 additions and 206 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue