src/operator.cpp
/*!
 * \fn Associativity associativity(int group)
 * \param the id of a precedence group
 * \brief returns the associativity of a an operator given its group
 *
 * The input parameter must be a value returned by the function precedence().
 */
\fn Associativity associativity(int group)
\param the id of a precedence group
\brief returns the associativity of a an operator given its group

The input parameter must be a value returned by the function precedence().
\ fn Associativity associativity ( int group ) \ param the id of a precedence group \ brief returns the associativity of a an operator given its group The input parameter must be a value returned by the function precedence () .
Associativity associativity(int group)
{
  assert(group >= 0 && group <= 15);
  static Associativity table[] = {
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::RightToLeft,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::LeftToRight,
    Associativity::RightToLeft,
    Associativity::LeftToRight,
  };
  return table[group - 1];
}
Associativity associativity ( int group ) { assert ( group >= 0 && group <= 15 ) ; static Associativity table [ ] = { Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: RightToLeft , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: LeftToRight , Associativity :: RightToLeft , Associativity :: LeftToRight , } ; return table [ group - 1 ] ; }
\fn Associativity associativity(int group)
 \param the id of a precedence group
 \brief returns the associativity of a an operator given its group
\ fn Associativity associativity ( int group ) \ param the id of a precedence group \ brief returns the associativity of a an operator given its group