Exemple #1
0
// Parse a field declaration.
//
//    field-decl -> [specifier-seq] identifier object-type
//
// Note that the specifier-seq is parsed above.
Decl*
Parser::field_decl(Specifier spec)
{
  // actual declaration
  Token n = match(identifier_tok);
  match(colon_tok);
  Type const* t = type();
  match(semicolon_tok);
  return on_field(spec, n, t);
}
void
basic_parser::check_header()
{
    if (! value_.empty())
    {
        rfc2616::trim_right_in_place (value_);
        on_field (field_, value_);
        field_.clear();
        value_.clear();
    }
}