> cat spaces.l %% one two { printf("spaces\n"; } %% nereida:~/public_html/regexpr/lex/src> flex spaces.l nereida:~/public_html/regexpr/lex/src> gcc lex.yy.c spaces.l: In function `yylex': spaces.l:2: `two' undeclared (first use in this function) spaces.l:2: (Each undeclared identifier is reported only once spaces.l:2: for each function it appears in.) spaces.l:2: parse error before `{' spaces.l:4: case label not within a switch statement lex.yy.c:632: case label not within a switch statement lex.yy.c:635: case label not within a switch statement lex.yy.c:757: default label not within a switch statement lex.yy.c: At top level: lex.yy.c:762: parse error before `}'Deberíamos escapar el blanco entre
one
y two
o bien
proteger la cadena poniéndola entre comillas: "one two"
.