Language syntax, Overview, Basic terms – CUE Design Director Script Language User Manual

Page 5

Advertising
background image

Reference Manual Design Director Script Language

www.cuesystem.com

Page 5 of 94

2. Language Syntax

2.1. Overview

The language syntax originates in the Microsoft’s Visual Basic. The semantics of the operators, the data
types and the expressions of various in-build language functions are similar to expressions in the Visual
Basic language.

The description of the syntax is divided in the following chapters:

1. Basic terms – in brief the basic terms are introduced from which the language originates.

2. Expression - they are language constructions that describe the value calculation. These are

used in the language commands.

3. Commands – they are language constructions from which the program code is composed.

2.2. Basic Terms

The basic terminology of the language is taken form an object oriented paradigm. Everything except the
basic elementary values (number, string), is an object in the system.

Every object has its own type, property, method and an event. The object type states what property,
method or an event the object ”knows.”

The object property is a simplified variable of a concrete name held in the object. The object method is
an action that can be passed on an object. Under the object event there is a code, that is called with the
change of the status of the outside world. The event for the world of the touch panels is i.e. the user’s
touch of a finger on a touch sensor. The event happens for an object of a user interface that is displayed
at a place where the user has touched the screen.

The language world is static. That means that the language gives object types and the user does not
have a possibility to add his object types. The user can design his object in the design environment.
While the system is running it is impossible to create a new object or delete the present one.

The language gives likewise all object methods.

The user designes his own application objects in the design environment that the application will be
working with. For the designed objects he sets property values and under events he writes a code, what
the given event should execute.

The events are raised according to the changes of the status of the outside world i.e. touch of a finger on
a screen. The event code can change values of some object properties, call object method, event code
and as well the code of general macros.

The general macro is a code written in the design environment out of the objects. The code syntax is
equal to the code syntax of the event.

Advertising