function stackParserFromStackParserOptions(stackParser) {
  if (Array.isArray(stackParser)) {
    return createStackParser(...stackParser);
  }
  return stackParser;
}
Gets a stack parser implementation from Options.stackParser
@see Options

If options contains an array of line parsers, it is converted into a parser