Index

Package: Scripting

Description

package Scripting is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Classes

Eval_Context

type Eval_Context is tagged private;

Primitive operations:

Evaluate_Function
Evaluate_Symbol

Types

Value_Array

type Value_Array is array (Integer range <>) of Value_Ptr;

A_Eval_Context

type A_Eval_Context is access all Eval_Context'Class;

Evaluation_Node (abstract)

type Evaluation_Node is interface;
An Evaluation_Node is capable of evaluating variables and functions as part of scripting evaluation.

A_Evaluation_Node

type A_Evaluation_Node is access all Evaluation_Node'Class;

Constants & Global variables

Evaluation_Exception

Evaluation_Exception : exception;
Raised when script evaluation fails

Subprograms & Entries

Evaluate_Function (abstract)

function Evaluate_Function
( this: access Evaluation_Node;
name: String;
arguments: Value_Array ) return Value_Ptr is abstract;
Evaluates the function 'name' given 'arguments', returning a value as a result, null if the function could not be found, or raising an exception on error while evaluating the function.

Evaluate_Symbol (abstract)

function Evaluate_Symbol
( this: access Evaluation_Node;
symbol: String ) return Value_Ptr is abstract;
Evaluates the symbol named 'symbol' by resolving its value and returning the result. null will be returned if the symbol can't be resolved.