diff options
author | Rory Dudley | 2024-03-05 00:42:28 -0700 |
---|---|---|
committer | Rory Dudley | 2024-03-05 00:42:28 -0700 |
commit | 37e1ae98dc9309715e9415962f21484a807d2c56 (patch) | |
tree | 69444755d1a0095f5a7cfad66ab966f83f46d4aa /src/poem/anthology/source.rs | |
parent | e03ceec834aeca1f383b19354e32987bc2d59506 (diff) | |
download | dwarvish-37e1ae98dc9309715e9415962f21484a807d2c56.tar.gz |
Poem::read macros
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.
Diffstat (limited to 'src/poem/anthology/source.rs')
0 files changed, 0 insertions, 0 deletions