token_t Derived Type

type, public :: token_t

Type for a single mathematical token



Components

TypeVisibility AttributesNameInitial
integer, public :: t =T_NONE

Token type

real(kind=wp), public :: a =0.0_wp

Token real value (if any)

character(len=8), public :: s =''

Token label (if any)


Constructor

public interface token_t

Constructors for token_t

  • public function newToken(str) result(self)

    Constructor for token_t

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: str

    String to parse

    Return Value type(token_t)

    New token_t