Abstracted away token iteration logic in abstract parser.