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.

Contents<br />

1. Introduction to <strong>HP</strong> <strong>Fortran</strong><br />

<strong>HP</strong><strong>Fortran</strong>features...................................................... 3<br />

Sourceformat ......................................................... 3<br />

Datatypes............................................................ 3<br />

Pointers.............................................................. 3<br />

Arrays ............................................................... 4<br />

Controlconstructs...................................................... 4<br />

Operators............................................................. 4<br />

Procedures............................................................ 5<br />

Modules.............................................................. 5<br />

I/Ofeatures........................................................... 5<br />

Intrinsics............................................................. 6<br />

2. Language elements<br />

Characterset ........................................................... 9<br />

Lexicaltokens.......................................................... 10<br />

Names................................................................ 11<br />

Programstructure...................................................... 12<br />

Statementlabels ....................................................... 13<br />

Statements............................................................ 14<br />

Sourceformatofprogramfile............................................. 16<br />

Freesourceform...................................................... 16<br />

Fixedsourceform..................................................... 18<br />

INCLUDEline......................................................... 21<br />

3. Data types and data objects<br />

Intrinsicdatatypes ..................................................... 25<br />

Typedeclarationforintrinsictypes....................................... 27<br />

Implicittyping........................................................ 31<br />

Constants ........................................................... 32<br />

Charactersubstrings .................................................. 38<br />

Characterstringsasautomaticdataobjects................................ 39<br />

Derivedtypes.......................................................... 41<br />

Definingaderivedtype ................................................ 41<br />

Sequencederivedtype ................................................. 43<br />

v

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

Saved successfully!

Ooh no, something went wrong!