Index can be determined through the list of seen leaf words when it comes to parse trees.
Removed extraneous parser