LilyPondLexicalDefinition

class lilypondparsertools.LilyPondLexicalDefinition(client=None)

The lexical definition of LilyPond’s syntax.

Effectively equivalent to LilyPond’s lexer.ll file.

Not composer-safe.

Used internally by LilyPondParser.

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_abctools { graph [label=abctools]; "abjad.tools.abctools.AbjadObject.AbjadObject" [color=1, group=0, label=AbjadObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" [color=1, group=0, label=AbstractBase, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_lilypondparsertools { graph [label=lilypondparsertools]; "abjad.tools.lilypondparsertools.LilyPondLexicalDefinition.LilyPondLexicalDefinition" [color=black, fontcolor=white, group=2, label=<<B>LilyPondLexicalDefinition</B>>, shape=box, style="filled, rounded"]; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.lilypondparsertools.LilyPondLexicalDefinition.LilyPondLexicalDefinition"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; }

Bases

Attribute summary

push_signature(signature, t)
scan_bare_word(t)
scan_escaped_word(t)
t_651_a(t)
t_651_b(t)
t_661(t) -.
t_666(t)
t_ANY_165(t) r
t_INITIAL_643(t)
t_INITIAL_646(t)
t_INITIAL_markup_notes_210(t) %{
t_INITIAL_markup_notes_214(t) %[^{nr][^nr]*[nr]
t_INITIAL_markup_notes_214_EOF(t) %[^{nr][^nr]*$
t_INITIAL_markup_notes_216(t) %[^{nr]
t_INITIAL_markup_notes_218(t) %[nr]
t_INITIAL_markup_notes_220(t) %[^{nr][^nr]*
t_INITIAL_markup_notes_222(t) [
t_INITIAL_markup_notes_227(t)
t_INITIAL_markup_notes_353(t) #
t_INITIAL_notes_233(t) \version[ ntfr]*
t_INITIAL_notes_387(t) <<
t_INITIAL_notes_390(t) >>
t_INITIAL_notes_396(t) <
t_INITIAL_notes_399(t) >
t_INITIAL_notes_686(t) \.
t_error(t)
t_longcomment_291(t) [^%]+
t_longcomment_293(t) %+[^}%]*
t_longcomment_296(t) %}
t_longcomment_error(t)
t_markup_545(t) \score
t_markup_548(t)
t_markup_601(t) [^#{}”\ tnrf]+
t_markup_error(t)
t_newline(t) n+
t_notes_417(t)
t_notes_421(t)
t_notes_424(t)
t_notes_428(t)
t_notes_428b(t)
t_notes_433(t)
t_notes_error(t)
t_quote_440(t)
t_quote_443(t) [^\”“]+
t_quote_446(t)
t_quote_456(t) .
t_quote_XXX(t) \”
t_quote_error(t)
t_scheme_error(t)
t_version_242(t) “[^”]*”
t_version_278(t)
t_version_341(t) “[^”]*
t_version_error(t)
__eq__(expr) Is true when ID of expr equals ID of Abjad object.
__format__([format_specification]) Formats Abjad object.
__hash__() Hashes Abjad object.
__ne__(expr) Is true when Abjad object does not equal expr.
__repr__() Gets interpreter representation of Abjad object.

Methods

LilyPondLexicalDefinition.push_signature(signature, t)
LilyPondLexicalDefinition.scan_bare_word(t)
LilyPondLexicalDefinition.scan_escaped_word(t)
LilyPondLexicalDefinition.t_651_a(t)
LilyPondLexicalDefinition.t_651_b(t)
LilyPondLexicalDefinition.t_661(t)

-.

LilyPondLexicalDefinition.t_666(t)
LilyPondLexicalDefinition.t_ANY_165(t)

r

LilyPondLexicalDefinition.t_INITIAL_643(t)
LilyPondLexicalDefinition.t_INITIAL_646(t)
LilyPondLexicalDefinition.t_INITIAL_markup_notes_210(t)

%{

LilyPondLexicalDefinition.t_INITIAL_markup_notes_214(t)

%[^{nr][^nr]*[nr]

LilyPondLexicalDefinition.t_INITIAL_markup_notes_214_EOF(t)

%[^{nr][^nr]*$

LilyPondLexicalDefinition.t_INITIAL_markup_notes_216(t)

%[^{nr]

LilyPondLexicalDefinition.t_INITIAL_markup_notes_218(t)

%[nr]

LilyPondLexicalDefinition.t_INITIAL_markup_notes_220(t)

%[^{nr][^nr]*

LilyPondLexicalDefinition.t_INITIAL_markup_notes_222(t)

[

]

LilyPondLexicalDefinition.t_INITIAL_markup_notes_227(t)

LilyPondLexicalDefinition.t_INITIAL_markup_notes_353(t)

#

LilyPondLexicalDefinition.t_INITIAL_notes_233(t)

\version[ ntfr]*

LilyPondLexicalDefinition.t_INITIAL_notes_387(t)

<<

LilyPondLexicalDefinition.t_INITIAL_notes_390(t)

>>

LilyPondLexicalDefinition.t_INITIAL_notes_396(t)

<

LilyPondLexicalDefinition.t_INITIAL_notes_399(t)

>

LilyPondLexicalDefinition.t_INITIAL_notes_686(t)

\.

LilyPondLexicalDefinition.t_error(t)
LilyPondLexicalDefinition.t_longcomment_291(t)

[^%]+

LilyPondLexicalDefinition.t_longcomment_293(t)

%+[^}%]*

LilyPondLexicalDefinition.t_longcomment_296(t)

%}

LilyPondLexicalDefinition.t_longcomment_error(t)
LilyPondLexicalDefinition.t_markup_545(t)

\score

LilyPondLexicalDefinition.t_markup_548(t)
LilyPondLexicalDefinition.t_markup_601(t)

[^#{}”\ tnrf]+

LilyPondLexicalDefinition.t_markup_error(t)
LilyPondLexicalDefinition.t_newline(t)

n+

LilyPondLexicalDefinition.t_notes_417(t)
LilyPondLexicalDefinition.t_notes_421(t)
LilyPondLexicalDefinition.t_notes_424(t)
LilyPondLexicalDefinition.t_notes_428(t)
LilyPondLexicalDefinition.t_notes_428b(t)
LilyPondLexicalDefinition.t_notes_433(t)
LilyPondLexicalDefinition.t_notes_error(t)
LilyPondLexicalDefinition.t_quote_440(t)
LilyPondLexicalDefinition.t_quote_443(t)

[^\”“]+

LilyPondLexicalDefinition.t_quote_446(t)

LilyPondLexicalDefinition.t_quote_456(t)

.

LilyPondLexicalDefinition.t_quote_XXX(t)

\”

LilyPondLexicalDefinition.t_quote_error(t)
LilyPondLexicalDefinition.t_scheme_error(t)
LilyPondLexicalDefinition.t_version_242(t)

“[^”]*”

LilyPondLexicalDefinition.t_version_278(t)
LilyPondLexicalDefinition.t_version_341(t)

“[^”]*

LilyPondLexicalDefinition.t_version_error(t)

Special methods

(AbjadObject).__eq__(expr)

Is true when ID of expr equals ID of Abjad object. Otherwise false.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

(AbjadObject).__hash__()

Hashes Abjad object.

Required to be explicitly redefined on Python 3 if __eq__ changes.

Returns integer.

(AbjadObject).__ne__(expr)

Is true when Abjad object does not equal expr. Otherwise false.

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.