SystemStyle

enum SystemStyle : Enum<StylerDescriptor.SystemStyle>

The bootstrap styles, applied directly by the virtual machine or endorsed standard library.

Author

Leslie Schultz

Todd L Smith

Entries

Link copied to clipboard
EXCLUDED("#excluded")

The token should indicate it is being excluded from something.

Link copied to clipboard
DEEMPHASIZE("#deemphasize")

The token should be visually ignored.

Link copied to clipboard
MATH_EXPONENT("#math-exponent")

The exponent in an exponential expression like b in a^b.

Link copied to clipboard
NONLOCAL_CONTROL("#nonlocal-control")

The fixed syntax used to express a nonlocal control action, e.g., raising an exception, restarting or exiting a continuation, etc.

Link copied to clipboard
RETURN_VALUE("#return-value")

The return value of a block.

Link copied to clipboard
PHRASE("#phrase")

The fixed syntax used to construct a phrase.

Link copied to clipboard
PRIMITIVE_NAME("#primitive-name")

The optional primitive name in a block.

Link copied to clipboard
SPECIAL_OBJECT("#special-object-definition")

The characters and whitespace that signal a special object is being bound or accessed, excluding any literals (like name or ordinal).

Link copied to clipboard
OBJECT_TYPE_DEFINITION("#object-type-definition")

The characters and whitespace that signal an object type is being defined, excluding any defined names.

Link copied to clipboard
SEAL_DEFINITION("#seal-definition")

The characters and whitespace that signal a seal is being placed, excluding the method name and signature types that the seal envelops.

Link copied to clipboard
GRAMMATICAL_RESTRICTION_DEFINITION("#grammatical-restriction-definition")

The characters and whitespace that signal a grammatical restriction is being defined for a method or macro, excluding the name and definition block.

Link copied to clipboard
SEMANTIC_RESTRICTION_DEFINITION("#semantic-restriction-definition")

The characters and whitespace that signal a semantic restriction is being defined for a method, excluding the method name and definition block.

Link copied to clipboard
MACRO_DEFINITION("#macro-definition")

The characters and whitespace that signal a macro is being defined, excluding the macro name and definition block.

Link copied to clipboard
LEXER_DEFINITION("#lexer-definition")

The characters and whitespace that signal a lexer is being defined, excluding the lexer name and definition block.

Link copied to clipboard
LOOP("#loop")

The fixed syntax indicating a loop expression, but not its arguments, i.e., predicates or governed blocks.

Link copied to clipboard
CONDITIONAL("#conditional")

The fixed syntax indicating a conditional expression, but not its arguments, i.e., predicates or governed blocks.

Link copied to clipboard
OTHER_LITERAL("#other-literal")

A literal of some other Avail datatype than string, number, boolean, character, or atom.

Link copied to clipboard
ATOM_LITERAL("#atom-literal")

An atom literal, including delimiters. May be overridden if more contextual information is available about the atom's function, e.g., if it serves as a method name, object type field, etc.

Link copied to clipboard
CHARACTER_LITERAL("#character-literal")

A character literal, including delimiters.

Link copied to clipboard
MAP_CONSTRUCTOR("#set-literal")

The fixed syntax used to construct a map, but not its keys or values.

Link copied to clipboard
SET_CONSTRUCTOR("#set-literal")

The fixed syntax used to construct a set, but not its elements.

Link copied to clipboard
TUPLE_CONSTRUCTOR("#tuple-literal")

The fixed syntax used to construct a tuple, but not its elements.

Link copied to clipboard
BOOLEAN_LITERAL("#boolean-literal")

A boolean literal (true or false).

Link copied to clipboard
NUMERIC_LITERAL("#numeric-literal")

A numeric literal, including digits, punctuation, and numeric control characters that indicate base or format (such as 0x, f, e, etc.).

Link copied to clipboard
STRING_ESCAPE_SEQUENCE("#string-escape-sequence")

A string escape sequence, including both the escape character \ and the character(s) that follow it that are being escaped. All escape sequences are styled similarly, even \\ and \", which serve to mark the escape character \ and the delimiter " as actual characters within the string. Also used for delimiting quotes.

Link copied to clipboard
STRING_LITERAL("#string-literal")

A string literal, excluding quotation marks around it. Does not include escape sequences.

Link copied to clipboard
LABEL_USE("#label-use")

A use of a label.

Link copied to clipboard
LABEL_DEFINITION("#label-definition")

The label that identifies the enclosing continuation.

Link copied to clipboard
LOCAL_VARIABLE_USE("#local-variable-use")

A use of a local variable.

Link copied to clipboard
LOCAL_VARIABLE_DEFINITION("#local-variable-definition")

