Added rules to Parser which forbid procedure delcarations inside of loops and reuse of procedure names.