The UJML block scripting language uses a syntax similar to Javascript.
There are two different methods of adding scripting statements to UJML: XML scripting statements and scripting blocks consisting of scripting language statements inside of script or eval elements. See Scripting, XML Scripts, Script Blocks. Here we are describing the syntax of the scripting language.
In many ways the UJML scripting language is a subset of JavaScript (also known as ECMAScript because it is a standard of Ecma International). Like JavaScript the UJML scripting language is a 'curly brace' language and, as such, is also similar to Java, C#, C++ and other descendants of the original C language. In all of these languages, a set of curly braces ('{' and '}') are used to indicate blocks of code that are interpreted together. See Statements, Flow Control.
The UJML scripting language is simple and concise, with a small number of operators and keywords. See Operators, Keywords. Used inside of a script element block, it consists of a series of statements which are executed in order. See script, Statements. Used in a UJML expression it is evaluated for a value. See eval, Expressions, Script Expressions.
|
Topic |
Description |
|
Literals are text giving an explicit value of a specific data type. | |
|
Operators perform operations on values in the context of expressions. | |
|
Keywords are words reserved by the UJML scripting language. | |
|
UJML scripting language statements are single units of code that perform some action. | |
|
Expressions in the scripting language are operations that yield a value. | |
|
Comments allow you to attach natural-language descriptions to code. |
|
Copyright (c) 2000-2007 UIEvolution, Inc. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|