24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> Extensions to Standard <strong>FORTRAN</strong> <strong>77</strong><br />

A. <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> Extensions to<br />

Standard <strong>FORTRAN</strong> <strong>77</strong><br />

This appendix summarizes the extensions supported by <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong>.<br />

1. The INCLUDE statement for embedding source from another file is supported.<br />

INCLUDE ’SRC’<br />

2. Symbolic names are unique up to 32 characters. Also, ’$’, ’_’, and lowercase letters are allowed<br />

in symbolic names.<br />

3. Lowercase and uppercase letters are treated in the same way except in:<br />

1. character and hollerith constants<br />

2. apostrophe and H edit descriptors<br />

4. End-of-line comments are permitted.<br />

PRINT *, ’Hello world’ ! print ’Hello World’<br />

5. The IMPLICIT NONE statement is supported.<br />

6. An asterisk enclosed in parentheses is allowed with the type CHARACTER when specified in an<br />

IMPLICIT statement.<br />

IMPLICIT CHARACTER*(*) (Z)<br />

7. Length specifiers are allowed with types specified in IMPLICIT statements.<br />

IMPLICIT INTEGER*2 (I-N)<br />

8. Length specifiers are allowed with type specification statements.<br />

LOGICAL*1, LOGICAL*4<br />

INTEGER*1, INTEGER*2, INTEGER*4<br />

REAL*4, REAL*8<br />

COMPLEX*8, COMPLEX*16<br />

Length specifiers are also allowed with the type specified in FUNCTION statements.<br />

COMPLEX*16 FUNCTION ZADD( X, Y )<br />

9. Length specifiers are allowed with symbol names.<br />

INTEGER I*2, A*2(10), B(20)*2<br />

COMPLEX FUNCTION ZADD*16( X, Y )<br />

<strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> Extensions to Standard <strong>FORTRAN</strong> <strong>77</strong> 285

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

Saved successfully!

Ooh no, something went wrong!