typenode_tprivate
A piece of the document.
Components
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| block | type(block_t) | allocatable | what only directives have, as most nodes are text | |
| expr | integer | 0 | the expression | |
| kind | integer | 0 | what it is | |
| name | integer | 0 | the macro | |
| on_lines | logical | .false. | true for line directives, which end their line | |
| source | character(len=:) | allocatable | the expression as written, for messages | |
| text | character(len=:) | allocatable | the text |
Source
Show the code
type :: node_t
!! A piece of the document.
integer :: kind = 0 !! what it is
logical :: on_lines = .false. !! true for line directives, which end their line
integer :: expr = 0 !! the expression
integer :: name = 0 !! the macro
character(len=:), allocatable :: text !! the text
character(len=:), allocatable :: source !! the expression as written, for messages
type(block_t), allocatable :: block !! what only directives have, as most nodes are text
end type node_t