ããã§ã¯ã èªè ãããã°ã©ã ã®ä¸ã§ä½¿ããã¨ã®ã§ããã ã¡ãã£ã¨ããFlexå®ç¾©ãä¸è¦§ã«ãã¦ç¤ºãã¾ãã å¤ãã¯ã ãã®ããã¥ã¢ã«ãèªãã ãã¨ã§ã¯ã ããªãèªæã®ãã®ã«ãªãã¯ãã§ãã ãããã èªè ãããããã³ã¼ããæåããä½ããã«æ¸ãããã«ã ããã«å ¥ãã¦ããã¾ãã ã³ã¡ã³ãã®å¦ç Flexã¨Cã«ããã¦è¿°ã¹ãããã«ã ã³ã¡ã³ãã¯input()ã使ã£ã¦å¦çãããã¨ãã§ãã¾ãã ãããè¡ãããã®ã³ã¼ãã¯ä»¥ä¸ã®ããã«ãªãã¾ãã %% "/*" { int a,b; a = input(); while(a != EOF){ b = input(); if(a == '*' && b == '/'){ break; }else{ a = b; } } if(a == EOF){ error_message("EOF in comment"); } } ããã¯ã Flexã¨Lexã®ä¸¡æ¹ã§æ£å½ãªã³ã¼ãã§
{{#tags}}- {{label}}
{{/tags}}