subroutineparse_textrecursiveprivate
recursive subroutine parse_text(t, parent, text)
Parse text that may hold several chunks into node parent.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| t | type(tree_t) | inout | the conversion | |
| parent | integer | in | the node | |
| text | character(len=*) | in | the text |
Calls
Source
Show the code
recursive subroutine parse_text(t, parent, text)
type(tree_t), intent(inout) :: t !! the conversion
integer, intent(in) :: parent !! the node
character(len=*), intent(in) :: text !! the text
type(string_t), allocatable :: chunks(:)
call split_chunks(text, chunks)
call parse_chunks(t, parent, chunks)
end subroutine parse_text