72 while ((*in >= 9 && *in <= 13) || *in == 32)
79 if (isEof(in))
return;
80 if (*in ==
'\n') { ++in;
return; }
89 if (*in ==
'-') neg =
true, ++in;
90 else if (*in ==
'+') ++in;
91 if (*in < '0' || *in >
'9') fprintf(stderr,
"PARSE ERROR! Unexpected char: %c\n", *in), exit(3);
92 while (*in >=
'0' && *in <=
'9')
93 val = val*10 + (*in -
'0'),
95 return neg ? -val : val; }
101 static bool match(B& in,
const char* str) {
103 for (i = 0; str[i] !=
'\0'; i++)
115 for (; *str !=
'\0'; ++str, ++in)
static const int buffer_size
static bool match(B &in, const char *str)
static void skipWhitespace(B &in)
static int parseInt(B &in)
static bool eagerMatch(B &in, const char *str)
static void skipLine(B &in)