pyebnf/compiler.py
def parse_directive_def(cls, directive_def):
    """Turns a directive definition string into a directive object."""
    name, *kwargs = esc_split(directive_def, ignore_empty=True)
    return Directive(name, {key: value for key, value in (esc_split(arg, "=") for arg in kwargs)})
def parse_directive_def(cls, directive_def):
    """Turns a directive definition string into a directive object."""
    name, *kwargs = esc_split(directive_def, ignore_empty=True)
    return Directive(name, {key: value for key, value in (esc_split(arg, "=") for arg in kwargs)})
def parse_directive_def ( cls , directive_def ) : name , * kwargs = esc_split ( directive_def , ignore_empty = True ) return Directive ( name , { key : value for key , value in ( esc_split ( arg , "=" ) for arg in kwargs ) } )
Turns a directive definition string into a directive object.
Turns a directive definition string into a directive object .