forgex_cli_parameters_m Module


Variables

Type Visibility Attributes Name Initial
character(len=*), public, parameter :: CMD_DEBUG = "debug"

Name of the subcommand debug.

character(len=*), public, parameter :: CMD_FIND = "find"

Name of the subcommand find.

character(len=*), public, parameter :: CRLF = char(13)//char(10)

Line ending characters for Windows OS

character(len=*), public, parameter :: ENGINE_DENSE_DFA = "dense"
character(len=*), public, parameter :: ENGINE_FORGEX_API = "forgex"
character(len=*), public, parameter :: ENGINE_LAZY_DFA = "lazy-dfa"
character(len=*), public, parameter :: FOOTER = "==================================="
character(len=*), public, parameter :: HEADER_DFA = "=============== DFA ==============="
character(len=*), public, parameter :: HEADER_NFA = "========== Thompson NFA ==========="

Headers

character(len=*), public, parameter :: INVALID_FLAG = "INVALID"

String to indicate invalidity if no short flag is present.

integer, public, parameter :: LEN_CMD = 16

Length

integer, public, parameter :: LEN_ENV_VAR = 255

Maximum length of an environment variable's value.

character(len=*), public, parameter :: LF = char(10)

Line Feed.

integer, public, parameter :: NUM_CMD = 2

Number of sub-command that forgec-cli accepts.

integer, public, parameter :: NUM_DIGIT_KEY = 32

Maximum langth of table field name.

integer, public, parameter :: NUM_DIGIT_TIME = 13

Number of digits for time display.

integer, public, parameter :: NUM_FLAGS = 5

Number of flags (without value) that forgex-cli accepts.

integer, public, parameter :: NUM_SUBC_DEBUG = 2

The number of sub-subcommands that debug accepts.

integer, public, parameter :: NUM_SUBC_FIND = 1
integer, public, parameter :: NUM_SUBSUBC_MATCH = 3
character(len=*), public, parameter :: OP_IN = ".in."
character(len=*), public, parameter :: OP_MATCH = ".match."

Name of the sub-subcommand lazy dfa

character(len=*), public, parameter :: SUBC_AST = "ast"

Name of the sub-subcommand ast.

character(len=*), public, parameter :: SUBC_MATCH = "match"
character(len=*), public, parameter :: SUBC_THOMPSON = "thompson"

Name of the sub-subcommand thompson.

integer, public, parameter :: TREE_BUFF_LEN = 2**16

The buffer length of displaying the AST.

character(len=*), public, parameter :: fmt_out_char = "(a, 1x, a)"
character(len=*), public, parameter :: fmt_out_int = "(a, i10)"

Output format for displaying an integer in tables.

character(len=*), public, parameter :: fmt_out_logi = "(a, l10)"
character(len=*), public, parameter :: fmt_out_ratio = "(a, i10, '/', i0)"
character(len=*), public, parameter :: fmt_out_time = "(a, a15)"
character(len=*), public, parameter :: fmta = "(a)"

Format for outputting text only.

character(len=*), public, parameter :: not_running = "not running"