{"id":275,"date":"2012-08-15T23:11:22","date_gmt":"2012-08-15T14:11:22","guid":{"rendered":"http:\/\/blog.belliny.net\/?p=275"},"modified":"2012-08-15T23:11:22","modified_gmt":"2012-08-15T14:11:22","slug":"flex-non-interactive","status":"publish","type":"post","link":"https:\/\/www.belliny.net\/?p=275","title":{"rendered":"flex never-interactive"},"content":{"rendered":"<p>flex\ud30c\uc77c\uc744 \ucef4\ud30c\uc77c \ud558\uc5ec \uc2e4\uc81c \ucf54\ub4dc\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub824\uace0 \ud558\ub2e4\ubcf4\uba74 \uc885\uc885 \ud76c\uc548\ud55c? \uc624\ub958\ub97c \uacbd\ud5d8\ud558\uac8c \ub418\ub294\ub370&#8230;<br \/>\nunistd.h\uac00 \uc5c6\ub2e4\uace0 \ud574\uc11c c\uc2a4\ud0c0\uc77c\ub85c \ucef4\ud30c\uc77c \ud558\uba74 \uc774\ub0b4 isatty\uac00 \uc5c6\ub2e4\uace0 \uc9d5\uc9d5\uac70\ub9b0\ub2e4&#8230;<br \/>\n\ubb38\uc81c\ub294 Visual Studio 2005\uc774\ud6c4 \uc774 isatty\uac00 _isatty\ub85c \uc0ac\uc6a9\ud558\ub3c4\ub85d \ubc14\ub00c\uc5c8\uae30 \ub54c\ubb38\uc5d0 \uadf8\ub0e5\uc740 \uc548\ub418\ub294\ub370&#8230;<br \/>\n\uacb0\uad6d, \uc774 \ud568\uc218 \ud638\ucd9c\uc774 \uc5c6\ub3c4\ub85d \uc635\uc158 \uc870\uc808\uc744 \ud558\uc5ec \ud68c\ud53c\ud558\ub294 \ubc29\ubc95\uc73c\ub85c \ubb38\uc81c\ub97c \ud574\uacb0\ud574\uc57c \ub41c\ub2e4&#8230;<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/2793413\/unistd-h-related-problem-when-compiling-bison-flex-program-under-vc<\/p>\n<p>isatty is used by the lexer to determine if the input stream is a terminal or a pipe\/file. The lexer uses this information to change its caching behavior (the lexer reads large chunks of the input when it is not a terminal). If you know that your program will never be used in an interactive kind, you can add %option never-interactive to you lexer. When the program is run with user input, use %option interactive. When both uses are desired, you can either generate an interactive lexer, which gives a performance loss when used in batch mode, or provide your own isatty function.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>flex\ud30c\uc77c\uc744 \ucef4\ud30c\uc77c \ud558\uc5ec \uc2e4\uc81c \ucf54\ub4dc\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub824\uace0 \ud558\ub2e4\ubcf4\uba74 \uc885\uc885 \ud76c\uc548\ud55c? \uc624\ub958\ub97c \uacbd\ud5d8\ud558\uac8c \ub418\ub294\ub370&#8230; unistd.h\uac00 \uc5c6\ub2e4\uace0 \ud574\uc11c c\uc2a4\ud0c0\uc77c\ub85c \ucef4\ud30c\uc77c \ud558\uba74 \uc774\ub0b4 isatty\uac00 \uc5c6\ub2e4\uace0 \uc9d5\uc9d5\uac70\ub9b0\ub2e4&#8230; \ubb38\uc81c\ub294 Visual Studio 2005\uc774\ud6c4 \uc774 isatty\uac00 _isatty\ub85c \uc0ac\uc6a9\ud558\ub3c4\ub85d \ubc14\ub00c\uc5c8\uae30 \ub54c\ubb38\uc5d0 \uadf8\ub0e5\uc740 \uc548\ub418\ub294\ub370&#8230; \uacb0\uad6d, \uc774 \ud568\uc218 \ud638\ucd9c\uc774 \uc5c6\ub3c4\ub85d \uc635\uc158 \uc870\uc808\uc744 \ud558\uc5ec \ud68c\ud53c\ud558\ub294 \ubc29\ubc95\uc73c\ub85c \ubb38\uc81c\ub97c \ud574\uacb0\ud574\uc57c \ub41c\ub2e4&#8230; http:\/\/stackoverflow.com\/questions\/2793413\/unistd-h-related-problem-when-compiling-bison-flex-program-under-vc isatty is used by the lexer to &hellip; <a href=\"https:\/\/www.belliny.net\/?p=275\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;flex never-interactive&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-275","post","type-post","status-publish","format-standard","hentry","category-dev"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts\/275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275"}],"version-history":[{"count":0,"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}