Token text, as it appears in the source.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | src |
the source the token was read from |
||
| type(token_t), | intent(in) | :: | t |
a token of |
pure function token_text(src, t) result(text) !! Token text, as it appears in the source. character(len=*), intent(in) :: src !! the source the token was read from type(token_t), intent(in) :: t !! a token of `src` character(len=t%last - t%first + 1) :: text text = src(t%first:t%last) end function token_text