News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Flex Column Numbers

Started by cman, April 20, 2013, 01:07:45 AM

Previous topic - Next topic

cman

What's the best way to associate line and column numbers with a token using Flex? I've tried something like this:


"token"               { sourceColumnNumber += yyleng; return tokenDefine; }
.........................
"\n"                     { sourceColumnNumber = 1; sourceLineNumber ++; }



I seem to get improper results with certain productions. Thanks for any information!