Append tokens unchanged.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(writer_t), | intent(inout) | :: | w |
the output and the alignment state |
||
| character(len=*), | intent(in) | :: | src |
the source text |
||
| type(token_list_t), | intent(in) | :: | tokens |
its tokens |
||
| integer, | intent(in) | :: | first |
the tokens |
||
| integer, | intent(in) | :: | last |
the tokens |
subroutine emit_range(w, src, tokens, first, last) !! Append tokens unchanged. type(writer_t), intent(inout) :: w !! the output and the alignment state character(len=*), intent(in) :: src !! the source text type(token_list_t), intent(in) :: tokens !! its tokens integer, intent(in) :: first, last !! the tokens `first:last` to append integer :: j do j = first, last call put(w, token_text(src, tokens%tok(j))) end do end subroutine emit_range