def __init__(self): Pattern.__init__( self, "EmptyWS", Accept().add_default(connect=False, insert=False), Attach().add_default(connect=False, insert=False) )
def __init__(self): Pattern.__init__( self, "Digit", Accept().add_default(connect=False, insert=False), Attach().add_option(muskrat.filters.by_type("Latin"), connect=True, insert=False))
def __init__(self): Pattern.__init__( self, "Latin", Accept().add_default(connect=True, insert=False), Attach().add_default(connect=False, insert=False) )
def __init__(self): Pattern.__init__( self, "Value", Accept().add_default(connect=False, insert=False), Attach().add_default(connect=False, insert=False).add_option(by_type("Is"), connect=True, insert=False))
def __init__(self): Pattern.__init__( self, "AlphaChar", Accept().add_default(connect=False, insert=False).add_option(by_type("<Tag"), connect=True, insert=False), Attach().add_default(connect=False, insert=False))
def __init__(self): Pattern.__init__( self, "RightParen", Accept().add_default(connect=False, insert=False), Attach().add_default(connect=True, insert=False), focus_on=lambda p, c: p.get(condition=lambda o: o.pattern. object_type == "LeftParen"))
def __init__(self): Pattern.__init__( self, "Element", Accept().add_default(connect=True, insert=False), Attach().add_default(connect=True, insert=False), focus_on=lambda p, c: p.get(condition=lambda o: "Element" in o. pattern.object_type and o.pattern. properties.property_exists("parent")))
def __init__(self): sc_prop = PatternProperties() sc_prop.add_property("char-cat", "special") sc_prop.add_property("is_char") sc_prop.add_property("void_prop_to_be_removed") sc_prop.add_property("prop_to_be", "removed") Pattern.__init__(self, "SpecialChar", Accept().add_default(connect=False, insert=False), Attach().add_default(connect=False, insert=False), properties=sc_prop)
def __init__(self): Pattern.__init__(self, "Alphanumeric", Accept().add_default(connect=False, insert=False), Attach().add_default(connect=False, insert=False))