02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Language elements<br />

Source format of program file<br />

written in columns 1 to 72. The compiler treats a line containing only blank characters in<br />

columns 1 to 72 as a comment line. In addition, a line is considered to be a comment when<br />

there is an exclamation mark (!) in column 1 or in any column except column 6.<br />

Thefollowingare<strong>HP</strong>extensionstothecomment:<br />

20<br />

A line with D or d in column 1 is by default treated as a comment. The +dlines option<br />

causes the compiler to treat such lines as statements to be compiled. This extension to the<br />

comment—called debugging lines—is useful for including PRINT statements that are to be<br />

compiled during the debugging stage to display the program state.<br />

A line with a pound sign (#) character in column 1 is treated as a comment. This extension<br />

allows compilation of source files that have been preprocessed with the C preprocessor<br />

(cpp).<br />

<strong>HP</strong> <strong>Fortran</strong> allows tab formatting. That is, a tab character may be entered in the first<br />

column of a line to skip past the statement label columns. If the character following the<br />

tab character is a digit, this digit is assumed to be in column 6, the continuation indicator<br />

column. Any other character following the tab character is assumed to be in column 7, the<br />

start of a new statement. A tab character in any other column of a line is treated as a<br />

space.<br />

Chapter 2

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

Saved successfully!

Ooh no, something went wrong!