You could use a flex EOF rule to append a newline to the input: < > { static int once = 0; return once++ ? 0 : '\n' } In your lex file #define yyterminate()
確定! 回上一頁