<s> from lib2to3 . pgen2 . driver import load_grammar <EOL> from lib2to3 . pgen2 . driver import Driver <EOL> import os <EOL> gpath = os . path . join ( os . path . abspath ( os . path . dirname ( __file__ ) ) , "<STR_LIT>" ) <EOL> g = load_grammar ( gpath ) <EOL> def suite ( text ) : <EOL> d = Driver ( g ) <EOL> return d . parse_string ( text ) <EOL> def st2tuple ( tree , line_info = <NUM_LIT:1> ) : <EOL> return tree </s>
