Package avail.interpreter.primitive.phrases

Types

Link copied to clipboard
object P_AssignmentTarget : Primitive

Primitive: Answer the target variable of the assignment.

Link copied to clipboard
object P_AssignmentValue : Primitive

Primitive: Answer the specified assignment's value expression.

Link copied to clipboard
object P_BlockArguments : Primitive

Primitive: Answer the tuple of argument declarations for the specified block.

Link copied to clipboard
object P_BlockDeclaredExceptions : Primitive

Primitive: Answer the specified block's set of declared exceptions.

Link copied to clipboard
object P_BlockNeededVariables : Primitive

Primitive: Answer the tuple of outer declarations needed by the specified block to complete its meaning.

Link copied to clipboard
object P_BlockPrimitiveName : Primitive

Primitive: Answer the String which names the primitive referenced by this block phrase. Answer the empty string if no primitive was specified.

Link copied to clipboard
object P_BlockReturnType : Primitive

Primitive: Answer the specified block's return type.

Link copied to clipboard
object P_BlockStatements : Primitive

Primitive: Answer the tuple of statements for the specified block.

Link copied to clipboard
object P_CreateArgumentDeclaration : Primitive

Primitive: Create a new argument declaration from the specified token and type.

Link copied to clipboard
object P_CreateAssignmentExpression : Primitive

Primitive: Transform a variable reference and an expression into an inner assignment. Such a node also produces the assigned value as its result, so it can be embedded as a subexpression.

Link copied to clipboard
object P_CreateAssignmentStatement : Primitive

Primitive: Transform a variable reference and an expression into an assignment statement. Such a phrase has type top and cannot be embedded as a subexpression.

Link copied to clipboard
object P_CreateBlockExpression : Primitive

Primitive: Create a block expression from the specified argument declarations, primitive name, statements, result type, and exception set.

Link copied to clipboard
object P_CreateExpressionAsStatementPhrase : Primitive

Primitive CreateExpressionAsStatementPhrase: Construct an expression-as-statement phrase for the given expression.

Link copied to clipboard
object P_CreateFirstOfSequenceOfStatements : Primitive

Primitive: Create a first-of-sequence phrase from the specified tuple of statements.

Link copied to clipboard
object P_CreateInitializingVariableDeclaration : Primitive

Primitive: Create an initializing local variable declaration from the specified token, type, and expression.

Link copied to clipboard
object P_CreateLabelDeclaration : Primitive

Primitive: Create a label declaration from the specified token and continuation type.

Link copied to clipboard
object P_CreateListExpression : Primitive

Primitive: Create a list from the specified tuple of expressions.

Link copied to clipboard
object P_CreateLiteralExpression : Primitive

Primitive: Create a literal expression from the specified literal token.

Link copied to clipboard
object P_CreateLiteralToken : Primitive

Primitive: Create a literal token with the specified literal value, lexeme, starting character position, and line number.

Link copied to clipboard
object P_CreateLiteralTokenType : Primitive

Primitive: Construct a literal token type with the given parameterization.

Link copied to clipboard
object P_CreateLocalConstantDeclaration : Primitive

Primitive: Answer a local constant declaration from the specified token and initializing expression.

Link copied to clipboard
object P_CreateMarkerPhrase : Primitive

