hmt parser: add main program
Merge