Moved BEGIN(FIRST_LINE) out of main() into lexer rules.