🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1614

(none)

#1614
From: Steven Berson
Date: Fri, 19 May 1989 22:45
21 lines
808 bytes
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
Technical Details
Message-ID: <8905192245.AA15478@lanai.cs.ucla.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CS.UCLA.EDU!steven

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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