File: print.cc

package info (click to toggle)
flexc%2B%2B 2.17.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,180 kB
  • sloc: cpp: 6,467; makefile: 148; sh: 130; ansic: 18
file content (14 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "parser.ih"

void Parser::print()
{
    if (d_printTokens && token_() != s_ignoreToken)
    {
        std::cout << "Token: " << symbol_(token_());

        if (isprint(token_()) || token_() > 0xff)
            std::cout << ", text: `" << d_matched << "'\n";
        else
            std::cout << '\n';
    }
}