svend/cuetools — Issue #1: cue_parse.y syntax does not accept files with no LF at the end of file
Author: hades
Created: 2012-02-22 10:24:12+00:00
State: open

I've just tried to use cuebreakpoints and cueprint to split an image WAV into tracks and tag them. Both tools were giving me the same error:

105: syntax error
c.cue: input file error

After downloading code and enabling verbose errors with -DYYERRORS_VERBOSE (which, by the way, I would enable by default) the error became:

105: syntax error, unexpected $end, expecting '\n'

It was now obvious that the file has been missing a "\n" at the end, which is required by this rule (cue_parse.y:170):

track_def
: TRACK NUMBER track_mode '\n' {
track_set_mode(track, $3);
}
;

Unfortunately, I am not much into yacc, so I'm leaving it in your able hands :).