new_lexer_from_string Subroutine

public subroutine new_lexer_from_string(lexer, string)

Create a new instance of a lexer by reading from a string.

Arguments

Type IntentOptional Attributes Name
type(json_lexer), intent(out) :: lexer

Instance of the lexer

character(len=*), intent(in) :: string

String to read from


Source Code

subroutine new_lexer_from_string(lexer, string)
   !> Instance of the lexer
   type(json_lexer), intent(out) :: lexer
   !> String to read from
   character(len=*), intent(in) :: string

   lexer%chunk = string
end subroutine new_lexer_from_string