28#pragma GCC visibility push(default)
73 while ((*in >= 9 && *in <= 13) || *in == 32)
80 if (isEof(in))
return;
81 if (*in ==
'\n') { ++in;
return; }
90 if (*in ==
'-') neg =
true, ++in;
91 else if (*in ==
'+') ++in;
92 if (*in <
'0' || *in >
'9') fprintf(stderr,
"PARSE ERROR! Unexpected char: %c\n", *in), exit(3);
93 while (*in >=
'0' && *in <=
'9')
94 val = val*10 + (*in -
'0'),
96 return neg ? -val : val; }
102static bool match(B& in,
const char* str) {
104 for (i = 0; str[i] !=
'\0'; i++)
116 for (; *str !=
'\0'; ++str, ++in)
125#pragma GCC visibility pop
static const int buffer_size
static bool eagerMatch(B &in, const char *str)
static bool match(B &in, const char *str)
static int parseInt(B &in)
static void skipLine(B &in)
static void skipWhitespace(B &in)