Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CS.UCLA.EDU!steven From: steven@CS.UCLA.EDU (Steven Berson) Newsgroups: gnu.utils.bug Subject: (none) Message-ID: <8905192245.AA15478@lanai.cs.ucla.edu> Date: 19 May 89 22:45:16 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 This is not a bug, but I have a yacc/lex pair that I would like to change to bison/flex. I use yyleng (defined as extern) in my parser which should be defined by lex. Is there some equivalent way to get the length of a token recognized by my lexical analyzer from flex. The particular part of the code is: extern yyleng; . . . $$ = strcpy(malloc(yyleng+1),yytext); . . . Thanks, Steven Berson steven@cs.ucla.edu