432 |
// Short files will use "unsigned char" for line numbers, |
// Short files will use "unsigned char" for line numbers, |
433 |
// in which case they will be output as character litterals |
// in which case they will be output as character litterals |
434 |
// by "<<". |
// by "<<". |
435 |
|
unsigned yylineno = rline_[n_]; |
436 |
YYCDEBUG << "Reducing via rule " << n_ - 1 |
YYCDEBUG << "Reducing via rule " << n_ - 1 |
437 |
<< " (line " << static_cast <unsigned> (rline_[n_]) << "), "; |
<< " (line " << yylineno << "), "; |
438 |
for (]b4_int_type_for([b4_prhs])[ i = prhs_[n_]; |
for (]b4_int_type_for([b4_prhs])[ i = prhs_[n_]; |
439 |
0 <= rhs_[i]; ++i) |
0 <= rhs_[i]; ++i) |
440 |
YYCDEBUG << name_[rhs_[i]] << ' '; |
YYCDEBUG << name_[rhs_[i]] << ' '; |
924 |
/** \brief (column related) Advance to the COLUMNS next columns. */ |
/** \brief (column related) Advance to the COLUMNS next columns. */ |
925 |
inline void columns (int columns = 1) |
inline void columns (int columns = 1) |
926 |
{ |
{ |
927 |
if (int (initial_column) < columns + int (column)) |
int leftmost = initial_column; |
928 |
|
int current = column; |
929 |
|
if (leftmost <= current + columns) |
930 |
column += columns; |
column += columns; |
931 |
else |
else |
932 |
column = initial_column; |
column = initial_column; |