|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.frontend.fortran.Keywords
public final class Keywords
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 |
---|
public static final int NA
public static final int ACCESS
public static final int ALLOCATABLE
public static final int ALLOCATE
public static final int ASSIGN
public static final int BACKSPACE
public static final int BLANK
public static final int BLOCK
public static final int BLOCKDATA
public static final int CALL
public static final int CASE
public static final int CHARACTER
public static final int CLOSE
public static final int COMMON
public static final int COMPLEX
public static final int CONTAINS
public static final int CONTINUE
public static final int CYCLE
public static final int DATA
public static final int DEALLOCATE
public static final int DIMENSION
public static final int DIRECT
public static final int DO
public static final int DOUBLE
public static final int DOUBLEPRECISION
public static final int DOUBLECOMPLEX
public static final int ELEMENTAL
public static final int ELSE
public static final int ELSEIF
public static final int END
public static final int ENDBLOCKDATA
public static final int ENDDO
public static final int ENDFILE
public static final int ENDFORALL
public static final int ENDFUNCTION
public static final int ENDIF
public static final int ENDINTERFACE
public static final int ENDMODULE
public static final int ENDPROGRAM
public static final int ENDSELECT
public static final int ENDSUBROUTINE
public static final int ENDTYPE
public static final int ENDWHERE
public static final int ENTRY
public static final int EQUIVALENCE
public static final int ERR
public static final int EXIST
public static final int EXIT
public static final int EXTERNAL
public static final int FILE
public static final int FMT
public static final int FORALL
public static final int FORM
public static final int FORMAT
public static final int FORMATTED
public static final int FUNCTION
public static final int GOTO
public static final int IF
public static final int IMPLICIT
public static final int IN
public static final int INCLUDE
public static final int INOUT
public static final int INQUIRE
public static final int INTEGER
public static final int INTENT
public static final int INTERFACE
public static final int INTRINSIC
public static final int IOSTAT
public static final int KIND
public static final int LEN
public static final int LOGICAL
public static final int MODULE
public static final int NAME
public static final int NAMED
public static final int NAMELIST
public static final int NEXTREC
public static final int NONE
public static final int NULL
public static final int NULLIFY
public static final int NUMBER
public static final int OPEN
public static final int OPENED
public static final int OPTIONAL
public static final int OUT
public static final int PARAMETER
public static final int PAUSE
public static final int POINTER
public static final int PRECISION
public static final int PRINT
public static final int PRIVATE
public static final int PROGRAM
public static final int PUBLIC
public static final int PURE
public static final int READ
public static final int REAL
public static final int REC
public static final int RECL
public static final int RETURN
public static final int REWIND
public static final int SAVE
public static final int SELECT
public static final int SELECTCASE
public static final int SEQUENCE
public static final int SEQUENTIAL
public static final int STATUS
public static final int STOP
public static final int SUBROUTINE
public static final int TARGET
public static final int THEN
public static final int TO
public static final int TYPE
public static final int UNFORMATTED
public static final int UNIT
public static final int USE
public static final int WRITE
public static final int WHERE
public static final int WHILE
public static final java.lang.String[] keywords
public static final int[] keywordLengths
public static final int[] kw_f95
public static final int[] kw_module
public static final int[] kw_stmt
public static final int[] kw_f90
public static final int[] kw_extsub
public static final int[] kw_block
public static final int[] kw_main
public static final int[] kw_interface
public static final int[] kw_intsub
public static final int[] kw_ifblock
public static final int[] kw_f77
public static final int[] kw_type
public static final int[] kw_modsub
public static final int[] kw_exe
public static final int[] kw_construct
Constructor Detail |
---|
public Keywords()
Method Detail |
---|
public static int lookup(F95 f95, char[] line, int position)
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 parserline
- contains the characters containing the keywordposition
- specifies the start of the possible keyword in the line
public static int lookup(java.lang.String name, int l)
NA.
- Parameters:
name
- is the namel
- is the number of characters in name to check
public static boolean isF95(int keyword)
public static boolean isModule(int keyword)
public static boolean isStmt(int keyword)
public static boolean isF90(int keyword)
public static boolean isExtsub(int keyword)
public static boolean isBlock(int keyword)
public static boolean isMain(int keyword)
public static boolean isInterface(int keyword)
public static boolean isIntsub(int keyword)
public static boolean isIfblock(int keyword)
public static boolean isF77(int keyword)
public static boolean isType(int keyword)
public static boolean isModsub(int keyword)
public static boolean isExe(int keyword)
public static boolean isConstruct(int keyword)
public static boolean isSet(int[] flags, int keyword)
flags
- is one of the kw_
flag sets
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |