token_t Derived Type

type, public :: token_t

One token: a byte range of the source with its kind.


Inherited by

type~~token_t~~InheritedByGraph type~token_t token_t type~token_list_t token_list_t type~token_list_t->type~token_t tok type~source_t source_t type~source_t->type~token_list_t tokens

Components

Type Visibility Attributes Name Initial
integer, public :: first = 1

first byte in the source

logical, public :: glued = .false.

joined to the previous code token across a line break, with no blank allowed between

integer, public :: kind = 0

one of the TK_* constants

integer, public :: last = 0

last byte in the source

integer, public :: line = 1

line of the first byte

integer, public :: sub = 0

sub-kind (CM_, CT_, STR_*)


Source Code

type, public :: token_t
    !! One token: a byte range of the source with its kind.
    integer :: kind = 0       !! one of the TK_* constants
    integer :: first = 1      !! first byte in the source
    integer :: last = 0       !! last byte in the source
    integer :: line = 1       !! line of the first byte
    integer :: sub = 0        !! sub-kind (CM_*, CT_*, STR_*)
    logical :: glued = .false. !! joined to the previous code token across a line break, with no blank allowed between
end type token_t