Package avail.interpreter.primitive.style

Types

Link copied to clipboard
object P_BootstrapBlockMacroStyler : Primitive

The P_BootstrapBlockMacroStyler primitive is used for bootstrapping the styling of block syntax, which Avail code uses to produce functions.

object P_BootstrapDefineSpecialObjectMacroStyler : Primitive

Primitive: Apply bootstrap styling to a phrase responsible for special object binding.

Link copied to clipboard
object P_BootstrapDefinitionStyler : Primitive

Primitive: Apply bootstrap styling to a phrase responsible for some sort of A_Definition.

Link copied to clipboard
object P_BootstrapGrammaticalRestrictionStyler : Primitive

Primitive: Apply bootstrap styling to a phrase responsible for defining grammatical restrictions. Scan the arguments recursively for string literals and assume that they're all method names. Even if they end up just being fragments of constructed method names, the coloring will still be useful.

object P_BootstrapLexerSlashStarCommentBodyStyler : Primitive

Primitive: Apply bootstrap styling to a slash-star...star-slash comment.

Link copied to clipboard
object P_BootstrapLexerStringBodyStyler : Primitive

Primitive: Apply the bootstrap string literal styler to the specified string token (wrapped up as a literal by the lexer styling mechanism).

Link copied to clipboard
object P_BootstrapStatementStyler : Primitive

Primitive: Apply bootstrap styling to a phrase responsible for some sort of statement.

Link copied to clipboard
object P_DefaultStyler : Primitive

Primitive: Apply styles for the given phrase and variables holding maps. This is the bootstrap default behavior for styling, which only has effect if a method/macro send has no styler, and the default styler has not been explicitly set.

Link copied to clipboard
object P_ModuleHeaderPseudoMacroStyler : Primitive

Primitive: The P_ModuleHeaderPseudoMacroStyler primitive applies styling to a module header parsed with P_ModuleHeaderPseudoMacro.

Link copied to clipboard
object P_SetStylerFunction : Primitive

Primitive: Create and install a styler, from the given function and for the method associated with the given A_Bundle. Fail if the method already has a styling function for the current module.

Link copied to clipboard
object P_SpecialObjectStyler : Primitive

Primitive: Apply bootstrap styling to a phrase responsible for special object access.

Link copied to clipboard
object P_StyleFixedTokensOfPhrase : Primitive

Primitive: Apply the given style name to all fixed tokens of the given phrase. If the "overwrite" argument is true, the style for that region is replaced, otherwise the style name is appended (with a separating ",") to the existing style name. If the "overwrite" argument is true, but the style name is the empty string, clear all styles for that range. This facility is provided as a primitive to provide early utility in the standard library, i.e., before standard control structures are readily available.

Link copied to clipboard
object P_StyleMethodName : Primitive

Primitive: Apply the bootstrap method name styler to the specified string literal.

Link copied to clipboard
object P_StyleSpanOfPhrase : Primitive

Primitive: Apply the given style name to the region of the file bounded by the given phrase. This includes whitespace and comments, as well as the subphrases and tokens within this phrase. If the "overwrite" argument is true, the style for that region is replaced, otherwise the style name is appended (with a separating ",") to the existing style name. If the "overwrite" argument is true, but the style name is the empty string, clear all styles for that range.

Link copied to clipboard
object P_StyleToken : Primitive

Primitive: Apply the given style name to the region of the file being compiled designated by the given token. The token may be synthetic, and/or include whitespace or comments. If the "overwrite" argument is true, the style for that region is replaced, otherwise the style name is appended (with a separating ",") to the existing style name. If the "overwrite" argument is true, but the style name is the empty string, clear all styles for that range.