parsing basic program