LilyPondLexicalDefinition

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.parser" { graph [label="abjad.parser"]; node [color=1]; "abjad.parser.LilyPondLexicalDefinition.LilyPondLexicalDefinition" [URL="../api/abjad/parser/LilyPondLexicalDefinition.html#abjad.parser.LilyPondLexicalDefinition.LilyPondLexicalDefinition", color=black, fontcolor=white, label="Lily\nPond\nLexical\nDefinition", target=_top]; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/parser/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.LilyPondLexicalDefinition.LilyPondLexicalDefinition"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.parser.LilyPondLexicalDefinition.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.


Attributes Summary

A
AA
ACCENT
ALPHAWORD
AN
ANY_CHAR
BLACK
BOM_UTF8
DASHED_KEY_WORD
DASHED_WORD
DIGIT
ESCAPED
EXTENDER
E_UNSIGNED
FRACTION
HORIZONTALWHITE
HYPHEN
INT
KEYWORD
LYRICS
MARKUPCOMMAND
N
NATIONAL
NOTECOMMAND
PUNCT
REAL
RESTNAME
TEX
UNSIGNED
WHITE
WORD
keywords
literals
push_signature
scan_bare_word
scan_escaped_word
states
string_accumulator
t_651_a
t_651_b
t_661 -.
t_666
t_ANY_165 r
t_INITIAL_643
t_INITIAL_646
t_INITIAL_markup_notes_210 %{
t_INITIAL_markup_notes_214 %[^{nr][^nr]*[nr]
t_INITIAL_markup_notes_214_EOF %[^{nr][^nr]*$
t_INITIAL_markup_notes_216 %[^{nr]
t_INITIAL_markup_notes_218 %[nr]
t_INITIAL_markup_notes_220 %[^{nr][^nr]*
t_INITIAL_markup_notes_222 [
t_INITIAL_markup_notes_227
t_INITIAL_markup_notes_353 #
t_INITIAL_notes_233 \version[ ntfr]*
t_INITIAL_notes_387 <<
t_INITIAL_notes_390 >>
t_INITIAL_notes_396 <
t_INITIAL_notes_399 >
t_INITIAL_notes_686 .
t_error
t_ignore
t_longcomment_291 [^%]+
t_longcomment_293 %+[^}%]*
t_longcomment_296 %}
t_longcomment_error
t_longcomment_ignore
t_markup_545 \score
t_markup_548
t_markup_601 [^#{}”\ tnrf]+
t_markup_error
t_markup_ignore
t_newline n+
t_notes_417
t_notes_421
t_notes_424
t_notes_428
t_notes_428b
t_notes_433
t_notes_error
t_notes_ignore
t_quote_440
t_quote_443 [^"”]+
t_quote_446
t_quote_456 .
t_quote_XXX "
t_quote_error
t_quote_ignore
t_scheme_error
t_scheme_ignore
t_version_242 “[^”]*”
t_version_278
t_version_341 “[^”]*
t_version_error
t_version_ignore
tokens

Special methods

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Methods

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)