scheme¶
Classes
Abjad model of Scheme code. |
|
|
- class abjad.parsers.scheme.Scheme(value=None)[source]¶
Abjad model of Scheme code.
Attributes Summary
Return self==value.
Return repr(self).
Special methods
- overridden __eq__(other)¶
Return self==value.
- overridden __repr__()¶
Return repr(self).
- class abjad.parsers.scheme.SchemeParser(debug=False)[source]¶
SchemeParser
mimics how LilyPond’s embedded Scheme parser behaves.It parses a single Scheme expression and then stops, by raising a
SchemeParserFinishedError
.The parsed expression and its exact length in characters are cached on the
SchemeParser
instance.It is intended to be used only in conjunction with
LilyPondParser
.Attributes Summary
A
DIGIT
HEX
IDENTIFIER
INITIAL
INT
N
REAL
SUBSEQUENT
UNSIGNED
Lexer rules object of Scheme parser.
boolean : BOOLEAN
constant : boolean
constant : number
constant : string
data :
data : data datum
datum : constant
datum : list
datum : symbol
datum : vector
expression : QUOTE datum
expression : constant
expression : variable
form : expression
forms :
forms : forms form
list : L_PAREN data R_PAREN
list : L_PAREN data datum PERIOD datum R_PAREN
number : DECIMAL
number : HEXADECIMAL
number : INTEGER
program : forms
string : STRING
symbol : IDENTIFIER
variable : IDENTIFIER
vector : HASH L_PAREN data R_PAREN
Parser rules object of Scheme parser.
start
<program> : <form>*
states
#(T|F|t|f)
#
(
)
.
t_ignore
n+
"
\[nt\'"]
[^\""]+
"
.
t_quote_ignore
[ tr]+
tokens
Special methods
Methods
- p_list__L_PAREN__data__datum__PERIOD__datum__R_PAREN(p)[source]¶
list : L_PAREN data datum PERIOD datum R_PAREN
- t_quote_error(t)¶
Read-only properties
- lexer_rules_object¶
Lexer rules object of Scheme parser.
- parser_rules_object¶
Parser rules object of Scheme parser.