parser.py: Intermediate work on fixing repeat statement