'class HardwareSerial' has no member named 'parse'

int A=5;
int B=4;
int C=3;
int D=2;

int t=6;
int h=4;
int DS=1;
int DP=2;
int WSTEP=510;
int FSTEP=510;
int DSTEP=510;
int DPSTEP=510;
int ROT=0;
int pause=250;

void setup() {
pinMode(A,OUTPUT);
pinMode(B,OUTPUT);
pinMode(C,OUTPUT);
pinMode(D,OUTPUT);
Serial.begin(9600);

}
void loop() {
if (Serial.available());
ROT=Serial.parse int ;
for (CMD=Serial.parse() );
(switch (CMD))
}

getting error
'class HardwareSerial' has no member named 'parse'

thank you in advance for your help

That's because the HardwareSerial class has no member function named "parse". So, what's your question?

Regards,
Ray L.

It appears you're maybe trying to use Serial.parseInt(). Please spend some time studying the documentation for this function:

as well as the documentation for for():

and switch:

You can't just invent your own syntax. Take a little time to learn the basics of the C++ language used in Arduino sketches. It will save you a lot of time and frustration in the end.

im sorry, i am a father trying to help my young boy with his school project. i will read up on those things. thank you