Lilypond is a tool for writing sheet music. The Lilypond file format .ly describes the music to be engraved.
I need to extract the \score
part and various \header
information (fully expanded).
Since PHP is my primary programming language I want to go with PHP. The PHP parser must run in a Docker file.
Here are the basics:
How to build a parser for the Lilypond language in PHP?
I tried to so far:
- writing my own Parser and Lexer but stopped because things got complex very fast
- starting to use the PHP PECL Parle (Parser & Lexer): This is not installable using composer nor installable in a Docker PHP container since there is only a beta version of Parle