Report a warning
| 1452 | |
| 1453 | /// Report a warning |
| 1454 | void Reflex::warning(const char *message, const char *arg, size_t at_lineno) |
| 1455 | { |
| 1456 | if (options["nowarn"].empty()) |
| 1457 | std::cerr << |
| 1458 | SGR("\033[0m") << (infile.empty() ? "(stdin)" : infile.c_str()) << ":" << (at_lineno ? at_lineno : lineno) << ": " << |
| 1459 | SGR("\033[1;35m") << "warning: " << SGR("\033[0m") << |
| 1460 | message << |
| 1461 | SGR("\033[1m") << (arg != NULL ? arg : "") << SGR("\033[0m") << |
| 1462 | std::endl; |
| 1463 | } |
| 1464 | |
| 1465 | /// Parse section 1 of a lex specification |
| 1466 | void Reflex::parse_section_1() |