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

All Samples(42)  |  Call(38)  |  Derive(0)  |  Import(4)

src/s/u/SublimeSpeech-HEAD/lib/dragonfly/engines/compiler_natlink.py   SublimeSpeech(Download)
 
import struct
from dragonfly.engines.compiler_base import CompilerBase, CompilerError
 
 
        # Make sure no rule is being defined at the moment.
        if self._current_rule_name:
            raise CompilerError("Cannot start defining a rule while" \
                               "a different rule is already being defined.")
 
        # Make sure a rule is being defined at the moment.
        if not self._current_rule_name:
            raise CompilerError("Cannot end defining a rule when" \
                               " no rule is being defined.")
 
        # Make sure that no other rule has been defined with this name.
        if self._current_rule_name in self._rule_definitions:
            raise CompilerError("Rule '%s' defined more than once." % \
    def start_sequence(self):
        """start a sequence structure in the rule currently being defined."""
        # Make sure a rule is being defined at the moment.
        if not self._current_rule_name:
            raise CompilerError("Cannot start a sequence because" \

src/d/r/dragonfly-0.6.5/dragonfly/engines/compiler_natlink.py   dragonfly(Download)
 
import struct
from dragonfly.engines.compiler_base import CompilerBase, CompilerError
 
 
        # Make sure no rule is being defined at the moment.
        if self._current_rule_name:
            raise CompilerError("Cannot start defining a rule while" \
                               "a different rule is already being defined.")
 
        # Make sure a rule is being defined at the moment.
        if not self._current_rule_name:
            raise CompilerError("Cannot end defining a rule when" \
                               " no rule is being defined.")
 
        # Make sure that no other rule has been defined with this name.
        if self._current_rule_name in self._rule_definitions:
            raise CompilerError("Rule '%s' defined more than once." % \
    def start_sequence(self):
        """start a sequence structure in the rule currently being defined."""
        # Make sure a rule is being defined at the moment.
        if not self._current_rule_name:
            raise CompilerError("Cannot start a sequence because" \

src/s/u/SublimeSpeech-HEAD/lib/dragonfly/engines/compiler_sapi5.py   SublimeSpeech(Download)
from win32com.client import constants
 
from dragonfly.engines.compiler_base import CompilerBase, CompilerError
 
 
            rule_handle = grammar_handle.Rules.FindRule(element.rule.name)
            if not rule_handle:
                raise CompilerError("%s: Failed to create rule dependency: %r."
                                    % (self, element.rule.name))
 

src/d/r/dragonfly-0.6.5/dragonfly/engines/compiler_sapi5.py   dragonfly(Download)
from win32com.client import constants
 
from dragonfly.engines.compiler_base import CompilerBase, CompilerError
 
 
            rule_handle = grammar_handle.Rules.FindRule(element.rule.name)
            if not rule_handle:
                raise CompilerError("%s: Failed to create rule dependency: %r."
                                    % (self, element.rule.name))