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

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Raised when a syntax error is encountered in a LaMark file
    

src/l/a/LaMark-0.2.1/lamark/tagparser.py   LaMark(Download)
    def _throw_no_match_error(self, string, n):
        print string[n]
        raise lamarksyntaxerror.LaMarkSyntaxError(
            "Malformed tag. Parsing stopped at: %s" % string[n:],
            self.tag_lineno)
        else:
            raise lamarksyntaxerror.LaMarkSyntaxError(
                    "Unexpected token: %s" % str(t_stream[1]),
                    t_stream[0].lineno)
 
            else:
                raise lamarksyntaxerror.LaMarkSyntaxError(
                        "Unexpected token: %s" % str(t_stream[1]),
                        t_stream[0].lineno)
 
            else:
                raise lamarksyntaxerror.LaMarkSyntaxError(
                        "Unexpected token: %s" % str(t_stream[1]),
                        t_stream[0].lineno)
 

src/l/a/lamark-HEAD/lamark/tagparser.py   lamark(Download)
    def _throw_no_match_error(self, string, n):
        print string[n]
        raise lamarksyntaxerror.LaMarkSyntaxError(
            "Malformed tag. Parsing stopped at: %s" % string[n:],
            self.tag_lineno)
        else:
            raise lamarksyntaxerror.LaMarkSyntaxError(
                    "Unexpected token: %s" % str(t_stream[1]),
                    t_stream[0].lineno)
 
            else:
                raise lamarksyntaxerror.LaMarkSyntaxError(
                        "Unexpected token: %s" % str(t_stream[1]),
                        t_stream[0].lineno)
 
            else:
                raise lamarksyntaxerror.LaMarkSyntaxError(
                        "Unexpected token: %s" % str(t_stream[1]),
                        t_stream[0].lineno)
 

src/l/a/LaMark-0.2.1/lamark/lmparser.py   LaMark(Download)
                    except:
                        raise lamarksyntaxerror.LaMarkSyntaxError(
                                "{%end%} tag has no matching start tag.",
                                cur_token.lineno)
                    temp_stack.append(old_tok)
        if len(bin_tag_stack) > 0:
            raise lamarksyntaxerror.LaMarkSyntaxError(
                    "Unexpected end of file. Where's the {%end%} tag?",
                    cur_token.lineno)
        # And then the stack is the AST. How cool is that?

src/l/a/lamark-HEAD/lamark/lmparser.py   lamark(Download)
                    except:
                        raise lamarksyntaxerror.LaMarkSyntaxError(
                                "{%end%} tag has no matching start tag.",
                                cur_token.lineno)
                    temp_stack.append(old_tok)
        if len(bin_tag_stack) > 0:
            raise lamarksyntaxerror.LaMarkSyntaxError(
                    "Unexpected end of file. Where's the {%end%} tag?",
                    cur_token.lineno)
        # And then the stack is the AST. How cool is that?