LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
fhicl::ass_parser Struct Reference

#include "tokens.h"

Inheritance diagram for fhicl::ass_parser:

Classes

struct  attribute
 

Public Member Functions

template<typename Iterator , typename Context , typename Skipper , typename Attribute >
bool parse (Iterator &first, Iterator const &last, Context &, Skipper const &skipper, Attribute &attr) const
 
template<typename Context >
boost::spirit::info what (Context &) const
 

Detailed Description

Definition at line 394 of file tokens.h.

Member Function Documentation

template<typename Iterator , typename Context , typename Skipper , typename Attribute >
bool fhicl::ass_parser::parse ( Iterator &  first,
Iterator const &  last,
Context &  ,
Skipper const &  skipper,
Attribute &  attr 
) const
inline

Definition at line 407 of file tokens.h.

References fhicl::maximally_munched_ass().

412  {
413  boost::spirit::qi::skip_over(first, last, skipper);
414 
415  Iterator it = first;
416  while (it != last && (std::isalnum(*it) || *it == '_'))
417  ++it;
418 
419  if (it != last && !maximally_munched_ass(*it))
420  return false;
421 
422  Attribute result(first, it);
423  if (result.empty() || std::isdigit(result[0]))
424  return false;
425 
426  first = it;
427  boost::spirit::traits::assign_to(result, attr);
428  return true;
429  }
bool maximally_munched_ass(char const ch)
Definition: tokens.h:41
template<typename Context >
boost::spirit::info fhicl::ass_parser::what ( Context &  ) const
inline

Definition at line 434 of file tokens.h.

435  {
436  return boost::spirit::info{"fhicl::ass"};
437  }

The documentation for this struct was generated from the following file: