parser

Abjad’s LilyPond parser and supporting classes.

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.ContextSpeccedMusic.ContextSpeccedMusic" [URL="../api/abjad/parser/ContextSpeccedMusic.html#abjad.parser.ContextSpeccedMusic.ContextSpeccedMusic", color=black, fontcolor=white, label="Context\nSpecced\nMusic", target=_top]; "abjad.parser.GuileProxy.GuileProxy" [URL="../api/abjad/parser/GuileProxy.html#abjad.parser.GuileProxy.GuileProxy", color=black, fontcolor=white, label="Guile\nProxy", target=_top]; "abjad.parser.LilyPondDuration.LilyPondDuration" [URL="../api/abjad/parser/LilyPondDuration.html#abjad.parser.LilyPondDuration.LilyPondDuration", color=black, fontcolor=white, label="Lily\nPond\nDuration", target=_top]; "abjad.parser.LilyPondEvent.LilyPondEvent" [URL="../api/abjad/parser/LilyPondEvent.html#abjad.parser.LilyPondEvent.LilyPondEvent", color=black, fontcolor=white, label="Lily\nPond\nEvent", target=_top]; "abjad.parser.LilyPondFraction.LilyPondFraction" [URL="../api/abjad/parser/LilyPondFraction.html#abjad.parser.LilyPondFraction.LilyPondFraction", color=black, fontcolor=white, label="Lily\nPond\nFraction", target=_top]; "abjad.parser.LilyPondGrammarGenerator.LilyPondGrammarGenerator" [URL="../api/abjad/parser/LilyPondGrammarGenerator.html#abjad.parser.LilyPondGrammarGenerator.LilyPondGrammarGenerator", color=black, fontcolor=white, label="Lily\nPond\nGrammar\nGenerator", target=_top]; "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]; "abjad.parser.LilyPondParser.LilyPondParser" [URL="../api/abjad/parser/LilyPondParser.html#abjad.parser.LilyPondParser.LilyPondParser", color=black, fontcolor=white, label="Lily\nPond\nParser", target=_top]; "abjad.parser.LilyPondSyntacticalDefinition.LilyPondSyntacticalDefinition" [URL="../api/abjad/parser/LilyPondSyntacticalDefinition.html#abjad.parser.LilyPondSyntacticalDefinition.LilyPondSyntacticalDefinition", color=black, fontcolor=white, label="Lily\nPond\nSyntactical\nDefinition", target=_top]; "abjad.parser.Music.Music" [URL="../api/abjad/parser/Music.html#abjad.parser.Music.Music", color=black, fontcolor=white, label=Music, shape=oval, style="bold, filled", target=_top]; "abjad.parser.Music.Music" -> "abjad.parser.ContextSpeccedMusic.ContextSpeccedMusic" [minlen=1]; "abjad.parser.SequentialMusic.SequentialMusic" [URL="../api/abjad/parser/SequentialMusic.html#abjad.parser.SequentialMusic.SequentialMusic", color=black, fontcolor=white, label="Sequential\nMusic", target=_top]; "abjad.parser.Music.Music" -> "abjad.parser.SequentialMusic.SequentialMusic" [minlen=2]; "abjad.parser.SimultaneousMusic.SimultaneousMusic" [URL="../api/abjad/parser/SimultaneousMusic.html#abjad.parser.SimultaneousMusic.SimultaneousMusic", color=black, fontcolor=white, label="Simultaneous\nMusic", shape=oval, style="bold, filled", target=_top]; "abjad.parser.Music.Music" -> "abjad.parser.SimultaneousMusic.SimultaneousMusic" [minlen=1]; "abjad.parser.ReducedLyParser.ReducedLyParser" [URL="../api/abjad/parser/ReducedLyParser.html#abjad.parser.ReducedLyParser.ReducedLyParser", color=black, fontcolor=white, label="Reduced\nLy\nParser", target=_top]; "abjad.parser.SchemeParser.SchemeParser" [URL="../api/abjad/parser/SchemeParser.html#abjad.parser.SchemeParser.SchemeParser", color=black, fontcolor=white, label="Scheme\nParser", target=_top]; "abjad.parser.SyntaxNode.SyntaxNode" [URL="../api/abjad/parser/SyntaxNode.html#abjad.parser.SyntaxNode.SyntaxNode", color=black, fontcolor=white, label="Syntax\nNode", 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", color=2, label="Abjad\nObject", target=_top]; "abjad.system.Parser.Parser" [URL="../api/abjad/parser/../system/Parser.html#abjad.system.Parser.Parser", color=2, label=Parser, shape=oval, style=bold, target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.Parser.Parser"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", color=3, label=object, target=_top]; } "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.GuileProxy.GuileProxy" [minlen=1]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.LilyPondDuration.LilyPondDuration" [minlen=2]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.LilyPondEvent.LilyPondEvent" [minlen=1]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.LilyPondFraction.LilyPondFraction" [minlen=2]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.LilyPondGrammarGenerator.LilyPondGrammarGenerator" [minlen=1]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.LilyPondLexicalDefinition.LilyPondLexicalDefinition" [minlen=2]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.LilyPondSyntacticalDefinition.LilyPondSyntacticalDefinition" [minlen=1]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.Music.Music"; "abjad.system.AbjadObject.AbjadObject" -> "abjad.parser.SyntaxNode.SyntaxNode" [minlen=2]; "abjad.system.Parser.Parser" -> "abjad.parser.LilyPondParser.LilyPondParser" [minlen=1]; "abjad.system.Parser.Parser" -> "abjad.parser.ReducedLyParser.ReducedLyParser" [minlen=2]; "abjad.system.Parser.Parser" -> "abjad.parser.SchemeParser.SchemeParser" [minlen=1]; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject" [minlen=1]; }


Abstract Classes

Music Abjad model of the LilyPond AST music node.
SimultaneousMusic Abjad model of the LilyPond AST simultaneous music node.

Classes

ContextSpeccedMusic Abjad model of the LilyPond AST context-specced music node.
GuileProxy Emulates LilyPond music functions.
LilyPondDuration Model of a duration in LilyPond.
LilyPondEvent Model of an arbitrary event in LilyPond.
LilyPondFraction Model of a fraction in LilyPond.
LilyPondGrammarGenerator Generates a syntax skeleton from LilyPond grammar files.
LilyPondLexicalDefinition The lexical definition of LilyPond’s syntax.
LilyPondParser A LilyPond syntax parser.
LilyPondSyntacticalDefinition The syntactical definition of LilyPond’s syntax.
ReducedLyParser Parses the “reduced-ly” syntax, a modified subset of LilyPond syntax.
SchemeParser SchemeParser` mimics how LilyPond’s embedded Scheme parser behaves.
SequentialMusic Abjad model of the LilyPond AST sequential music node.
SyntaxNode A node in an abstract syntax tree (AST).

Functions

parse_reduced_ly_syntax Parse the reduced LilyPond rhythmic syntax: