SyntaxNode¶
-
class
abjad.parser.SyntaxNode.
SyntaxNode
(type=None, value=None)¶ A node in an abstract syntax tree (AST).
Not composer-safe.
Used internally by LilyPondParser.
Attributes Summary
__getitem__
Gets item or slice identified by argument
.__len__
Length of syntax node. __repr__
Gets interpreter representation of syntax node. __str__
String representation of syntax node. Special methods
-
(
AbjadObject
).__format__
(format_specification='')¶ Formats Abjad object.
Set
format_specification
to''
or'storage'
. Interprets''
equal to'storage'
.Returns string.
-
__getitem__
(argument)¶ Gets item or slice identified by
argument
.Returns item or slice.
-
__len__
()¶ Length of syntax node.
Returns nonnegative integer.
-
__repr__
()¶ Gets interpreter representation of syntax node.
Returns string.
-
__str__
()¶ String representation of syntax node.
Returns string.
-