parse

topleveltools.parse(arg, language='english')

Parses arg as LilyPond string.

>>> parse("{c'4 d'4 e'4 f'4}")
Container("c'4 d'4 e'4 f'4")
>>> container = _
>>> print(format(container))
{
    c'4
    d'4
    e'4
    f'4
}

A pitch-name language may also be specified.

>>> parse("{c'8 des' e' fis'}", language='nederlands')
Container("c'8 df'8 e'8 fs'8")

Returns Abjad expression.