Copyright | (c) Andrew Ray, 2017 |
---|---|
License | MIT |
Safe Haskell | Safe |
SoundGroup and environs
Read Syntax:
G: abcd
where G
is the symbol to represent the group, and abcd
are the sounds
in the group. In the future, the alternative syntax:
GroupName: abcd
is expected to work, where GroupName is any multicharacter identifier for
the group.
- type SoundGroup = (Char, String, Maybe String)
- parseSoundGroup :: Int -> String -> SoundGroup
- matches :: [SoundGroup] -> Char -> Char -> Bool
Documentation
type SoundGroup = (Char, String, Maybe String)
A SoundGroup is a group of sounds, to be identified by a capital letter as a standin for any one of those sounds.
:: Int | The number to assign to this SoundGroup |
-> String | The string to parse |
-> SoundGroup | The parsed SoundGroup Tuple |
Parses a string into a Map Char SoundGroup
:: [SoundGroup] | The SoundGroups to check in |
-> Char | The Character to check against |
-> Char | The Character to check |
-> Bool | True iff the characters match. |
Determines if the given characters match after group resolution.