Copyright(c) Andrew Ray, 2017
LicenseMIT
Safe HaskellSafe

SoundGroup

Description

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.

Synopsis

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.

parseSoundGroup

Arguments

:: 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

matches

Arguments

:: [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.