Loading...
Searching...
No Matches
constants.f90
Go to the documentation of this file.
1!> @file
2!! @defgroup group_constants Constants
3!! Module defining constants for the FPX library
4!! This module provides a set of public integer constants used to enforce limits
5!! in the FPX library, such as maximum line lengths, depths, and parameter counts.
6module fpx_constants
7 implicit none; private
8
9 !> @brief Maximum allowed line length in characters, set to 1024 to handle large input strings or files
10 !! @ingroup group_constants
11 integer, parameter, public :: max_line_len = 1024
12
13 !> @brief Maximum nesting depth for structures, set to 50 to balance flexibility and stack safety
14 !! @ingroup group_constants
15 integer, parameter, public :: max_depth = 50
16
17 !> @brief Maximum nesting depth for conditional statements, set to 50 to prevent overly complex logic
18 !! @ingroup group_constants
19 integer, parameter, public :: max_cond_depth = 50
20
21 !> @brief Maximum number of tokens per line, set to 100 for efficient tokenization
22 !! @ingroup group_constants
23 integer, parameter, public :: max_tokens = 100
24
25 !> @brief Maximum number of parameters in a signature, set to 10 to ensure manageable interfaces
26 !! @ingroup group_constants
27 integer, parameter, public :: max_params = 10
28
29 !> @brief Maximum chunk size
30 !! @ingroup group_constants
31 integer, parameter, public :: chksize = 72
32end module
integer, parameter, public chksize
Maximum chunk size.
Definition constants.f90:31
integer, parameter, public max_depth
Maximum nesting depth for structures, set to 50 to balance flexibility and stack safety.
Definition constants.f90:15
integer, parameter, public max_tokens
Maximum number of tokens per line, set to 100 for efficient tokenization.
Definition constants.f90:23
integer, parameter, public max_params
Maximum number of parameters in a signature, set to 10 to ensure manageable interfaces.
Definition constants.f90:27
integer, parameter, public max_line_len
Maximum allowed line length in characters, set to 1024 to handle large input strings or files.
Definition constants.f90:11
integer, parameter, public max_cond_depth
Maximum nesting depth for conditional statements, set to 50 to prevent overly complex logic.
Definition constants.f90:19