initial implementation of grotop parser