Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(42)  |  Call(20)  |  Derive(8)  |  Import(14)

src/s/u/SublimeSpeech-HEAD/lib/dragonfly/language/base/integer_base.py   SublimeSpeech(Download)
 
 
from dragonfly.grammar.elements import (Alternative, Sequence, Optional,
                                        Compound, ListRef)
from dragonfly.grammar.list     import  List
class IntegerBase(Alternative):
 
    _builders = ()
 
    def __init__(self, name=None, min=None, max=None):
            children = [Compound(spec=spec, value=value)
                        for spec, value in elements]
            return Alternative(children)
        elif len(elements) == 1:
            return Compound(spec=elements[0][0], value=elements[0][1])
            return children[0]
        else:
            return Alternative(children)
 
 
        if len(children) == 0:    return None
        elif len(children) == 1:  return children[0]
        else:                     return Alternative(children)
 
    def _build_range(self, first_multiplier, last_multiplier,

src/d/r/dragonfly-0.6.5/dragonfly/language/base/integer_base.py   dragonfly(Download)
 
 
from dragonfly.grammar.elements import (Alternative, Sequence, Optional,
                                        Compound, ListRef)
from dragonfly.grammar.list     import  List
class IntegerBase(Alternative):
 
    _builders = ()
 
    def __init__(self, name=None, min=None, max=None):
            children = [Compound(spec=spec, value=value)
                        for spec, value in elements]
            return Alternative(children)
        elif len(elements) == 1:
            return Compound(spec=elements[0][0], value=elements[0][1])
            return children[0]
        else:
            return Alternative(children)
 
 
        if len(children) == 0:    return None
        elif len(children) == 1:  return children[0]
        else:                     return Alternative(children)
 
    def _build_range(self, first_multiplier, last_multiplier,

src/s/u/SublimeSpeech-HEAD/lib/dragonfly/grammar/integer_base.py   SublimeSpeech(Download)
 
 
from dragonfly.grammar.elements import (Alternative, Sequence, Optional,
                                        Compound, ListRef)
from dragonfly.grammar.list     import  List
class IntegerBase(Alternative):
 
    _builders = ()
 
    def __init__(self, name=None, min=None, max=None):
            children = [Compound(spec=spec, value=value)
                        for spec, value in elements]
            return Alternative(children)
        elif len(elements) == 1:
            return Compound(spec=elements[0][0], value=elements[0][1])
            return children[0]
        else:
            return Alternative(children)
 
 
        if len(children) == 0:    return None
        elif len(children) == 1:  return children[0]
        else:                     return Alternative(children)
 
    def _build_range(self, first_multiplier, last_multiplier,

src/d/r/dragonfly-0.6.5/dragonfly/grammar/integer_base.py   dragonfly(Download)
 
 
from dragonfly.grammar.elements import (Alternative, Sequence, Optional,
                                        Compound, ListRef)
from dragonfly.grammar.list     import  List
class IntegerBase(Alternative):
 
    _builders = ()
 
    def __init__(self, name=None, min=None, max=None):
            children = [Compound(spec=spec, value=value)
                        for spec, value in elements]
            return Alternative(children)
        elif len(elements) == 1:
            return Compound(spec=elements[0][0], value=elements[0][1])
            return children[0]
        else:
            return Alternative(children)
 
 
        if len(children) == 0:    return None
        elif len(children) == 1:  return children[0]
        else:                     return Alternative(children)
 
    def _build_range(self, first_multiplier, last_multiplier,

src/s/u/SublimeSpeech-HEAD/lib/dragonfly/language/base/digits_base.py   SublimeSpeech(Download)
 
 
from dragonfly.grammar.elements import (Alternative, Repetition, Compound)
 
 
        alternatives = [Compound(w, value=v, name=self._digit_name)
                        for w, v in pairs]
        child = Alternative(alternatives)
        Repetition.__init__(self, child, min, max, name=name)
 

src/d/r/dragonfly-0.6.5/dragonfly/language/base/digits_base.py   dragonfly(Download)
 
 
from dragonfly.grammar.elements import (Alternative, Repetition, Compound)
 
 
        alternatives = [Compound(w, value=v, name=self._digit_name)
                        for w, v in pairs]
        child = Alternative(alternatives)
        Repetition.__init__(self, child, min, max, name=name)
 

src/s/u/SublimeSpeech-HEAD/lib/dragonfly/grammar/digits_base.py   SublimeSpeech(Download)
 
 
from dragonfly.grammar.elements import (Alternative, Repetition, Compound)
 
 
        alternatives = [Compound(w, value=v, name=self._digit_name)
                        for w, v in pairs]
        child = Alternative(alternatives)
        Repetition.__init__(self, child, min, max, name=name)
 

src/d/r/dragonfly-0.6.5/dragonfly/grammar/digits_base.py   dragonfly(Download)
 
 
from dragonfly.grammar.elements import (Alternative, Repetition, Compound)
 
 
        alternatives = [Compound(w, value=v, name=self._digit_name)
                        for w, v in pairs]
        child = Alternative(alternatives)
        Repetition.__init__(self, child, min, max, name=name)
 

src/s/u/SublimeSpeech-HEAD/lib/dragonfly/all.py   SublimeSpeech(Download)
from dragonfly.grammar.rule_compound      import CompoundRule
from dragonfly.grammar.rule_mapping       import MappingRule
from dragonfly.grammar.elements           import ElementBase, Sequence, Alternative, \
                                                 Optional, Repetition, Literal, RuleRef, \
                                                 ListRef, DictListRef, Dictation, Empty, \

src/d/r/dragonfly-0.6.5/dragonfly/all.py   dragonfly(Download)
from dragonfly.grammar.rule_compound      import CompoundRule
from dragonfly.grammar.rule_mapping       import MappingRule
from dragonfly.grammar.elements           import ElementBase, Sequence, Alternative, \
                                                 Optional, Repetition, Literal, RuleRef, \
                                                 ListRef, DictListRef, Dictation, Empty, \

  1 | 2  Next