This module provides support for classifying HOL names for the purposes of parsing and printing. This consists of tests for basic classes of name and commands for setting identifier fixity and enumeration brackets. This module is a trusted component of the system, since it is used in the implementation of the pretty printer.
Function or value | Description |
Full Usage:
check_bracket_name br
Parameters:
string
|
|
Full Usage:
get_all_enum_info ()
Parameters:
unit
Returns: ((string * string) * (string * string)) list
|
|
|
|
|
|
Full Usage:
get_enum_bracket_zero br
Parameters:
string
Returns: string
|
|
Full Usage:
get_enum_zero_brackets zero
Parameters:
string
Returns: string * string
|
|
Full Usage:
get_enum_zero_op zero
Parameters:
string
Returns: string
|
|
|
|
|
|
|
|
|
|
Full Usage:
has_binder_fixity x
Parameters:
string
Returns: bool
|
|
Full Usage:
has_infix_fixity x
Parameters:
string
Returns: bool
|
|
Full Usage:
has_infix_type_fixity x
Parameters:
string
Returns: bool
|
|
Full Usage:
has_nonfix_fixity x
Parameters:
string
Returns: bool
|
|
Full Usage:
has_nonfix_type_fixity x
Parameters:
string
Returns: bool
|
|
Full Usage:
has_postfix_fixity x
Parameters:
string
Returns: bool
|
|
Full Usage:
has_prefix_fixity x
Parameters:
string
Returns: bool
|
|
|
|
Full Usage:
is_alphanum x
Parameters:
string
Returns: bool
|
|
Full Usage:
is_alphanum_char1 c
Parameters:
char
Returns: bool
|
|
Full Usage:
is_alphanum_char2 c
Parameters:
char
Returns: bool
|
|
|
|
Full Usage:
is_digit c
Parameters:
char
Returns: bool
|
|
Full Usage:
is_enum_bracket x
Parameters:
string
Returns: bool
|
|
Full Usage:
is_enum_close x
Parameters:
string
Returns: bool
|
|
Full Usage:
is_enum_open x
Parameters:
string
Returns: bool
|
|
Full Usage:
is_enum_openclose x
Parameters:
string
Returns: bool
|
|
|
|
Full Usage:
is_keyword x
Parameters:
string
Returns: bool
|
|
Full Usage:
is_letter c
Parameters:
char
Returns: bool
|
|
Full Usage:
is_lowercase c
Parameters:
char
Returns: bool
|
|
|
|
Full Usage:
is_numeric x
Parameters:
string
Returns: bool
|
|
|
|
|
|
Full Usage:
is_punctuation_char c
Parameters:
char
Returns: bool
|
|
Full Usage:
is_symbolic x
Parameters:
string
Returns: bool
|
|
Full Usage:
is_symbolic_char c
Parameters:
char
Returns: bool
|
|
Full Usage:
is_unprintable_char c
Parameters:
char
Returns: bool
|
|
Full Usage:
is_uppercase c
Parameters:
char
Returns: bool
|
|
Full Usage:
is_whitespace_char c
Parameters:
char
Returns: bool
|
|
|
|
Full Usage:
reset_fixity x
Parameters:
string
|
|
Full Usage:
reset_type_fixity x
Parameters:
string
|
|
Full Usage:
set_enum_brackets (f, zero) (br1, br2)
Parameters:
string
zero : string
br1 : string
br2 : string
|
This is the enumeration bracket setting command. It takes two pairs of strings, where the first pair is the name of an enumeration insertion operator constant and the name of an enumeration empty structure constant, and the second pair is the name of the opening and closing enumeration brackets to be associated with these constants. The brackets are registered as the enumeration brackets corresponding to the supplied constants, and become reserved words of the HOL language. A note of the bracket declaration is reported, and unit is returned.
|
|
This is the term fixity setting command for variable/constant names. It takes a string and a fixity, and registers the term fixity of the string name as the supplied fixity, so that any variables or constants with that name get written with that fixity. Supplying a name that is currently registered with a fixity that is not nonfix will cause failure (except in benign resetting to the same fixity). A note of the fixity change is reported, and unit is returned.
|
|
This is the type fixity setting command for type constant names. It takes a string and a fixity, and registers the type fixity of the string name as the supplied fixity, so that any type constants with that name get written with that fixity. Supplying a name that is currently registered with a fixity that is not nonfix will cause failure (except in benign resetting to the same fixity). A note of the fixity change is reported, and unit is returned.
|
|
The enumeration bracket database is a secondary database, used during parsing for looking up the empty structure constant name for a given enumeration bracket. This is implemented as a dynamic lookup tree, indexed by enumeration bracket. There are entries for each opening bracket, each closing bracket and for each pair of concatenated corresponding opening and closing brackets. These concatenated pair entries are used by the term quotation parser, to allow empty enumerations appearing in term quotations to have no space between the opening and closing enumeration brackets.
|
|
|
|
|
|