One token: a byte range of the source with its kind.
| 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_*) |
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