G
gwlemyre
I am not a PASCAL programmer and I saw this piece of code.
procedure Expression; Forward;
procedure Factor;
begin
if Look = '(' then begin
Match('(');
Expression;
Match(')');
end
else
EmitLn('MOVE #' + GetNum + ',D0');
end;
Is it valid? In particular, why are there two "procedure" statements?
Why does one of them have two names?
If it is valid, what is the C equivalent?
Thanks in advance.
procedure Expression; Forward;
procedure Factor;
begin
if Look = '(' then begin
Match('(');
Expression;
Match(')');
end
else
EmitLn('MOVE #' + GetNum + ',D0');
end;
Is it valid? In particular, why are there two "procedure" statements?
Why does one of them have two names?
If it is valid, what is the C equivalent?
Thanks in advance.