Rewrite POPCORN parser for the grappa framework.

Change-Id: Ib8b7e948b9c80a914c7818f833e2616a92bf72bb