I wrote:

> [...] Why should
> be difficult to track the indices in yytext of the beginning and the end 
> of each matching subexpression, in two arrays of integers (one for
> the beginning and one for the end)? [...] 

More exactly: in the first array the index of the first element of
the matching subexpression, in the second the index of the last
element plus one. When both indices are equal, then the subexpression
is void. 

If the second index correspond to something irrelevant in yytext, then 
one can set yytext there to 0 for easily obtaining a pointer to a null 
terminating string equal to the subexpression.

Just dreaming.

Rodrigo.

Reply via email to