Tìm hiểu Thư viện Parsec trong Haskell - Phần 2
Các Combinator Cơ bản 1
Prelude Text.Parsec Text.Parsec.String> parseTest (count 3 (char 'a')) "aaa"
"aaa"
Prelude Text.Parsec Text.Parsec.String> parseTest (between (char '(') (char ')') anyChar) "(3)"
'3'
Prelude Text.Parsec Text.Parsec.String> parseTest (option ' ' (char 'a')) "b"
' '
Prelude ...
Đăng vào ngày 7 tháng 6 lúc 22:27