/// <summary> /// Returns a <see cref="Parser"/> instance based on the regex definitions in a yaml string /// </summary> /// <param name="yaml">a string containing yaml definitions of reg-ex</param> /// <param name="parserOptions">specifies the options for the parser</param> /// <returns>A <see cref="Parser"/> instance parsing user agent strings based on the regexes defined in the yaml string</returns> public static Parser FromYaml(string yaml, ParserOptions parserOptions = null) { return(new Parser(new MinimalYamlParser(yaml), parserOptions)); }
internal Config(ParserOptions options) { _options = options; }
/// <summary> /// Returns a <see cref="Parser"/> instance based on the regex definitions in a yaml string /// </summary> /// <param name="yaml">a string containing yaml definitions of reg-ex</param> /// <param name="parserOptions">specifies the options for the parser</param> /// <returns>A <see cref="Parser"/> instance parsing user agent strings based on the regexes defined in the yaml string</returns> internal static Parser FromYaml(string yaml, ParserOptions parserOptions = null) => new Parser(new MinimalYamlParser(yaml), parserOptions);