Index

Package: Statements

Description

package Scripting.Statements 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.

Packages

Statement_Lists (new Doubly_Linked_Lists)

package Statement_Lists is new Ada.Containers.Doubly_Linked_Lists( A_Statement, "=" );

Classes

Statement (abstract)

type Statement is abstract new Limited_Object with private;

Ancestors:

Immediate Children:

Primitive operations:

Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.To_String (Inherited)
A Statement represents a single command in a script. Scripts are composed of a series of statements. Statements can be evaluated/executed, but they don't return a value.

Types

A_Statement

type A_Statement is access all Statement'Class;

Subprograms & Entries

Evaluate (abstract)

procedure Evaluate
( this: access Statement;
context: not null A_Eval_Context ) is abstract;
Evaluates the statement, performing whatever action it represents. Each Statement class overrides this procedure.

Delete

procedure Delete
( this: in out A_Statement );
Deletes the Statement.

Delete_Contents

procedure Delete_Contents
( statements: in out Statement_Lists.List );
Deep deletes the list.