Is there a way (or will there ever be a way) to match error line numbers with the actual input data? I see the FAQ question regarding the grammar itself and was wondering if the same answer applies here. Basically I'm accepting ordersets for a play-by-email game I'm developing and if there's a fundamental grammatical error, I would like to be able to tell them which exact line is the problem. Unfortunately, the line numbers I'm getting from PRD don't line up with the actual input. Is there a way to somehow keep track of newlines as we're parsing and somehow insert that data into $thisparser->{errors} so my handler can see it? Below is the actual top-level rule for my grammar. Your time is greatly appreciated.
<autotree> orderset: order(s) endToken | { ::process_prd_errors( $thisparser->{errors} ); $thisparser->{errors} = undef; } { $return = $item[1] } endToken: eofile | 'end' -- Aaron Dalton [EMAIL PROTECTED] http://aaron.finch.st