Parse a full card list
This commit is contained in:
parent
fc0d0eb1d6
commit
04b4c0e451
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,10 @@ test_scheme = unlines $ [ "A Display of My Dark Power"
|
|||
, "ARC-C"
|
||||
]
|
||||
|
||||
card_list :: Parser [Card]
|
||||
card_list = sepBy card $ string "\n\n"
|
||||
|
||||
|
||||
card :: Parser Card
|
||||
card = do
|
||||
name' <- line
|
||||
|
|
Loading…
Reference in a new issue