tools/kprint/addBrackets.cpp
bool hasTerminalAtIdx(std::string terminals, int position) {
  if (position < 0 || position >= terminals.length()) {
    return false;
  }
  return terminals[position] == '1';
}
/**
 * Get whether a production has a terminal at a particular index.
 *
 * Out of bounds errors do not occur with this function: if the index is out of
 * range, `false` is returned, indicating there is not a terminal at that index
 */
Get whether a production has a terminal at a particular index.
Out of bounds errors do not occur with this function: if the index is out of
range, `false` is returned, indicating there is not a terminal at that index
Get whether a production has a terminal at a particular index . Out of bounds errors do not occur with this function : if the index is out of range ` false ` is returned indicating there is not a terminal at that index
bool hasTerminalAtIdx(std::string terminals, int position) {
  if (position < 0 || position >= terminals.length()) {
    return false;
  }
  return terminals[position] == '1';
}
bool hasTerminalAtIdx ( std :: string terminals , int position ) { if ( position < 0 || position >= terminals . length ( ) ) { return false ; } return terminals [ position ] == ' ' ; }
Get whether a production has a terminal at a particular index.
Get whether a production has a terminal at a particular index .