Updated AGGL parser to support hierarchical rules