Parser

weaponregex.parser.Parser$
See theParser companion class
object Parser

Companion object for weaponregex.parser.Parser class that instantiates flavor-specific parsers instances

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Parser.type

Members list

Value members

Concrete methods

def apply(pattern: String, flags: Option[String], flavor: ParserFlavor): Either[String, RegexTree]

Apply the parser to parse the given pattern and flags

Apply the parser to parse the given pattern and flags

Value parameters

flags

The regex flags to be used

pattern

The regex pattern to be parsed

Attributes

Returns

A Right of parsed weaponregex.model.regextree.RegexTree if can be parsed, a Left with the error message otherwise

def apply(pattern: String, flavor: ParserFlavor): Either[String, RegexTree]

Apply the parser to parse the given pattern

Apply the parser to parse the given pattern

Value parameters

pattern

The regex pattern to be parsed

Attributes

Returns

A Right of parsed weaponregex.model.regextree.RegexTree if can be parsed, a Left with the error message otherwise