edwisdom / chords

Convert Chords to Pitches
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

More organized/robust parsing with Alex and Happy - Preliminary Work #6

Open ChrisEPhifer opened 4 years ago

ChrisEPhifer commented 4 years ago

Parsec is more than acceptable for this stage of the project; it's intuitive, and only rarely do we rely on tricky things like the try combinator.

As you think about what you want to be able to express in the language other than chords, though, the task of building correct parsers with combinators alone gets a bit out of hand. This is where alex and happy, descendants of the lex and yacc lexer and parser generators, come in.

Here's what would help a lot with that eventual transition:

ChrisEPhifer commented 4 years ago

@edwisdom I'll take this ticket once #17 is merged into develop since it has some updates to the current parser. Shouldn't take terribly long, I've had to work with these tools at work and they're not the complete worst things in the world :)