On Thu, Feb 14, 2008 at 09:52:56PM +0900, Phlip wrote:
> I'm already usind nd_line, but getting the column of a node would be great 
> too.
> 
> We know Ruby knows this, because the generic rescue uses the column to 
> print the offending code line with a little ^ on the offending column.
> 
> So how does the system extract the number of characters over from the left 
> edge of a line, for a given node?

AFAIK this is only known at compile-time.  Take a look at parser_yyerror
to see where the ^ is coming from.

Paul