scale.frontend.fortran
Class Keywords

java.lang.Object
  extended by scale.frontend.fortran.Keywords

public final class Keywords
extends java.lang.Object

This class defines the Fortran keywords. Do not edit.

Copyright 2008 by the Scale Compiler Group,
Department of Computer Science
Amherst MA. 01003, USA
All Rights Reserved.

This file is generated by the MK class.


Field Summary
static int ACCESS
           
static int ALLOCATABLE
           
static int ALLOCATE
           
static int ASSIGN
           
static int BACKSPACE
           
static int BLANK
           
static int BLOCK
           
static int BLOCKDATA
           
static int CALL
           
static int CASE
           
static int CHARACTER
           
static int CLOSE
           
static int COMMON
           
static int COMPLEX
           
static int CONTAINS
           
static int CONTINUE
           
static int CYCLE
           
static int DATA
           
static int DEALLOCATE
           
static int DIMENSION
           
static int DIRECT
           
static int DO
           
static int DOUBLE
           
static int DOUBLECOMPLEX
           
static int DOUBLEPRECISION
           
static int ELEMENTAL
           
static int ELSE
           
static int ELSEIF
           
static int END
           
static int ENDBLOCKDATA
           
static int ENDDO
           
static int ENDFILE
           
static int ENDFORALL
           
static int ENDFUNCTION
           
static int ENDIF
           
static int ENDINTERFACE
           
static int ENDMODULE
           
static int ENDPROGRAM
           
static int ENDSELECT
           
static int ENDSUBROUTINE
           
static int ENDTYPE
           
static int ENDWHERE
           
static int ENTRY
           
static int EQUIVALENCE
           
static int ERR
           
static int EXIST
           
static int EXIT
           
static int EXTERNAL
           
static int FILE
           
static int FMT
           
static int FORALL
           
static int FORM
           
static int FORMAT
           
static int FORMATTED
           
static int FUNCTION
           
static int GOTO
           
static int IF
           
static int IMPLICIT
           
static int IN
           
static int INCLUDE
           
static int INOUT
           
static int INQUIRE
           
static int INTEGER
           
static int INTENT
           
static int INTERFACE
           
static int INTRINSIC
           
static int IOSTAT
           
static int[] keywordLengths
           
static java.lang.String[] keywords
           
static int KIND
           
static int[] kw_block
          Keyword is allowed in a BLOCK DATA.
static int[] kw_construct
          Keyword may have a construct label.
static int[] kw_exe
          Keyword is an executable statement.
static int[] kw_extsub
          Keyword is allowed in an external subprogram.
static int[] kw_f77
          Keyword allowed in Fortran 77.
static int[] kw_f90
          Keyword is allowed in Fortran 90.
static int[] kw_f95
          Keyword is allowed in Fortran 95.
static int[] kw_ifblock
          Keyword is allowed in if-blocks.
static int[] kw_interface
          Keyword is allowed in an INTERFACE body.
static int[] kw_intsub
          Keyword is allowed in an internal subprogram.
static int[] kw_main
          Keyword is allowed in MAIN program.
static int[] kw_modsub
          Keyword is allowed in a MODULE subprogram.
static int[] kw_module
          Keyword is allowed in a MODULE.
static int[] kw_stmt
          Keyword can start a statement.
static int[] kw_type
          Keyword specifies a type.
static int LEN
           
static int LOGICAL
           
static int MODULE
           
static int NA
           
static int NAME
           
static int NAMED
           
static int NAMELIST
           
static int NEXTREC
           
static int NONE
           
static int NULL
           
static int NULLIFY
           
static int NUMBER
           
static int OPEN
           
static int OPENED
           
static int OPTIONAL
           
static int OUT
           
static int PARAMETER
           
static int PAUSE
           
static int POINTER
           
static int PRECISION
           
static int PRINT
           
static int PRIVATE
           
static int PROGRAM
           
static int PUBLIC
           
static int PURE
           
static int READ
           
static int REAL
           
static int REC
           
static int RECL
           
static int RETURN
           
static int REWIND
           
static int SAVE
           
static int SELECT
           
static int SELECTCASE
           
static int SEQUENCE
           
static int SEQUENTIAL
           
static int STATUS
           
static int STOP
           
static int SUBROUTINE
           
static int TARGET
           
static int THEN
           
static int TO
           
static int TYPE
           
static int UNFORMATTED
           
static int UNIT
           
static int USE
           
static int WHERE
           
static int WHILE
           
static int WRITE
           
 
Constructor Summary
Keywords()
           
 
Method Summary
static boolean isBlock(int keyword)
          Return true if the block flag is set for this keyword.
