Mercurial > lcfOS
comparison python/yacc.py @ 342:86b02c98a717 devel
Moved target directory
author | Windel Bouwman |
---|---|
date | Sat, 01 Mar 2014 15:40:31 +0100 |
parents | c7cc54c0dfdf |
children | d2ddfe134c48 |
comparison
equal
deleted
inserted
replaced
341:4d204f6f7d4e | 342:86b02c98a717 |
---|---|
284 | 284 |
285 parser_mod = types.ModuleType('generated_parser') | 285 parser_mod = types.ModuleType('generated_parser') |
286 exec(ob.getvalue(), parser_mod.__dict__) | 286 exec(ob.getvalue(), parser_mod.__dict__) |
287 return parser_mod | 287 return parser_mod |
288 | 288 |
289 | |
289 def main(args): | 290 def main(args): |
290 src = args.source.read() | 291 src = args.source.read() |
291 args.source.close() | 292 args.source.close() |
292 | 293 |
293 # Construction of generator parts: | 294 # Construction of generator parts: |