Ejemplo n.º 1
0
 /// <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));
 }
Ejemplo n.º 2
0
 internal Config(ParserOptions options)
 {
     _options = options;
 }
Ejemplo n.º 3
0
 /// <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);