help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

yytext related problems


From: Sandhya Bala
Subject: yytext related problems
Date: Fri, 28 Dec 2001 14:32:49 -0500

From: Sandhya Balakrishnan
Date: 12/28/2001

Hello,

I am using Flex++ to scan from a stream buffer.I have a structure with char
pointers. 
when a token is matched, i point these char pointers to YYText(), assign a
null char
to the last delimiter char. This way i avoid any strcpy or malloc.
This works almost correctly, except for the first token. When i try to
access the first token's
value this way, null char is returned.
If someone could answer this question i would be thankful

sandhya



reply via email to

[Prev in Thread] Current Thread [Next in Thread]