part of irc.parser;

/**
 * Base class for IRC Parsers
 *
 * ```
 * var parser = new SomeIrcParser();
 * var message = parser.convert(":some.server PRIVMSG #SomeChannel :Some Message");
 * // Use Message Instance
 * ```
 */
abstract class IrcParser extends Converter<String, Message> {

  /**
   * Creates the default IrcParser, which is [RegexIrcParser].
   */
  static IrcParser create() => new RegexIrcParser();

  /**
   * Parses [line] as an IRC line and outputs a [Message].
   */
  @override
  Message convert(String line);
}

part of irc.parser;

/**
 * Base class for IRC Parsers
 *
 *      var parser = new SomeIrcParser();
 *      var message = parser.convert(":some.server PRIVMSG #SomeChannel :Some Message");
 *      // Use Message Instance
 */
abstract class IrcParser extends Converter<String, Message> {

  /**
   * Creates the default IrcParser, which is [RegexIrcParser].
   */
  static IrcParser create() => new RegexIrcParser();

  /**
   * Parses [line] as an IRC line and outputs a [Message].
   */
  @override
  Message convert(String line);
}

Tweak Documentation to use spaces for the code highlighting
Tweak Documentation to use spaces for the code highlighting
