Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | line | |||
integer, | intent(inout) | :: | pos | |||
type(token_type), | intent(inout) | :: | token | |||
integer, | intent(out) | :: | val | |||
integer, | intent(out) | :: | iostat | |||
character(len=:), | intent(out), | optional, | allocatable | :: | iomsg |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | line | |||
integer, | intent(inout) | :: | pos | |||
type(token_type), | intent(inout) | :: | token | |||
real(kind=wp), | intent(out) | :: | val | |||
integer, | intent(out) | :: | iostat | |||
character(len=:), | intent(out), | optional, | allocatable | :: | iomsg |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | line | |||
type(token_type), | intent(in) | :: | token | |||
integer, | intent(out) | :: | val | |||
integer, | intent(out) | :: | iostat | |||
character(len=:), | intent(out), | optional, | allocatable | :: | iomsg |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | line | |||
type(token_type), | intent(in) | :: | token | |||
real(kind=wp), | intent(out) | :: | val | |||
integer, | intent(out) | :: | iostat | |||
character(len=:), | intent(out), | optional, | allocatable | :: | iomsg |
Text token
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | first |
Begin of sequence |
|||
integer, | public | :: | last |
End of sequence |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
Represent an integer as character sequence.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | width |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
Formatted IO unit |
||
character(len=:), | intent(out), | allocatable | :: | line |
Line to read |
|
integer, | intent(out) | :: | iostat |
Status of operation |
||
character(len=:), | optional, | allocatable | :: | iomsg |
Error message |
Create new IO error
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(error_type), | intent(out), | allocatable | :: | error |
Error handler |
|
character(len=*), | intent(in) | :: | message |
Main error message |
||
character(len=*), | intent(in) | :: | source1 |
String representing the offending input |
||
character(len=*), | intent(in) | :: | source2 |
String representing the offending input |
||
type(token_type), | intent(in) | :: | token1 |
Last processed token |
||
type(token_type), | intent(in) | :: | token2 |
Last processed token |
||
character(len=*), | intent(in), | optional | :: | filename |
Name of the input file |
|
integer, | intent(in), | optional | :: | line1 |
Line number |
|
integer, | intent(in), | optional | :: | line2 |
Line number |
|
character(len=*), | intent(in), | optional | :: | label1 |
Label of the offending statement |
|
character(len=*), | intent(in), | optional | :: | label2 |
Label of the offending statement |
Create new IO error
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(error_type), | intent(out), | allocatable | :: | error |
Error handler |
|
character(len=*), | intent(in) | :: | message |
Main error message |
||
character(len=*), | intent(in) | :: | source |
String representing the offending input |
||
type(token_type), | intent(in) | :: | token |
Last processed token |
||
character(len=*), | intent(in), | optional | :: | filename |
Name of the input file |
|
integer, | intent(in), | optional | :: | line |
Line number |
|
character(len=*), | intent(in), | optional | :: | label |
Label of the offending statement |
Convenience function to read a line and update associated descriptors
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
Formatted IO unit |
||
character(len=:), | intent(out), | allocatable | :: | line |
Line to read |
|
integer, | intent(out) | :: | pos |
Current position in line |
||
integer, | intent(inout) | :: | lnum |
Current line number |
||
integer, | intent(out) | :: | iostat |
Status of operation |
||
character(len=:), | optional, | allocatable | :: | iomsg |
Error message |
Advance pointer to next text token
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String to check |
||
integer, | intent(inout) | :: | pos |
Current position in string |
||
type(token_type), | intent(out) | :: | token |
Token found |