Workaround for broken MusicXML files (percussion clef in MuseScore)
[lilypond.git] / lily / lily-lexer-scheme.cc
blobfa783bd1758bcb25341c23693f5c58b9c6cc2c09
1 /*
2 lily-lexer-scheme.cc -- implement Lily_lexer bindings.
4 source file of the GNU LilyPond music typesetter
6 (c) 2006--2009 Han-Wen Nienhuys <hanwen@lilypond.org>
8 */
10 #include "lily-lexer.hh"
12 LY_DEFINE (ly_lexer_keywords, "ly:lexer-keywords",
13 1, 0, 0, (SCM lexer),
14 "Return a list of @code{(KEY . CODE)} pairs, signifying the"
15 " LilyPond reserved words list.")
17 LY_ASSERT_SMOB (Lily_lexer, lexer, 1);
19 Lily_lexer * lex = Lily_lexer::unsmob (lexer);
20 return lex->keyword_list ();