shnewto / ashpaper

Rust Inpterpreter for Esopo language AshPaper conceived by William Hicks
MIT License
12 stars 3 forks source link

Implement rhyming instruction #4

Open shnewto opened 4 years ago

shnewto commented 4 years ago

End rhyme with previous line: If register 0 < register 1, push the number of syllables present in the previous line to the stack. Otherwise, push the number of syllables in the current line to the stack.

One direction this could take is using the rhyme crate. But it's currently not building and it may be a ways off. It's issue requires an update in the cmudict project. There is a PR up for that though, so we'll see.

https://gitlab.com/pwoolcoc/cmudict/merge_requests/2

shnewto commented 4 years ago

Going to incorporate the ttaw crate for this: https://github.com/shnewto/ttaw