14 P2c Param

Pascal style to C-style parameters

In Pascal, fuction parameters are delimited by a semicolon. Replace it by C-style comma delimiter. Do not modify semicolons elsewhere.

void Foo(int x; float y; char z)
{
  write(x, y, z);
}

int Avg(List<int> l; int count)
{
  return Sum(l, count)/count;
}

Desired output:

void Foo(int x, float y, char z)
{
  write(x, y, z);
}

int Avg(List<int> l, int count)
{
  return Sum(l, count)/count;
}

Original source.

Last modified March 15, 2024: Parsing unit. (015098c)