lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validity check for lilypond files


From: David Kastrup
Subject: Re: Validity check for lilypond files
Date: Sat, 03 Nov 2018 22:36:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Noeck <address@hidden> writes:

> Hi,
>
> is there a way to check the validity of a .ly file?
>
> I am thinking of a syntax check – so basically if the parser/lexer can
> read it. It should (a) be quick and (b) not produce any output (could be
> deleted as a last resort).
>
> Is there something in python-ly that does that? It looks like the
> Frescobaldi auto-engraving only runs if the input is valid.
>
> I guess to check everything, I would have to run lilypond on it and see
> if there are any warnings or errors. But I am willing to have less
> coverage if I can get the result faster.
>
> Thanks in advance for any hints.

You could just turn all of LilyPond's processing hooks for various
syntactic elements into do-nothings in your own init file and then read
the various inputs.  That should be rather fast.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]