09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Programming Commands <strong>XENIX</strong> Programming<br />

ratfor - Converts Rational FORTRAN into standard FORTRAN.<br />

Syntax<br />

ratfor [ option ... ] [ filename ... ]<br />

Description<br />

ratfor converts a rational dialect of FORTRAN into ordinary FORTRAN. ratfor<br />

provides control flow constructs essentially identical to those in C:<br />

statement grouping:<br />

{ statement; statement; statement }<br />

decision making:<br />

loops:<br />

if (condition) statement [ else statement ]<br />

swi<strong>tc</strong>h (integer value) {<br />

case integer: statement<br />

}<br />

[default: ] statement<br />

while (condition) statement<br />

for (expression; condition; expression) statement<br />

do limits statement<br />

repeat statement [ until (condition) ]<br />

break [n]<br />

next [n]<br />

and some additional syntax to make programs easier to read and write:<br />

Free form input:<br />

Comments:<br />

8-102<br />

multi ple statements/l ine; automatic continuation<br />

#this is a comment

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!