The name of a local variable at its definition site.

Link copied to clipboard
LOCAL_CONSTANT_USE("#local-constant-use")

A use of a local constant.

Link copied to clipboard
LOCAL_CONSTANT_DEFINITION("#local-constant-definition")

The name of a local constant at its definition site.

Link copied to clipboard
PRIMITIVE_FAILURE_REASON_USE("#primitive-failure-reason-definition")

A use of a primitive failure reason constant.

Link copied to clipboard
PRIMITIVE_FAILURE_REASON_DEFINITION("#primitive-failure-reason-definition")

The name of a primitive failure reason constant at its definition site.

Link copied to clipboard
MODULE_VARIABLE_USE("#module-variable-use")

A use of a module variable.

Link copied to clipboard
MODULE_VARIABLE_DEFINITION("#module-variable-definition")

The name of a module variable at its definition site.

Link copied to clipboard
MODULE_CONSTANT_USE("#module-constant-use")

A use of a module constant.

Link copied to clipboard
MODULE_CONSTANT_DEFINITION("#module-constant-definition")

The name of a module constant at its definition site.

Link copied to clipboard
DOCUMENTATION_TAG("#documentation-tag")

Tags used inside documentation blocks, but not their contents.

Link copied to clipboard
DOCUMENTATION("#documentation")

Documentation blocks, including delimiters and documentation tag contents.

Link copied to clipboard
COMMENT("#comment")

Line and block comments, including delimiters.

Link copied to clipboard
PRAGMA("#pragma")

A pragma, i.e., a string literal within the module header Pragma section.

Link copied to clipboard
ENTRY_POINT("#entry-point")

A module entry point, i.e., a string literal within a module header Entries section.

Link copied to clipboard
EXPORT("#export")

A module export, i.e., a string literal within a module header Extends or Names section.

Link copied to clipboard
IMPORT("#import")

A module import, i.e., a string literal within a module header Uses section.

Link copied to clipboard
VERSION("#version")

A module version, i.e., a string literal within a module header Version section.

Link copied to clipboard
MODULE_HEADER_REGION("#module-header-region")

The entire module header, including whitespace and comments.

Link copied to clipboard
MODULE_HEADER("#module-header")

The header keywords that appear in the header of a module.

Link copied to clipboard
PHRASE_TYPE("#phrase-type")

The type annotation within a definition, whenever the defined element is phrase-valued.

Link copied to clipboard
METATYPE("#metatype")

The type annotation within a definition, whenever the defined element is type-valued.

Link copied to clipboard
TYPE("#type")

The type annotation within a definition.

Link copied to clipboard
STATEMENT("#statement")

The terminator that indicates the immediately preceding code was a statement.

Link copied to clipboard
MACRO_SEND("#macro-send")

The elements of a macro name that indicate that macro is being called, but not any arguments being passed.

Link copied to clipboard
METHOD_SEND("#method-send")

The elements of a method name that indicate that method is being called, but not any arguments being passed.

Link copied to clipboard
PARAMETER_USE("#parameter-use")

The usage of a parameter.

Link copied to clipboard
PARAMETER_DEFINITION("#parameter-name")

The name of a parameter being declared. Does not include its type or value.

Link copied to clipboard
METHOD_NAME("#method-name")

The code establishing a method name, or identifying the structure of a method call within a string literal used as part of a method name (i.e. method name metacharacters). In Avail code, methods may be named using any string- or atom-valued expression. In practice, it would make little sense to style an expression or block used to calculate a method name in a special way just because it is used inline in a method definition, so for the purposes of styling, only string literals, atom literals, atom creation sends that embed a string literal, and uses of single string or atom variables or constants will be classified this way. When a lexical element is classified as a METHOD_NAME, that style is applied to all characters that are outside the string literal AND all method name metacharacters that are inside the string literal, including the meta-escape-character ` but not the characters being escaped.

Link copied to clipboard
METHOD_DEFINITION("#method-definition")

The characters and whitespace that signal a method is being defined, excluding the method name and definition block.

Link copied to clipboard
BLOCK("#block")

The characters and whitespace that define the boundaries and sections of an Avail code block. Note that Avail block delimiters ( and ) are not usually part of an enveloping expression; this contrasts with other programming languages that require parentheses around an if condition and/or braces around the then block. In these languages, the delimiters are part of the expression itself. In Avail, certain contexts may accept either a single compact expression or an entire delimited block to evaluate to a single value, so the delimiters are always interpreted as part of the contents, and not part of the context.

Properties

Link copied to clipboard
val kotlinString: String
Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int
Link copied to clipboard
val string: AvailObject

The Avail A_String version of the kotlinString.