static boolean isConstruct(int keyword)
          Return true if the construct flag is set for this keyword.
static boolean isExe(int keyword)
          Return true if the exe flag is set for this keyword.
static boolean isExtsub(int keyword)
          Return true if the extsub flag is set for this keyword.
static boolean isF77(int keyword)
          Return true if the f77 flag is set for this keyword.
static boolean isF90(int keyword)
          Return true if the f90 flag is set for this keyword.
static boolean isF95(int keyword)
          Return true if the f95 flag is set for this keyword.
static boolean isIfblock(int keyword)
          Return true if the ifblock flag is set for this keyword.
static boolean isInterface(int keyword)
          Return true if the interface flag is set for this keyword.
static boolean isIntsub(int keyword)
          Return true if the intsub flag is set for this keyword.
static boolean isMain(int keyword)
          Return true if the main flag is set for this keyword.
static boolean isModsub(int keyword)
          Return true if the modsub flag is set for this keyword.
static boolean isModule(int keyword)
          Return true if the module flag is set for this keyword.
static boolean isSet(int[] flags, int keyword)
          Return true if the flag is set for this keyword.
static boolean isStmt(int keyword)
          Return true if the stmt flag is set for this keyword.
static boolean isType(int keyword)
          Return true if the type flag is set for this keyword.
static int lookup(F95 f95, char[] line, int position)
          Return the index of the keyword at the specified position.
static int lookup(java.lang.String name, int l)
          Return the index of the keyword referenced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NA

public static final int NA
See Also:
Constant Field Values

ACCESS

public static final int ACCESS
See Also:
Constant Field Values

ALLOCATABLE

public static final int ALLOCATABLE
See Also:
Constant Field Values

ALLOCATE

public static final int ALLOCATE
See Also:
Constant Field Values

ASSIGN

public static final int ASSIGN
See Also:
Constant Field Values

BACKSPACE

public static final int BACKSPACE
See Also:
Constant Field Values

BLANK

public static final int BLANK
See Also:
Constant Field Values

BLOCK

public static final int BLOCK
See Also:
Constant Field Values

BLOCKDATA

public static final int BLOCKDATA
See Also:
Constant Field Values

CALL

public static final int CALL
See Also:
Constant Field Values

CASE

public static final int CASE
See Also:
Constant Field Values

CHARACTER

public static final int CHARACTER
See Also:
Constant Field Values

CLOSE

public static final int CLOSE
See Also:
Constant Field Values

COMMON

public static final int COMMON
See Also:
Constant Field Values

COMPLEX

public static final int COMPLEX
See Also:
Constant Field Values

CONTAINS

public static final int CONTAINS
See Also:
Constant Field Values

CONTINUE

public static final int CONTINUE
See Also:
Constant Field Values

CYCLE

public static final int CYCLE
See Also:
Constant Field Values

DATA

public static final int DATA
See Also:
Constant Field Values

DEALLOCATE

public static final int DEALLOCATE
See Also:
Constant Field Values

DIMENSION

public static final int DIMENSION
See Also:
Constant Field Values

DIRECT

public static final int DIRECT
See Also:
Constant Field Values

DO

public static final int DO
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

DOUBLEPRECISION

public static final int DOUBLEPRECISION
See Also:
Constant Field Values

DOUBLECOMPLEX

public static final int DOUBLECOMPLEX
See Also:
Constant Field Values

ELEMENTAL

public static final int ELEMENTAL
See Also:
Constant Field Values

ELSE

public static final int ELSE
See Also:
Constant Field Values

ELSEIF

public static final int ELSEIF
See Also:
Constant Field Values

END

public static final int END
See Also:
Constant Field Values

ENDBLOCKDATA

public static final int ENDBLOCKDATA
See Also:
Constant Field Values

ENDDO

public static final int ENDDO
See Also:
Constant Field Values

ENDFILE

public static final int ENDFILE
See Also:
Constant Field Values

ENDFORALL

public static final int ENDFORALL
See Also:
Constant Field Values

ENDFUNCTION

public static final int ENDFUNCTION
See Also:
Constant Field Values

ENDIF

public static final int ENDIF
See Also:
Constant Field Values

ENDINTERFACE

public static final int ENDINTERFACE
See Also:
Constant Field Values

ENDMODULE

public static final int ENDMODULE
See Also:
Constant Field Values

ENDPROGRAM

public static final int ENDPROGRAM
See Also:
Constant Field Values

ENDSELECT

public static final int ENDSELECT
See Also:
Constant Field Values

ENDSUBROUTINE

public static final int ENDSUBROUTINE
See Also:
Constant Field Values

