Does anyone know of a clever way to find the column count in GNU flex
scanner?  The yylineno option only gives you the line number, so my
scanner keeps track of the column number by augmenting it by the
length of yytext in each rule, but this is tedious.  Maybe there is a
solution using YY_CURRENT_BUFFER->yy_n_chars and/or
YY_CURRENT_BUFFER->yy_buf_size?

Josh


_______________________________________________
Help-flex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-flex

Reply via email to