Lowercase text of code token j, or '' outside the statement.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(statement_view_t), | intent(in) | :: | v |
the statement |
||
| integer, | intent(in) | :: | j |
index into |
pure function view_word(v, j) result(w) !! Lowercase text of code token `j`, or `''` outside the statement. class(statement_view_t), intent(in) :: v !! the statement integer, intent(in) :: j !! index into `v%code(:)` character(len=:), allocatable :: w if (j < 1 .or. j > v%n) then w = '' else w = v%low(v%lo(j):v%hi(j)) end if end function view_word