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

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)

src/9/m/9ML-0.1.0/nineml/abstraction_layer/component/parse/expr_parse.py   9ML(Download)
    def parse(self,expr):
        from nineml.abstraction_layer.component.parse import NineMLMathParseError
        self.names = []
        self.funcs = []
        try:
            t.value = float(t.value)
        except ValueError:
            from nineml.abstraction_layer.component.parse import NineMLMathParseError
            raise NineMLMathParseError, "Invalid number %s" % t.value
        return t
    def t_error(self, t):
        from nineml.abstraction_layer.component.parse import NineMLMathParseError
        raise NineMLMathParseError, "Illegal character '%s' in '%s'" % (t.value[0],t)
 
    precedence = (
    def p_error(self, p):
        from nineml.abstraction_layer.component.parse import NineMLMathParseError
        if p:
            raise NineMLMathParseError, "Syntax error at '%s'" % p.value
        else:

src/9/m/9ML-0.1.0/test/unit/nineml_test/abstraction_layer/component/dynamics_test.py   9ML(Download)
    def test_trigger(self):
        from nineml.abstraction_layer.component import On, OnCondition, OnEvent
        from nineml.abstraction_layer.component import OutputEvent
        from nineml.exceptions import NineMLRuntimeError
        from nineml.abstraction_layer.component.parse import NineMLMathParseError 
    def test_src_port_name(self):
        from nineml.abstraction_layer.component import On, OnCondition, OnEvent
        from nineml.abstraction_layer.component import OutputEvent
        from nineml.exceptions import NineMLRuntimeError
        from nineml.abstraction_layer.component.parse import NineMLMathParseError