ENDTYPE

public static final int ENDTYPE
See Also:
Constant Field Values

ENDWHERE

public static final int ENDWHERE
See Also:
Constant Field Values

ENTRY

public static final int ENTRY
See Also:
Constant Field Values

EQUIVALENCE

public static final int EQUIVALENCE
See Also:
Constant Field Values

ERR

public static final int ERR
See Also:
Constant Field Values

EXIST

public static final int EXIST
See Also:
Constant Field Values

EXIT

public static final int EXIT
See Also:
Constant Field Values

EXTERNAL

public static final int EXTERNAL
See Also:
Constant Field Values

FILE

public static final int FILE
See Also:
Constant Field Values

FMT

public static final int FMT
See Also:
Constant Field Values

FORALL

public static final int FORALL
See Also:
Constant Field Values

FORM

public static final int FORM
See Also:
Constant Field Values

FORMAT

public static final int FORMAT
See Also:
Constant Field Values

FORMATTED

public static final int FORMATTED
See Also:
Constant Field Values

FUNCTION

public static final int FUNCTION
See Also:
Constant Field Values

GOTO

public static final int GOTO
See Also:
Constant Field Values

IF

public static final int IF
See Also:
Constant Field Values

IMPLICIT

public static final int IMPLICIT
See Also:
Constant Field Values

IN

public static final int IN
See Also:
Constant Field Values

INCLUDE

public static final int INCLUDE
See Also:
Constant Field Values

INOUT

public static final int INOUT
See Also:
Constant Field Values

INQUIRE

public static final int INQUIRE
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

INTENT

public static final int INTENT
See Also:
Constant Field Values

INTERFACE

public static final int INTERFACE
See Also:
Constant Field Values

INTRINSIC

public static final int INTRINSIC
See Also:
Constant Field Values

IOSTAT

public static final int IOSTAT
See Also:
Constant Field Values

KIND

public static final int KIND
See Also:
Constant Field Values

LEN

public static final int LEN
See Also:
Constant Field Values

LOGICAL

public static final int LOGICAL
See Also:
Constant Field Values

MODULE

public static final int MODULE
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

NAMED

public static final int NAMED
See Also:
Constant Field Values

NAMELIST

public static final int NAMELIST
See Also:
Constant Field Values

NEXTREC

public static final int NEXTREC
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

NULL

public static final int NULL
See Also:
Constant Field Values

NULLIFY

public static final int NULLIFY
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

OPEN

public static final int OPEN
See Also:
Constant Field Values

OPENED

public static final int OPENED
See Also:
Constant Field Values

OPTIONAL

public static final int OPTIONAL
See Also:
Constant Field Values

OUT

public static final int OUT
See Also:
Constant Field Values

PARAMETER

public static final int PARAMETER
See Also:
Constant Field Values

PAUSE

public static final int PAUSE
See Also:
Constant Field Values

POINTER

public static final int POINTER
See Also:
Constant Field Values

PRECISION

public static final int PRECISION
See Also:
Constant Field Values

PRINT

public static final int PRINT
See Also:
Constant Field Values

PRIVATE

public static final int PRIVATE
See Also:
Constant Field Values

PROGRAM

public static final int PROGRAM
See Also:
Constant Field Values

PUBLIC

public static final int PUBLIC
See Also:
Constant Field Values

PURE

public static final int PURE
See Also:
Constant Field Values

READ

public static final int READ
See Also:
Constant Field Values

REAL

public static final int REAL
See Also:
Constant Field Values

REC

public static final int REC
See Also:
Constant Field Values

RECL

public static final int RECL
See Also:
Constant Field Values

RETURN

public static final int RETURN
See Also:
Constant Field Values

REWIND

public static final int REWIND
See Also:
Constant Field Values

SAVE

public static final int SAVE
See Also:
Constant Field Values

SELECT

public static final int SELECT
See Also:
Constant Field Values

SELECTCASE

public static final int SELECTCASE
See Also:
Constant Field Values

SEQUENCE

public static final int SEQUENCE
See Also:
Constant Field Values

SEQUENTIAL

public static final int SEQUENTIAL
See Also:
Constant Field Values

STATUS

public static final int STATUS
See Also:
Constant Field Values

STOP

public static final int STOP
See Also:
Constant Field Values

SUBROUTINE

public static final int SUBROUTINE
See Also:
Constant Field Values

TARGET

public static final int TARGET
See Also:
Constant Field Values

THEN

public static final int THEN
See Also:
Constant Field Values

TO

public static final int TO
See Also:
Constant Field Values

TYPE

public static final int TYPE
See Also:
Constant Field Values

