2013-03-24から1日間の記事一覧
作ってみた。 https://github.com/coiled-coil/flex-example/blob/master/lexer.l %{ #include <string.h> %} %option noyywrap reentrant stack nounput %x MODE_A MODE_B %{ enum { TOK_1 = 10, TOK_2 = 20, TOK_3 = 30, }; %} %% . printf("INITIAL: %s\n", yytext)</string.h>…