source_t Derived Type

type, public :: source_t

A source text with its tokens and statements.


Inherits

type~~source_t~~InheritsGraph type~source_t source_t type~statement_list_t statement_list_t type~source_t->type~statement_list_t stmts type~token_list_t token_list_t type~source_t->type~token_list_t tokens type~statement_t statement_t type~statement_list_t->type~statement_t s type~token_t token_t type~token_list_t->type~token_t tok

Components

Type Visibility Attributes Name Initial
logical, public, allocatable :: keep(:)

for each item: protected by a formatter directive, so it is written as it is

type(statement_list_t), public :: stmts

its statements and standalone lines (items)

character(len=:), public, allocatable :: text

the text

type(token_list_t), public :: tokens

its tokens


Source Code

type, public :: source_t
    !! A source text with its tokens and statements.
    character(len=:), allocatable :: text   !! the text
    type(token_list_t) :: tokens            !! its tokens
    type(statement_list_t) :: stmts         !! its statements and standalone lines (items)
    logical, allocatable :: keep(:)         !! for each item: protected by a formatter directive, so it
                                            !! is written as it is
end type source_t