Re: Flex: token value more than what regexp matches

2005-07-11 Thread Akim Demaille
>>> "Vincent" == Vincent Zweije <[EMAIL PROTECTED]> writes: > This is really a FAQ. And it's in the FAQ section of the documentation. http://www.gnu.org/software/bison/manual/html_mono/bison.html#Strings-are-Destroyed ___ Help-bison@gnu.org http://

Re: Flex: token value more than what regexp matches

2005-07-08 Thread Frans Englich
Hans, Vincent, Thanks for your suggestions -- it of course solved my problem. Cheers, Frans ___ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

RE: Flex: token value more than what regexp matches

2005-07-08 Thread Vincent Zweije
Frans Englich wrote: > The relevant parts in my Bison is: > > %union > { > int ival; > char *sval; > KDOM::XPath::ExpressionImpl *expr; > KDOM::XPath::ExpressionImpl::List *expressionList; > QPSingleType *singleType; KDOM::XPath::SharedQName *qName; > bool emptyAllowed;

Re: Flex: token value more than what regexp matches

2005-07-08 Thread Hans Aberg
On 7 Jul 2005, at 23:53, Frans Englich wrote: I have the problem that the value of a token appears to be more than what the regexp matches. When parsing the expression "fn:false()", I get a QNAME token with the value "fn:false" -- what I expect & want. However, when parsing the expression

Flex: token value more than what regexp matches

2005-07-07 Thread Frans Englich
Hi, I have the problem that the value of a token appears to be more than what the regexp matches. Here's my (snipped) flex file: %} %option 8bit %option noyywrap %option nounput QName [a-zA-Z-]+:[a-zA-Z-]+ NCName [a-zA-Z-]+ Digit [0-9] %% {NCName}{