summaryrefslogtreecommitdiffstats
path: root/src/recite/parse.rs
Commit message (Collapse)AuthorAgeFilesLines
* Poem::read macrosRory Dudley2024-03-051-0/+135
Added the following macros: push!: Creates a Verse from a stanza, taking into account some extra options (such as the Meter). push1!: Creates a Verse from a stanza, but also allows looking ahead by a single character, in order to pattern match certain meters (i.e. And ('&&') and Addendum ('>>')). Replaced the code in the huge, redundant match statements in Poem::read with the macros described above.