<s> import os , sys <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . dirname ( os . path . dirname ( __file__ ) ) ) <EOL> from pymeta import builder , grammar <EOL> fp = open ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) , '<STR_LIT:wb>' ) <EOL> ometa_grammar = grammar . OMetaGrammar ( open ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) . read ( ) ) <EOL> tree = ometa_grammar . parseGrammar ( '<STR_LIT>' , builder . TreeBuilder ) <EOL> fp . write ( builder . writeBoot ( tree ) ) <EOL> fp = open ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) , '<STR_LIT:wb>' ) <EOL> ometa_grammar = grammar . OMetaGrammar ( open ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) . read ( ) ) <EOL> tree = ometa_grammar . parseGrammar ( '<STR_LIT>' , builder . TreeBuilder ) <EOL> fp . write ( builder . writeBoot ( tree ) ) </s>
