I am trying to write a parser for the Lilypond language of music notation in JavaScript. My first manual attempts work, but can only deal with a very small subset of the language. As Lilypond uses bison files to define its grammar[1] and JISON claims to be able to work from bison files, my idea was to perhaps use these definitions to generate a parser in JavaScript.
I cannot find any examples of this anywhere, and trying to feed these files directly into JISON just throws errors.
What would be the best way to approach this?
[1]: see https://github.com/lilypond/lilypond/blob/master/lily/lexer.ll and https://github.com/lilypond/lilypond/blob/master/lily/parser.yy),