typescan_tprivate
Reading an expression.
Components
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| kind | integer | T_END | the kind of the current token | |
| number | integer | 0 | the value of an integer token | |
| pos | integer | 1 | where the next token starts | |
| text | character(len=:) | allocatable | the expression | |
| word | character(len=:) | allocatable | the current token |
Source
Show the code
type :: scan_t
!! Reading an expression.
character(len=:), allocatable :: text !! the expression
integer :: pos = 1 !! where the next token starts
integer :: kind = T_END !! the kind of the current token
character(len=:), allocatable :: word !! the current token
integer :: number = 0 !! the value of an integer token
end type scan_t