Creating a collector for the parser

I dont know if this is standard but I feel like I could get something generating very soon with this pattern. At some point I also feel this needs to be reworked an optimized.