22 lines
432 B
C++
22 lines
432 B
C++
#ifndef SCANNER_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <algorithm>
|
|
|
|
#define ECHOS(s) fwrite(s, strlen(s), sizeof(char), yyout)
|
|
#define ECHOC(c) fputc(c, yyout)
|
|
|
|
extern std::vector<std::string> ignore_list;
|
|
|
|
inline
|
|
bool do_ignore(const std::string ¤t_tag) {
|
|
return std::find(ignore_list.begin(),
|
|
ignore_list.end(),
|
|
current_tag)
|
|
!= ignore_list.end();
|
|
}
|
|
|
|
#define SCANNER_H
|
|
#endif
|