A convenience method for times when using the extractor is too heavy.
A convenience method for times when using the extractor is too heavy.
The String that should be parsed into a Rule.
The Rule that had been serialized; this method will throw a CannotDeserializeException if it is unable to deserialize the string into a rule based on the current parser.
Implement this to provide an extractor that pulls the Rule out of the String.
Implement this to provide an extractor that pulls the Rule out of the String.
The String that should be parsed into a Rule.
None if the string cannot be parsed; Some(rule) if the string can be parsed.
Use this to create a parsing object that incorporates the specific parsers that your application uses. It also includes parsers for the "default" list of parsers (True, False, And, Or, etc); simply instantiating an object without any arguments will give you a parser that can parse only those defaults.