Minor parser fixes

* src/pf/parse.lua: Minor cleanups.  Fix the parse() interface.
Add pf.codegen module

* src/pf/codegen.lua: New file.
* src/Makefile: Add to tests.