|
From: | Martin Pala |
Subject: | Re: monitrc erroneous line numbering off by one |
Date: | Wed, 11 Feb 2004 23:00:43 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1 |
Martin Pala wrote: ...
1.) "off by one" is caused in p.y, where the line reported is given as "lineno-1" value. When changed to "lineno", the result was correct. This error is fixed in cvs now.
Update: Global statements (outside service definitions) need "lineno-1". It is fixed now (only 'allow' statement was affected).
2.) parser increments the line position (lineno) by all empty and comment lines following the invalid line, which is reported. Can some flex guru look on it? Both attached configurations still produces this kind of error.
This problem remains. Is here some way how to ignore "\n" for empty and comment lines following invalid statement line?
Martin
[Prev in Thread] | Current Thread | [Next in Thread] |