[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[help-flex] yy_pop_state "unrecognized rule"
From: |
Aaron S. Hawley |
Subject: |
[help-flex] yy_pop_state "unrecognized rule" |
Date: |
Mon, 29 Jul 2002 13:45:47 -0400 (EDT) |
i'm an inexperienced flex trying to get states to work. flex complains
yy_pop_state() is an unrecognized rule.
behavoior seen in:
flex 2.5.4 with gcc on AIX 5.1
flex 2.5.10 with cc on AIX 4.3
flex 2.5.10 with cc on AIX 5.1
flex 2.5.10 with gcc on AIX 5.1
%> gmake LEX=flex CFLAGS=-lfl statestest
flex -t statestest.l > statestest.c
statestest.l: 27: unrecognized rule
statestest.l: 27: unrecognized rule
statestest.l: 27: unrecognized rule
/* line 1 */
%x FOO
%option stack
%option main
%%
<INITIAL>foo
{
printf("Found foo\n");
BEGIN(FOO);
}
<INITIAL>.|\n
{
ECHO;
}
<INITIAL><FOO>.+
{
printf("In foo: ");
ECHO;
}
<INITIAL><FOO>\n
{
yy_pop_state(); /* line 27 */
}
%%
--
__________________________________________
PINE 4.44 Mailer - www.washington.edu/pine
- [help-flex] yy_pop_state "unrecognized rule",
Aaron S. Hawley <=