UNFORMATTED

public static final int UNFORMATTED
See Also:
Constant Field Values

UNIT

public static final int UNIT
See Also:
Constant Field Values

USE

public static final int USE
See Also:
Constant Field Values

WRITE

public static final int WRITE
See Also:
Constant Field Values

WHERE

public static final int WHERE
See Also:
Constant Field Values

WHILE

public static final int WHILE
See Also:
Constant Field Values

keywords

public static final java.lang.String[] keywords

keywordLengths

public static final int[] keywordLengths

kw_f95

public static final int[] kw_f95
Keyword is allowed in Fortran 95.


kw_module

public static final int[] kw_module
Keyword is allowed in a MODULE.


kw_stmt

public static final int[] kw_stmt
Keyword can start a statement.


kw_f90

public static final int[] kw_f90
Keyword is allowed in Fortran 90.


kw_extsub

public static final int[] kw_extsub
Keyword is allowed in an external subprogram.


kw_block

public static final int[] kw_block
Keyword is allowed in a BLOCK DATA.


kw_main

public static final int[] kw_main
Keyword is allowed in MAIN program.


kw_interface

public static final int[] kw_interface
Keyword is allowed in an INTERFACE body.


kw_intsub

public static final int[] kw_intsub
Keyword is allowed in an internal subprogram.


kw_ifblock

public static final int[] kw_ifblock
Keyword is allowed in if-blocks.


kw_f77

public static final int[] kw_f77
Keyword allowed in Fortran 77.


kw_type

public static final int[] kw_type
Keyword specifies a type.


kw_modsub

public static final int[] kw_modsub
Keyword is allowed in a MODULE subprogram.


kw_exe

public static final int[] kw_exe
Keyword is an executable statement.


kw_construct

public static final int[] kw_construct
Keyword may have a construct label.

Constructor Detail

Keywords

public Keywords()
Method Detail

lookup

public static int lookup(F95 f95,
                         char[] line,
                         int position)
Return the index of the keyword at the specified position. If no keyword is found, NA is returned. The scan stops at the end of the keyword. The f95.setColumn(position) method is called to update the scan position.

Parameters:
f95 - is the parser
line - contains the characters containing the keyword
position - specifies the start of the possible keyword in the line

lookup

public static int lookup(java.lang.String name,
                         int l)
Return the index of the keyword referenced. If the name is not akeyword, return NA.

Parameters:
name - is the name
l - is the number of characters in name to check

isF95

public static boolean isF95(int keyword)
Return true if the f95 flag is set for this keyword. Keyword is allowed in Fortran 95.


isModule

public static boolean isModule(int keyword)
Return true if the module flag is set for this keyword. Keyword is allowed in a MODULE.


isStmt

public static boolean isStmt(int keyword)
Return true if the stmt flag is set for this keyword. Keyword can start a statement.


isF90

public static boolean isF90(int keyword)
Return true if the f90 flag is set for this keyword. Keyword is allowed in Fortran 90.


isExtsub

public static boolean isExtsub(int keyword)
Return true if the extsub flag is set for this keyword. Keyword is allowed in an external subprogram.


isBlock

public static boolean isBlock(int keyword)
Return true if the block flag is set for this keyword. Keyword is allowed in a BLOCK DATA.


isMain

public static boolean isMain(int keyword)
Return true if the main flag is set for this keyword. Keyword is allowed in MAIN program.


isInterface

public static boolean isInterface(int keyword)
Return true if the interface flag is set for this keyword. Keyword is allowed in an INTERFACE body.


isIntsub

public static boolean isIntsub(int keyword)
Return true if the intsub flag is set for this keyword. Keyword is allowed in an internal subprogram.


isIfblock

public static boolean isIfblock(int keyword)
Return true if the ifblock flag is set for this keyword. Keyword is allowed in if-blocks.


isF77

public static boolean isF77(int keyword)
Return true if the f77 flag is set for this keyword. Keyword allowed in Fortran 77.


isType

public static boolean isType(int keyword)
Return true if the type flag is set for this keyword. Keyword specifies a type.


isModsub

public static boolean isModsub(int keyword)
Return true if the modsub flag is set for this keyword. Keyword is allowed in a MODULE subprogram.


isExe

public static boolean isExe(int keyword)
Return true if the exe flag is set for this keyword. Keyword is an executable statement.


isConstruct

public static boolean isConstruct(int keyword)
Return true if the construct flag is set for this keyword. Keyword may have a construct label.


isSet

public static boolean isSet(int[] flags,
                            int keyword)
Return true if the flag is set for this keyword.

Parameters:
flags - is one of the kw_ flag sets