~habnabit/parsley/parser-protocol

« back to all changes in this revision

Viewing changes to parsley.py

  • Committer: Allen Short
  • Date: 2012-09-22 06:14:26 UTC
  • Revision ID: washort@divmod.com-20120922061426-7syia6oc9w64do19
backstop error formatting a little more

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
                   subclassing. If False, return a wrapper with the
18
18
                   friendly API.
19
19
    """
20
 
    try:
21
 
        g = BootOMetaGrammar.makeGrammar(source, bindings, name=name)
22
 
    except ParseError, p:
23
 
        print p.formatError(source)
24
 
        raise
 
20
    g = BootOMetaGrammar.makeGrammar(source, bindings, name=name)
25
21
    return wrapGrammar(g)
26
22
 
27
23
def wrapGrammar(g):