/usr/share/denemo/actions/notes.l is in denemo-data 2.0.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | A [a-zA-Z\200-\377]
AA {A}|_
N [0-9]
AN {AA}|{N}
ANY_CHAR (.|\n)
PUNCT [?!:'`]
ACCENT \\[`'"^]
NATIONAL [\001-\006\021-\027\031\036]
TEX {AA}|-|{PUNCT}|{ACCENT}|{NATIONAL}
WORD {A}{AN}*
DASHED_WORD {A}({AN}|-)*
DASHED_KEY_WORD \\{DASHED_WORD}
ALPHAWORD {A}+
DIGIT {N}
UNSIGNED {N}+
E_UNSIGNED \\{N}+
FRACTION {N}+\/{N}+
INT -?{UNSIGNED}
REAL ({INT}\.{N}*)|(-?\.{N}+)
KEYWORD \\{WORD}
NEWLINE [^.] ; windows and linux/unix
WHITE [ ] ;space and tab!
HORIZONTALWHITE [ ]
BLACK [^ \n\t\f\r] ;TODO: needs fix
RESTNAME [rs]
NOTECOMMAND \\{A}+
MARKUPCOMMAND \\({A}|[-_])+
LYRICS ({AA}|{TEX})[^0-9 \t\n\r\f]*
ESCAPED [nt\\'"]
EXTENDER __
HYPHEN --
BOM_UTF8 \357\273\277
%%
{BOM_UTF8}/.* (yycontinue)
;original bom_utf8/.*
; if (this->lexloc_->line_number () != 1 || this->lexloc_->column_number () != 0)
; {
; LexerError (_ ("stray UTF-8 BOM encountered").c_str ());
; exit (1);
; }
; if (be_verbose_global)
; message (_ ("Skipping UTF-8 BOM"));
\" (lyimport::start_quote) (lyimport::multilexer) ;cannot use yycontinue as that calls this lexer
\\paper{WHITE}*\{ (lyimport::start_block) (lyimport::multilexer)
\\layout{WHITE}*\{ (lyimport::start_block) (lyimport::multilexer)
\\header{WHITE}*\{ (lyimport::start_block) (lyimport::multilexer)
\\midi{WHITE}*\{ (lyimport::start_block) (lyimport::multilexer)
\\markup{WHITE}*\{ (lyimport::start_block) (lyimport::mtoken 'MARKUP ((record-accessor lexical-token 'value)(lyimport::multilexer)))
\\version{WHITE}*.*{NEWLINE} (lyimport::mtoken 'VERSION yytext) ; in lilypond it is a state switch yy_push_state (version)
%.*{NEWLINE} (yycontinue)
\\sourcefilename{WHITE}* (lyimport::mtoken 'ERROR yytext) ; yy_push_state (sourcefilename)
\\sourcefileline{WHITE}* (lyimport::mtoken 'ERROR yytext) ; yy_push_state (sourcefileline)
\\maininput (lyimport::mtoken 'ERROR yytext) ; if (!is_main_input_) (block: start_main_input (); is_main_input_ = true; ) ELSE error (_ ("\\maininput not allowed outside init files"));
\\include (lyimport::start_incl) (display "include state started")(lyimport::multilexer)
{RESTNAME} (lyimport::mtoken 'RESTNAME yytext)
# (begin
(lyimport::mtoken 'SCM_TOKEN (read (make-soft-port
(vector #f #f #f (lambda () (lexer-getc)) #f) "r"))))
\\lyricmode{WHITE}*\{ (lyimport::start_block) (lyimport::multilexer)
\\chordmode{WHITE}*\{ (lyimport::start_block) (lyimport::multilexer)
R (lyimport::mtoken 'MULTI_MEASURE_REST yytext)
<< (lyimport::mtoken 'DOUBLE_ANGLE_OPEN yytext)
>> (lyimport::mtoken 'DOUBLE_ANGLE_CLOSE yytext)
< (lyimport::mtoken 'ANGLE_OPEN yytext)
> (lyimport::mtoken 'ANGLE_CLOSE yytext)
{ALPHAWORD} (lyimport::scan_bare_word yytext)
{NOTECOMMAND} (lyimport::scan_escaped_word (string-trim yytext #\\))
{FRACTION} (lyimport::scan_fraction yytext) ; yylval.scm = scan_fraction (YYText ()); return FRACTION;
{DIGIT} (lyimport::mtoken 'DIGIT yytext)
{UNSIGNED} (lyimport::mtoken 'UNSIGNED yytext)
{E_UNSIGNED} (lyimport::mtoken 'E_UNSIGNED yytext)
\{ (lyimport::mtoken '{ yytext)
\} (lyimport::mtoken '} yytext)
\* (lyimport::mtoken 'STAR yytext)
: (lyimport::mtoken ': yytext)
= (lyimport::mtoken 'EQUAL yytext)
\. (lyimport::mtoken 'DOT yytext)
! (lyimport::mtoken 'EXCLAMATIONMARK yytext)
\? (lyimport::mtoken 'QUESTIONMARK yytext)
\| (lyimport::mtoken 'PIPE yytext)
/ (lyimport::mtoken 'SLASH yytext)
\^ (lyimport::mtoken 'CARET yytext)
_ (lyimport::mtoken 'UNDERSCORE yytext)
- (lyimport::mtoken 'HYPHEN yytext)
~ (lyimport::mtoken 'TILDE yytext) ; This may be the wrong place. But the lexer did not detect E_TILDE with the block \\. below
\[ (lyimport::mtoken 'BRACKET_OPEN yytext) ; This is a custom lexer rule. In Lilypond these are used directly as strings in the parser.
\] (lyimport::mtoken 'BRACKET_CLOSE yytext) ; This is a custom lexer rule. In Lilypond these are used directly as strings in the parser.
\( (lyimport::mtoken 'OPEN yytext); for slurs
\) (lyimport::mtoken 'CLOSE yytext); for slurs
\\. (case (string-ref yytext 0) ; not sure for what this is. maybe scheme escaped parts in lilypond?
((#\>) (lyimport::mtoken 'E_ANGLE_CLOSE yytext))
((#\<) (lyimport::mtoken 'E_ANGLE_OPEN yytext))
((#\!) (lyimport::mtoken 'E_EXCLAMATION yytext))
((#\() (lyimport::mtoken 'E_OPEN yytext))
((#\)) (lyimport::mtoken 'E_CLOSE yytext))
((#\[) (lyimport::mtoken 'E_BRACKET_OPEN yytext))
((#\+) (lyimport::mtoken 'E_PLUS yytext))
((#\]) (lyimport::mtoken 'E_BRACKET_CLOSE yytext))
((#\~) (lyimport::mtoken 'E_TILDE yytext))
((#\\) (lyimport::mtoken 'E_BACKSLASH yytext))
(else (lyimport::mtoken 'E_CHAR yytext)))
, (lyimport::mtoken 'SUB_QUOTE yytext)
' (lyimport::mtoken 'SUP_QUOTE yytext)
;\+ (lyimport::mtoken 'PLUS yytext)
\+ (lyimport::mtoken 'STRING yytext)
({WHITE}|{NEWLINE}) (yycontinue);(lyimport::mtoken 'WHITESPACE yytext)
. (lyimport::mtoken 'ANYTHING yytext) ; in lilypond there is no token name
;\" (lyimport::mtoken 'DBLQUOTE yytext) ;; This is a custom Denemo token
<<ERROR>> (lyimport::mtoken 'ERROR yytext)
<<EOF>> (make-lexical-token '*eoi* #f #f)
|