Internal module for dc_units. More...
Functions/Subroutines | |
| subroutine, public | dcunitssetline (line) |
| subroutine, public | dcunitsgettoken (tokentype, ivalue, dvalue, cvalue) |
Variables | |
| integer, parameter, public | s_eof = -128 |
| End of file/string symbol | |
| integer, parameter, public | s_shift = 300 |
| Shift operator symbol | |
| integer, parameter, public | s_text = 301 |
| Text/name token symbol | |
| integer, parameter, public | s_multiply = 302 |
| Multiply operator symbol | |
| integer, parameter, public | s_divide = 303 |
| Divide operator symbol | |
| integer, parameter, public | s_exponent = 304 |
| Exponent operator symbol | |
| integer, parameter, public | s_openpar = 305 |
| Open parenthesis symbol | |
| integer, parameter, public | s_closepar = 306 |
| Close parenthesis symbol | |
| integer, parameter, public | s_real = 307 |
| Real number symbol | |
| integer, parameter, public | s_integer = 308 |
| Integer number symbol | |
Internal module for dc_units.
| subroutine, public dcunits_com::dcunitsgettoken | ( | integer, intent(out) | tokentype, |
| integer, dimension(5), intent(out) | ivalue, | ||
| real(dp), intent(out) | dvalue, | ||
| character(*), intent(out) | cvalue | ||
| ) |
Get next token from input line
Scans the input line and returns the next token. Token types include operators, numbers, and text.
| [out] | tokentype | Type of the token (S_EOF, S_TEXT, etc.) |
| [out] | ivalue | Integer values array (for integer tokens) |
| [out] | dvalue | Real value (for real number tokens) |
| [out] | cvalue | Character value (token string) |
Definition at line 172 of file dcunits_com.f90.
References dc_regex::match(), s_closepar, s_divide, s_eof, s_exponent, s_integer, s_multiply, s_openpar, s_real, s_shift, and s_text.
| subroutine, public dcunits_com::dcunitssetline | ( | character(*), intent(in) | line | ) |
Set input line for scanner
Sets the input line to be scanned and resets the scanner position.
| [in] | line | Input line to scan |
Definition at line 142 of file dcunits_com.f90.
| dcunits_com::s_closepar = 306 |
Close parenthesis symbol
Definition at line 103 of file dcunits_com.f90.
| dcunits_com::s_divide = 303 |
Divide operator symbol
Definition at line 88 of file dcunits_com.f90.
| dcunits_com::s_eof = -128 |
End of file/string symbol
Definition at line 68 of file dcunits_com.f90.
| dcunits_com::s_exponent = 304 |
Exponent operator symbol
Definition at line 93 of file dcunits_com.f90.
| dcunits_com::s_integer = 308 |
Integer number symbol
Definition at line 113 of file dcunits_com.f90.
| dcunits_com::s_multiply = 302 |
Multiply operator symbol
Definition at line 83 of file dcunits_com.f90.
| dcunits_com::s_openpar = 305 |
Open parenthesis symbol
Definition at line 98 of file dcunits_com.f90.
| dcunits_com::s_real = 307 |
Real number symbol
Definition at line 108 of file dcunits_com.f90.
| dcunits_com::s_shift = 300 |
Shift operator symbol
Definition at line 73 of file dcunits_com.f90.
| dcunits_com::s_text = 301 |
Text/name token symbol
Definition at line 78 of file dcunits_com.f90.