]> git.donarmstrong.com Git - lilypond.git/commit
Move the extra_token mechanism out of the lexer proper
authorDavid Kastrup <dak@gnu.org>
Wed, 11 Dec 2013 20:35:53 +0000 (21:35 +0100)
committerDavid Kastrup <dak@gnu.org>
Thu, 19 Dec 2013 11:18:31 +0000 (12:18 +0100)
commit5bf2b8b2d50667582a61abea0e6257be0d033131
treeca90cdfc0daf9e39ff42c670b43ca50e55f90d98
parentae72ad86fe1a347f34a9bc1c835cce4274a0b795
Move the extra_token mechanism out of the lexer proper

Calling lex->pop_extra_token explicitly in the parser's yylex function
makes things considerably more robust.  It also allows pushing and
popping the EOF condition, necessary for backing up right at the end
of a file, like with ##{ \relative { c d e f } #} where the music
expression is checked against being a pitch, and then is backed up.
lily/include/lily-lexer.hh
lily/lexer.ll
lily/parser.yy