A source text with its tokens and statements.
| 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 |
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