0

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
Casimir et Hippolyte
  • 88,009
  • 5
  • 94
  • 125
WeSee
  • 3,158
  • 2
  • 30
  • 58
  • 1
    The last Parle release 0.8.1 **is** in stability beta and you can't hope a better release actually. [link](https://pecl.php.net/package/parle) – Casimir et Hippolyte Mar 29 '20 at 17:30
  • @CasimiretHippolyte I don't need a stable package. Would also go with a beta package. But how to install beta packages? – WeSee Mar 30 '20 at 07:59
  • 1
    Does this answer your question? [PHP: How to parse Lilypond file?](https://stackoverflow.com/questions/60881971/php-how-to-parse-lilypond-file) – gilbertohasnofb Mar 30 '20 at 14:22
  • No, @gilbertohasnofb, but only because that original question by the same questioner hasn’t been answered either (as of writing). – Ole V.V. Mar 30 '20 at 16:03

0 Answers0