words_t Derived Type

type, private :: words_t

The words of a statement, with combined keywords such as endif split into end, if.


Inherits

type~~words_t~~InheritsGraph type~words_t words_t type~string_t string_t type~words_t->type~string_t w

Components

Type Visibility Attributes Name Initial
integer, public :: n = 0

number of words

integer, public, allocatable :: tok(:)

index into the code token list for each word

type(string_t), public, allocatable :: w(:)

the words of the first token; the others are its code tokens


Source Code

type :: words_t
    !! The words of a statement, with combined keywords such as `endif` split into `end`, `if`.
    type(string_t), allocatable :: w(:)  !! the words of the first token; the others are its code tokens
    integer, allocatable :: tok(:)     !! index into the code token list for each word
    integer :: n = 0                   !! number of words
end type words_t