Module for JavaScript syntax generation.
Generic function that returns JavaScript constant declaration from given name and value as allocatable string.
Returns JavaScript constant declaration of 4-byte integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Constant name. |
||
integer(kind=i4), | intent(in) | :: | value |
Constant value. |
JavaScript constant.
Returns JavaScript constant declaration of 8-byte integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Constant name. |
||
integer(kind=i8), | intent(in) | :: | value |
Constant value. |
JavaScript constant.
Returns JavaScript constant declaration of 4-byte real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Constant name. |
||
real(kind=r4), | intent(in) | :: | value |
Constant value. |
JavaScript constant.
Returns JavaScript constant declaration of 8-byte real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Constant name. |
||
real(kind=r8), | intent(in) | :: | value |
Constant value. |
JavaScript constant.
Returns JavaScript constant declaration of string. The function adds quotation marks to the value by default.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Constant name. |
||
character(len=*), | intent(in) | :: | value |
Constant value. |
||
logical, | intent(in), | optional | :: | quote |
Add quotation marks. |
JavaScript constant.