Implement parser().

[CAUTION] Not tested yet....
Add a skeleton for to_hash().