Find Jobs
Hire Freelancers

change spacing of source code

$25-30 USD

Completed
Posted about 19 years ago

$25-30 USD

Paid on delivery
Here are the rules I would like implemented. (1) A Fortran conditional statement begins with IF, ELSEIF, or ELSE IF, case insensitive (treat "if" and "If" the same as "IF", etc). Leave exactly one space before and after the conditional clause of an if statement, so that IF(MN.GT.2)GO TO 10 ELSEIF (MN.GT.2)GO TO 10 ELSE IF (MN.GT.2)GO TO 10 become IF (MN.GT.2) GO TO 10 ELSEIF (MN.GT.2) GO TO 10 ELSE IF (MN.GT.2) GO TO 10 (2) In a DO statement (beginning with DO, leave exactly one space after the DO, one space before and after the equal sign, and no spaces after that, so DO month = 1, 12, 1 DO month = 1, 12 become DO month = 1,12,1 DO month = 1,12 (3) Put a space before and after the first equal sign in an assignment, so a=b+c becomes a = b+c (4) Remove all spaces just after an opening parenthesis (, brace {, or bracket [ or just before the closing characters ) } ] so that day = ( date + n1 + n2 - ( yr / 100 ) + (yr / 400 ) - 1) become day = (date + n1 + n2 - (yr / 100) + (yr / 400) - 1) Put ([{ and )]} in lists that I can modify. (5) Remove spaces both before and after the characters * and / , so that y = x * y + z / a becomes y = x*y + z/a Put * and / in a list so that I can easily change. (6) Do not change any text that is within single or double quotes. (7) Do not change the column in which any line of code starts. The Perl or Python script should read the file name from standard input and write to standard output. ## Deliverables Perl code that works with Perl 5.8.6 or Python code that works with Python 2.4. ## Platform Windows XP
Project ID: 3656189

About the project

3 proposals
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$17 USD in 5 days
5.0 (4 reviews)
1.8
1.8
3 freelancers are bidding on average $23 USD for this job
User Avatar
See private message.
$25.50 USD in 5 days
4.9 (59 reviews)
5.9
5.9
User Avatar
See private message.
$25.50 USD in 5 days
5.0 (120 reviews)
5.2
5.2

About the client

Flag of UNITED STATES
United States
5.0
16
Member since Jun 3, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.