Lingo (programming language)

from Wikipedia, the free encyclopedia

Lingo is the programming language of the Macromedia Director authoring software , now Adobe Director .

Lingo was an interpreter language in previous versions of Director . For performance reasons, Lingo is now compiled before execution. Because of the large number of integrated media and the properties and functions associated with them, Lingo knows several hundred keywords.

There are (as of May 2005) three variants of Lingo. The classic (and oldest) lingo variant was very much based on the natural English language. Statements saw e.g. B. looks like this:

put "abc" into myVariable

This expression would be phrased something like this in most other programming languages:

myVariable = "abc"

The classic spelling sometimes led to very long formulations. There were also different spelling options, such as

set myVariable to "abc" 

myVariable="abc" 

put "abc" into myVariable

Since Director 7, the so-called dot syntax is also supported, which works in a similar way to object-oriented languages. As shown here, for example

member("textausgabe").text = "abc"

sprite(1).color = myColor

With a few exceptions, every command sequence can be written in both classic and dot syntax. The two dialects can be mixed in one script, although this is officially discouraged.

Since Director MX2004, JavaScript (ECMAScript) is also supported as a programming language. However, JavaScript commands cannot be mixed with classic or dot syntax in a script. But in the same program. Some command sequences can be written more elegantly through JavaScript. Some new functions have also been added through JavaScript. JavaScript was also implemented as a language to make it easier for programmers who know other languages ​​to get started with Director.

It is important to mention at this point that although Lingo has object-oriented approaches, it is by no means considered an object-oriented language. For this it would be necessary to further shape the approaches that are still in their infancy and to make them present within the entire language.

Web links