Primitive: Create a marker phrase from the specified value and yield type (which don't have to agree).

Link copied to clipboard
object P_CreateModuleVariableDeclaration : Primitive

Primitive: Create a new module variable declaration from the specified token and actual variable.

Link copied to clipboard
object P_CreatePermutedListPhrase : Primitive

Primitive: Create a permuted list phrase from the given list and permutation tuple.

Link copied to clipboard
object P_CreatePhraseType : Primitive

Primitive: Create a variation of a phrase type. In particular, create a phrase type of the same kind but with the specified expression type.

object P_CreatePrimitiveFailureVariableDeclaration : Primitive

Primitive: Create a primitive failure variable declaration from the specified token and type.

Link copied to clipboard
object P_CreateReferenceExpression : Primitive

Primitive: Transform a variable use into a reference.

Link copied to clipboard
object P_CreateRestrictedSendExpression : Primitive

Primitive CreateRestrictedSendExpression: Create a send phrase from the specified message bundle, list phrase of argument expressions, and return type. In addition, run all semantic restrictions in separate fibers.

Link copied to clipboard
object P_CreateSendExpression : Primitive

Primitive: Create a send expression from the specified message bundle, list phrase of argument expressions, and return type. Do not apply semantic restrictions.

Link copied to clipboard
object P_CreateSequenceAsExpressionPhrase : Primitive

Primitive CreateSequenceAsExpressionPhrase: Construct a sequence-as-expression phrase for the given sequence phrase.

Link copied to clipboard
object P_CreateSequenceOfStatements : Primitive

Primitive: Create a sequence from the specified tuple of statements.

Link copied to clipboard
object P_CreateSuperCastExpression : Primitive

Primitive: Transform a base expression and a type into a supercast phrase that will use that type for lookup. Fail if the type is not a strict supertype of that which will be produced by the expression. Also fail if the expression is itself a supertype, or if it is top-valued or bottom-valued.

Link copied to clipboard
object P_CreateToken : Primitive

Primitive: Create a token with the specified TokenType, lexeme, starting character position, and line number.

Link copied to clipboard
object P_CreateTokenType : Primitive

Primitive: Construct a token type with the given parameterization.

Link copied to clipboard
object P_CreateVariableExpression : Primitive

Primitive: Create a local variable declaration from the specified token and type.

Link copied to clipboard
object P_CreateVariableUse : Primitive

Primitive: Create a variable use from the specified token and declaration.

Link copied to clipboard
object P_DeclarationHasInitializingExpression : Primitive

Primitive: If the specified declaration has an initializing expression, then answer true, otherwise answer false.

Link copied to clipboard
object P_DeclarationInitializingExpression : Primitive

Primitive: If the specified declaration has an initializing expression, then return it, otherwise fail with E_DECLARATION_DOES_NOT_HAVE_INITIALIZER.

Link copied to clipboard
object P_DeclarationToken : Primitive

Primitive: Answer the token that names the entity introduced by the declaration.

Link copied to clipboard
object P_DeclarationType : Primitive

Primitive: Answer the type of the specified declaration.

Link copied to clipboard
object P_ExpressionAsStatementExpression : Primitive

Primitive ExpressionAsStatementExpression: Answer the expression wrapped by an expression-as-statement phrase.

Link copied to clipboard
object P_FirstOfSequenceStatements : Primitive

Primitive: Answer the specified first-of-sequence's tuple of statements. The first statement's result will be the result produced by this first-of-sequence.

Link copied to clipboard
object P_ListExpressions : Primitive

Primitive: Answer the specified list's tuple of expressions.

Link copied to clipboard
object P_LiteralExpressionToken : Primitive

Primitive: Answer the literal token from which the specified literal phrase was built.

Link copied to clipboard
object P_LiteralTokenTypeValueType : Primitive

Primitive: Extract the type of value that can be inside a literal token that satisfies this literal token type.

Link copied to clipboard
object P_LiteralTokenValue : Primitive

Primitive: Get the specified literal token's literal value.

Link copied to clipboard
object P_LookupMacro : Primitive

Primitive LookupMacro: Given an atom and a tuple of phrases, look up the body function of the applicable macro. Do not execute it. The returned function should accept the given tuple of phrases.

Link copied to clipboard
object P_MarkerPhraseValue : Primitive

Primitive: Extract the value from a marker phrase.

Link copied to clipboard
object P_PermutedListList : Primitive

Primitive: Answer the list phrase permuted by the specified permuted list phrase.

Link copied to clipboard
object P_PermutedListPermutation : Primitive

Primitive: Answer the permutation tuple of the specified permuted list phrase.

Link copied to clipboard
object P_PhraseExpressionType : Primitive

Primitive: Extract the result type of a phrase.

Link copied to clipboard
object P_PhraseTokens : Primitive

Primitive: Answer the tokens that are part of this phrase. This generally does not include tokens that are considered tokens of subphrases of this phrase.

Link copied to clipboard
object P_PhraseTypeExpressionType : Primitive

Primitive: Extract the result type of a phrase type.

Link copied to clipboard
object P_ReferenceTarget : Primitive

Primitive: Answer the target variable of the specified reference.

Link copied to clipboard
object P_SendArgumentsList : Primitive

Primitive: Answer the specified send expression's list of argument expressions.

Link copied to clipboard
object P_SendBundle : Primitive

Primitive: Answer the send expression's target bundle.

Link copied to clipboard
object P_SendMethod : Primitive

Primitive: Answer the send expression's target method.

Link copied to clipboard
object P_SendReturnType : Primitive

Primitive: Answer the specified send phrase's expected return type.

Link copied to clipboard
object P_SequenceAsExpressionSequence : Primitive

Primitive P_SequenceAsExpressionSequence: Answer the sequence that is inside the given sequence-as-expression phrase.

Link copied to clipboard
object P_SequenceStatements : Primitive

Primitive: Answer the specified sequence's tuple of statements.

Link copied to clipboard
object P_SuperCastExpression : Primitive

Primitive: Extract the base expression from a supercast phrase.

Link copied to clipboard
object P_SuperCastLookupType : Primitive

Primitive: Extract the lookup type from a supercast phrase. This is the type that the argument is to be treated as during method lookup.

Link copied to clipboard
object P_TokenClassifier : Primitive

Primitive: Get the specified token's classifier, which is an atom.

Link copied to clipboard
object P_TokenLexeme : Primitive

Primitive: Get the lexeme (string) associated with the specified token.

Link copied to clipboard
object P_TokenLineNumber : Primitive

Primitive: Get the specified token's one-based line number within the source module that supplied it. A result of 0 means that the line number is unknown or meaningless.

Link copied to clipboard
object P_TokenStart : Primitive

Primitive: Get the specified token's one-based start position within the source module string. A result of 0 means that the line number is unknown or meaningless.

Link copied to clipboard
object P_VariableUseDeclaration : Primitive

Primitive: Answer the declaration that created the entity referenced by this variable use.

Link copied to clipboard
object P_VariableUseToken : Primitive

Primitive: Answer the specified variable use's token.