Reference Manual. Design Director Script Language. Version 01

Size: px
Start display at page:

Download "Reference Manual. Design Director Script Language. Version 01"

Transcription

1 Reference Manual Design Director Script Language Version 01 CUE spol. s r.o., Na Dolinách 6, Praha 4, Czech Republic phone: fax: info@cue.cz

2 PM004_01, Copyright CUE, spol. s r.o. Praha, Czech Republic All rights reserved. Specifications are subject to change without prior notice.

3 Table of Contents 1. Introduction Language Syntax Overview Basic Terms Expressions Data types Expression type Object Expression type uint Expression type string Expression type callable Commands Declaration commands Executive Commands Flow control commands Error Handling Commands Command Writing Syntax Objects properties description Abstract objects BackGroundObject A BitmapObjectA CaptionObjectA CollectionObjectA Efekt3DobjectA FeedBackObject A IndetificationObjectA LineObjectA ObjectLookObjectA PositionObjectA SubCollectionObjectA TextObjectA TopLevelObjectA VisibilityObjectA Application Objects BargraphObject BitmapObject BoardObject ButtonObject Circle Object ColorObject FeedBackObject FontObject GroupObject LabelObject LineObject MessageObject MessageTextObject PageObject PanelObject PictureBoxObject RectangleObject TabPageObject TabsObject TimerObject WindowObject System Objects Err View System Software and Firmware License...93 Page 3 of 94

4 1. Introduction The text contains a reference book of the language. It contains complete language syntax, including a description of all the elements in the language. On the other hand this text is not suitable for the beginners who have not had that much of experience with a similar documentation or tools. For the better understanding it is desirable to know at least the basics of programming in visual programming tools i.e. The Microsoft Visual Basic from which the language design comes out. In the text there was used a context-free notation of grammar for the better illustration of the language syntax. The knowledge of their syntax and semantics is expected as well. Page 4 of 94

5 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 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. Page 5 of 94

6 2.3. Expressions A term is a language construction, which describes the value calculation. Among expressions we distinguish a distinctive type of expressions Iexpressions. They are such expressions where it is explicitly stated where the value comes from, that is where the value is stored i.e. the name of the parameter. These expressions can be consecutively used even for the place determination where the value of a different term should be stored Data types The allowed expression type constructions differ from the expression type. According to the resulting expression value. The expression types of the language are: object the expression value is a reference to an object uint the expression value is an unsigned integer number string the expression value is a string that means a text string callable - the expression value is a reference to callable code or a method Expression type Object Notation Notation of expression type Object: Expression_Type_Object -> noobject variable_type_object (Expression_Type_Object) Reference_To_Item_Type_Object Item_Collection_Type_Object where: noobject the value marks empty i.e. non-existing object. variable type object - it is the name of the variable declared as a type object. Except variables explicitly declared there are implicitly declared variables for the following objects: Me in every event there is automatically defined variable that refers to an object whose event has been called. System objects the name of the variable equals to a name type. More about system objects in the following chapter. Object type BitmapObject, FontObject, GroupObject, PageObject, PanelObject and WindowObject the variables for all are automatically declared the name equals to an object name as it is determined in the design environment. Page 6 of 94

7 The reference to element The reference to element Reference_to_Element -> Expression_Type_Object. element_name where the element name is name of a property, method or an event. Every object type has a declared allowed names and expression types to what name they refer to. When the expression refers to a method or an event, the resulting type is always callable. The list of allowed names for every type is stated in chapter 3 Objects Properties Description. Note: in the syntax description they are not explicitly stated that means a default property. Default object property is a property that when in the expression a given type is required (property) and is stated only expression type object. That means it is not required to write a reference for a default property through a dot notation. Default property is predominantly used for collection transmission from a property type object directly to original object. Collection Getting the item from the collection: Collection_Item ->Expression_Type_Object! collection_item_name Expression_Type_Object (Expression_Type_String) Expression_Type_Object (Expression_Type_Uint) Collection in the language is a simple list of other objects. In the language design an item of the collection is always type object. Expression type object always has to be a type that contains the collection itself. The value of the expression is an object that in the collection is either on a position determined by an expression type uint (numbered from zero) or the one whose name (assigned to an object in the design environment) is identical to a given name respectively by the expression value type string. If such an object does not exist in the collection then the expression value is noobject. The function type object In the language the following function is defined that returns type object. Function RGB (Expression_Type_Uint, Expression_Type_Uint_, Expression_Type_Uint) Description the value of object is object type ColorObject whose color best responds to entered red, green, blue color value. Note: More about defined object types see under chapter 3 Object Properties Description The function value is already evaluated during the compilation the entered expressions therefore have to be constant. Page 7 of 94

8 Expression type uint Expression type uint: Expression_Type_Uint -> Expression_Type_Uint or Expression_A_Type_Uint Expression_A_Type_Uint Expression_A_Type_Uint -> Expression_A_Type_Uint xor Expression_B_Type_Uint Expression_B_Type_Uint Expression_B_Type_Uint -> Expression_B_Type_Uint and Expression_C_Uint Expression_C_Type_Uint Expression_C_Type_Uint -> Expression_C_Type_Uint = Expression_D_Uint Expression_C_Type_Uint <> Expression_D_Type_Uint Expression_D_Type_Uint Expression_D_Type_Uint -> Expression_D_Type_Uint < Expression_E_Type_Uint Expression_D_Type_Uint > Expression_E_Type_Uint Expression_D_Type_Uint >= Expression_E_Type_Uint Expression_D_Type_Uint <= Expression_E_Type_Uint Expression_E_Type_Uint Expression_E_Type_Uint -> Expression_E_Uint + Expression_F_Type_Uint Expression_E_Type_Uint Expression_F_Uint Expression_F_Type_Uint Expression_F_Type_Uint -> Expression_F_Type_Uint * Expression_G_Type_Uint Expression_F_Type_Uint / Expression_G_Type_Uint Expression_F_Type_Uint mod Expression_G_Type_Uint Expression_G_Type_Uint Expression_G_Type_Uint -> - Expression_G_Type_Uint not Expression_G_Type_Uint Expression_H_Type_Uint Expression_H_Type_Uint -> numeral constant parameter_type_uint (Expression_Type_Uint) Reference_To_Element_Type_Uint Function_Type_Uint Page 8 of 94

9 Numerical Constant Numerical constant is in general a few of decimal digits entered after each other. In the text name type object can also be used as a string constant. There are two specially defined name constants: Name Value Description False 0 the value refers to a logical status no, the condition is not fulfilled True the value refers to a logical status yes, the condition is fulfilled Unary Operators The unary operators mentioned in this grammar have the following semantics: Operator Symbol Value Sign - a bitwise complement is executed to a number and the result is incremented by one. It refers to a sign change operation at the sign types Logical not not a bitwise complement of a number. The value not true is false; the value not false is true. But the value not 2 is Binary operators The binary operators mentioned in this grammar have the following semantics: Operator Symbol Value multiplication * the result is a product of expressions. In the case of overflow the error does not occur, the result is trimmed It is all right without any error. division / the result is a quotient of expressions. In the case of division by a zero an error occurs division by zero Modulo mod the result is a remainder after division. When dividing by a zero, an error occurs division by a zero Plus + the result is the expressions sum, when overflow is trimmed, an error occurs It is all right without any error Minus - the result is the difference of expressions. When overflow is trimmed, an error does not happen It is all right without any error Relation <,>, <=, =, <> Relates expressions. If the operation of comparison is fulfilled, then result is true value. Otherwise the result of relation is false. And and bitwise and executed above expressions. Anything and false is false. Or or bitwise or executed above expressions. Anything or true is true Exlusive Or xor bitwise xor executed above expressions. Anything xor true is similar to an operation not, anything xor 0 does not change it leaves the value unchanged Page 9 of 94

10 Function type uint In the language the following functions are defined that returns uint type: Function typeof (Expression_Type_Object) Len (Expression_Type_String) DecLen (Expression_Type_String) InStr (Expression_Type_String, Expression_Type_String) Instr (Expression_Type_Unt, Expression_Type_String, Expression_Type_String) Asc (Expression_Type_String) Description the value is identification (i.e. number) of the real type object the value is the length of data stored in the parameter the value is a declared length the parameter value if the value of the first parameter contains as its understring the value of the second parameter, the result value is the value position of the second parameter in the value of the first parameter, Otherwise the value is a zero. If the value of the second parameter contains as its understring at the higher position than the value of the first parameter the value of the third parameter, the resulting value is the position value of the third parameter in the value of the second parameter. Otherwise the value is a zero. the value is the code of the first parameter value sign. If the value of the parameter is an empty string, an error is generated Expression type string Expression type string: Expression_Type_String - > Expression_A_Type String + Expression_Type_String Expression_A_Type_String & Expression_Type_String Expression_Type_String Expression_A_String - > string_constant variable_type_string (Expression_Type_String) Reference_To_Element_Type_String Function_Type_String String constant In general a string constant is a few characters closed in double quotation mark i.e. character. If the double quotation mark should be a part of the constant value, it is needed to write the double quotation mark twice after each other. Binary operator The binary operators mentioned in this grammar have the following semantics: Operator Symbol Value Concatenation + the result is the concatenation of original type string values which are put in one after another. Concatenation & the result is the concatenation of original type string values which are put in one after another. The operation is identical to the previous operation. Page 10 of 94

11 Function type string In the language the following functions are defined that returns string type: Function Char$ (Expression_Type_Uint) Left$ (Expression_Type_String, Expression_Type_Uint) Right$ (Expression_Type_String, Expression_Type_Uint) Mid$ (Expression_Type_String, Expression_Type_Uint) Mid$ (Expression_Type_String, Expression_Type_Uint, Expression_Type_String) LTrim$ (Expression_Type_String) RTrim$ (Expression_Type_String) Trim$ (Expression_Type_String) Str$ (Expression_Type_Uint) Hex$ (Expression_Type_Uint) Format$ (Expression_Type_Uint, Expression_Type_Uint) UCase$ (Expression_Type_String) Lcase$ (Expression_Type_String) Description the value is a one character string whose first character bears the code of the parameter value the value is a number of the (determined by the second parameter) first characters of the first parameter. If the first parameter has fewer characters than is the value of the second parameter, the value is the first parameter. the value is a number of (determined the second parameter) the last character of the first parameter. If the first parameter has fewer characters than is the value of the second parameter, the value is the first parameter the value are the characters of the first parameter beginning with the one at the position determined by the value of the second parameter (indexed from number one). If the value of the second parameter is a greater than the length of the first parameter, then the resulting value is an empty string (i.e. ) If the value of the second parameter is a zero, then an error is generated. the value is a number of (determined by the third parameter) characters of the first parameter beginning with the one at the position determined by the value of the second parameter (indexed from number one). If the sum value of the second and the third parameter is greater than the length of the first parameter, then the value is Mid$ (first parameter, second parameter). If the value of the second parameter is a zero then an error is generated. the value is a parameter without the leading spaces the value is a parameter without the trailing spaces the value is parameter without the leading and trailing spaces the value is a string containing textually expressed number of the parameter value in a decimal number system the value is a string containing textually expressed number of the parameter value in the hexadecimal numberl system the first parameter has to contain the complete formatting string for C-function sprintf. It enables to assign only one numerical parameter. The value is a string created after sprintf function call to formatting string value of the first parameter and numerical value of the second parameter the value is a string whose all letters are capital. the value is a string whose all letters are small Expression type callable The most common type callable has been mentioned in chapter Reference to Element. The second possibility is the direct use name of the global macro. Macros are defined in the design environment. Page 11 of 94

12 2.4. Commands Commands are divided into the following classes: 1. declaration - used for declaration of variables and parameters of the designed macros. 2. executive change the status of world of objects 3. flow control - conditionally determine what commands will be executed 4. error handling enable to define what should be done when an error occurs 5. comments - enable to write user comments into a code Declaration commands Declaration commands in macros have to precede other commands. They are divided into two groups declaraction of parameters declaration of variables. Declaration of parameter precedes the declaration of variables. When the parameters are declared the order matters the same parameter order applies to macro call. When the variables are declared the order is not important it is possible to mix the declaration of the local variables (the value is known only at the moment when the macro is running) and static variable (the value of the variable remains even after macro is left when the macro is running next the value is available) The parameter declaration command called by a reference and parameter declaration command called by a value have been designed for the declaration of parameters. Two commands have also been designed for the declaration of variables the first one for local variables, the second one for static ones. The all declared names (parameters and variables) have to be unique in macro. In addition to this it cannot be identical to keywords of the language, global object names or global macro names. Declaration command called by a parameter Param Designed syntax: Param <parameter name> <type name> ; where <parameter name> - name of the declared parameter <type name> - name of the declared parameter. Types are uint, string or any name from object types. When the variable type string called by a parameter is declared, the length of the declared variable is not assigned. This way the language enables one macro to use various types of variables, respectively with variables type string with a differently declared size of storage space. Page 12 of 94

13 Iexpression needs to be entered after the parameter value when the macro, whose parameter is called by a reference, is called. When the changes of parameter value in the macro are performed, the exact same changes will appear in Iexpression entered after the parameter. Declaration of parameter called by a value - ParamByVal Designed syntax: ParamByVal <parameter name> <type name> [* <declared type length>] : where <parameter name> - name of the declared parameter <type name> - name of the type of the declared parameter. Type names are uint, string or any name from object types <declared type length> - the length is mentioned for variable type string only If the macro is called whose parameter is called by a value, it is possible to insert any expression in place of the parameter value. When the changes of parameter value in the macro are performed no changes will apply in variable in the original expression. Declaration of local variable - Dim Designed syntax: Dim < variable name> <type name> [* <declared length type>] ; where <type variable> - name of the declared variable <type name> - type name of the declared variable. Type are uint, string names are uint, string or any name from type of objects <declared type length> - it is mentioned in variables type string only. It declares the size of the storage space for the given variable. Declaration of static variable - Static Designed syntax: Static <variable name> <type name> [* declared type length] ; where <variable name> - name of the declared variable <type name> - type name of the declared variable. Type are uint, string or any name from object types <declared type length> - it is mentioned in variables type string only. It declares the size of the storage space for the given variable. The static variable corresponds to static variables in Visual Language (declared by Static command). In Visual Basic the Global variables are additionally declared (i.e. visible from everywhere, they keep the same value), here are not supported. Page 13 of 94

14 Executive Commands The executive commands perform changes in the virtual world of touch panels. Two commands are designed value assignment into a variable/parameter/property and macro/method/event calling. The own execution of changes in the virtual world is taken care of by semantics either called by a method or by property change. Assignment Set Designed syntax: Set <variable/parameter/property name> <expression> ; where <variable/parameter/property name> - property or parameter name declared in macro. Dealing with the property name can be fully dereferred (i.e. object name, respectively variable name) it is always Iexpression. When errors during the process of dereference occur, if the value is for reading only, an error will be generated and the variable/parameter/property value will remain unchanged. <expression> - it is an expression whose value after the data evaluation are checked whether is same as variable/parameter/property type and if everything is all right, and hands over into a variable/parameter/property. When an error during the value evaluation occurs, an error will be generated and the variable/parameter/property value will remain unchanged. Calling Call Designed syntax: Call < macro/method/event name> <parameter list> ; where <macro/method/event> - global macro name or method/event name in case of method / event it can be a full dereference of method/event (i.e. object name, respectively variable name). To be exact it is always expression type callable. When errors during the process of dereference occur, errors will be generated. <parameter list> - comma separated expressions that are paired with method/event macro. The number of expressions and parameters as well as the types has to correspond, if it is not this way, an error will be generated. Page 14 of 94

15 Flow control commands Three commands from Visual Basic have been used early macro exit, conditional macro branching and cycle. Macro exit ExitMacro Designed syntax: ExitMacro This command causes to exit the macro code. The control is given back to macro that the actual macro was calling - in case of the use of macro for the event handling, the control is returned to system and waits for the next event. The command refers to Exit Sub and Exit Function commands from Visual Basic. EndSub Command from Visual Basic is not required - as the particular macros are not required to be divided in text, only to mark the end and the beginning each of them. Conditional Branching Designed syntax: If <expression> <commands> ElseIf <expression> <commands> ElseIf <expression> <commands>.. Else <expression> <commands> EndIf ; where <expression> - it is an expression that has to be uint type. When an error during the expression evaluation occurs, an error is generated. If the control, after the error was handled, should return to the next command then the expression is handled like it evaluated to zero. <commands> - any syntactical correct block of commands When generated the design environment checks the correctness of blocks If..EndIf. To every If command there has to exit one EndIf command in the macro. Between If and EndIf commands there can exist maximum one Else command and many or no ElseIf commands that need to be before the Else command. At the same time If..EndIf block cannot interfere with the block structure of the command cycle. When run the first to be evaluated is If command. If the value is none zero then the commands after If and the following will be executed. Then it is continued with the commands after EndIf. Otherwise the first following ElseIf command is found and evaluates its expression. When the expression value is none zero, its commands are executed and it is continued after EndIf, otherwise it keeps on searching. Page 15 of 94

16 Cycle Do [While Until].. Loop [While Until] (ExitDo) This cycle handles of all type of cycles with one condition at the beginning / at the end, at the both places or nowhere. When generated, the design environment checks the correctness of the block Do..Loop, it assigns to every Do commands only one Loop command. And in addition the block structure of the other block of commands is not broken i.e. the branching of other cycles. Between the Do and Loop command can be an unlimited number of commands. The cycle can be left anywhere using the ExitDo command except the condition at the beginning and at the end. The parameter of ExitDo command is the level number of Do..Loop commands that are left. If the expression is evaluated as zero then it will be continued by the following command to ExitDo, otherwise it is continued by decent emerge of Loop command. If there are not enough Do..Loop loops in a macro then it is continued with the highest possible level of emerge in the given macro the macro is neither left nor the loops are skipped in those the calculation has not started yet (other blocks in row). When the cycle is left by ExitDo command, in the number of nest levels from command branching. Designed syntax of each command: Do DoWhile <expression> DoUntil <expression> Loop <expression> LoopWhile <expression> LoopUntil <expression> ExitDo <expression> ; where <expression> - expression that has to be uint type. When an error during the process of evaluation occurs, an error is generated. If the control, after the error was handled, should return to the next command then the expression is viewed as it evaluated to zero. The word While in the condition means, that the cycle is continued, if the expression value is none zero The word Until in the condition means, that the cycle will continue, if the expression value is zero Page 16 of 94

17 Error Handling Commands The commands are divided into two following group declaration handling commands resume error handling commands. Declaration handling commands are not any different from the executive and flow control commands, from the place where they can be used. They can be used anywhere where are other commands. For the macro it is always used the last called declaration handling command the block structure of the program does not have any influence on declaration handling command (if before the cycle command OnErrorCallException command for the error handling is used and in the cycle command OnErrorResumeNext command is called then even after the cycle will end, the declaration OnErrorResumeNext is used when an error occurs). Resume error handling commands as well the declaration handling commands do not differ from the place of use from the executive and flow control commands. While declaration handling commands are similar to executive commands they change the system status (i.e. change the way of error handling), the resume error handling commands are closer to flow control commands. In the macro that handles an error ( or macro that was called by error handling macro it can do with an arbitrary call level) resume from error command makes a change of place of the program execution - returns through all the macros that they have called among themselves during the process of error handling to the place where the error has occurred (even somewhere according to used error handling resume command) Declaration error handling command on error resume - OnErrorResumeNext Designed syntax: OnErrorResumeNext After this command is called and if an error occurs, the command, where the mistake has occurred is skipped to Err object then the error code is set and it is continued with the next command. In case the position where the error has occurred is a condition of the structured command (i.e. If,Do..Loop), then it is resumed with the next command after the entire structure. That means for If command it is continued after particular EndIf, in case of Do..Loop cycle it is continued after Loop. Page 17 of 94

18 Declaration of error handling command on error call macro OnErrorCallException Designed syntax: OnErrorCallException <macro/event name> <parameter list> ; where <macro/event name> - global macro name or event name in case of an event it can be a full event dereference (i.e. object name,..variable name,..) to be more precise it is an expression type callable. <parameter list> - comma separated expressions that are paired with the macro /event parameters. The number of expressions and parameters as well the types has to correspond, if it is not this way, an error will be generated. At the moment when an error occurs this command is called, Err object is set into error code and the macro that handles this error is called. If during the process of the name deference of error handling macro or during the parameters evaluation that handles the macro an error occurs, then the macro code, where the error has originally occurred, will be also interrupted, and the error is arisen at the position where the calling macro called the macro, where the error has originally occurred. The parameter evaluation called by a macro takes place within the macro context where the calling has been declared. Therefore it is possible for the macro parameters to use even the local macro variables. Return from error handling - resume on next command - ResumeNext Designed syntax: ResumeNext The command causes to end the error handling process and then code continues with the next command after the command where an error during the error handling has occurred. In case the error has occurred in the condition of the structured command (that is If,Do..LoopI) then it continues with the next command after the entire structure. See the above comments of Declaration of error handling OnErroResumeNext. Return from error handling - leave error macro ResumeLeaveMacro Designed syntax: ResumeLeaveMacro This command causes to end the error handling process and then code continues with the next command that has called the error macro (that is the macro where an error has occurred). If the error happens directly in the macro that handles the event, then the event handling will be finished it is passed on the next event handling, respectively it will wait for the next event if none takes place. Page 18 of 94

19 Leave Error Event ResumeLeaveEvent Designed syntax: ResumeLeaveEvent This command causes to end the error handling and event handling process. It is passed on the next event, if the next event has not taken place so far, it is waited for the next event. Remarks Rem command is used to insert remarks into source code. Designed syntax: Rem <any text> ; where <any text> - one line of text inserted by a user, within this text no syntactical restriction are set. Page 19 of 94

20 Command Writing Syntax In the design environment commands are written in Grid i.e. a table. This Grid has three columns with the following semantics: 1. Command 2. Command specification 3. Parameter The following syntax has been assigned for each command: Command Command specification Parameter Call <expression type callable> <parameter list> Dim <variable name> <type name> [* <declared length>] Do Do While <expression type uint> Do Until <expression type uint> Else Else If <expression type uint> EndIf Exit Do Exit Macro If <expression type uint> Loop Loop While <expression type uint> OnErrorCallException <expression type callable> <parameter list> OnErrorResumeNext Param <parameter name> <type name> ParamByval <parameter name> <type name> [* <declared length>] Rem <arbitrary text> Resume LeaveEvent Resume LeaveMacro Static <variable name> <type name> [*<declared length>] Set <lexpression> <expression> Page 20 of 94

21 3. Objects properties description The objects are divided into the following groups: 1. Abstract there are such objects which the real objects are inherited from and they alone do not have any instance (except from the rule). Such abstract object that has an instance is i.e. IdentificationObjectA at the button the button (i.e. ButtonObject object) does not inherit from it, but the IndetificationObjectA object is the value of its property. 2. Application there are such objects whose instances have been created in the design environment i.e. window, panel, picture or font. Most of their properties are inherited from abstract objects. 3. System it is the fixed part of the virtual world of the designed panels. The objects do not have any events, but on the other hand they define all methods and properties of the outside world Abstract objects Abstract objects apart from exceptions are the part of the bigger object through the inheritance mechanism. Exceptions deal with a case when the object is an abstract type of the object property. If they are a part created through the inheritance mechanism, they can be directly retyped to a bigger object. To distinguish their names, all their names end with the letter A BackGroundObject A An object inherits from the object BitmapObjectA. It contains: Property Type Description BackColor ColorObject Background color. Reference to a real color object or to NoObject, if not filled then the color is transparent. The object of the color can be the part of the palette which has been defined in the design environment. Bitmap BitmapObject Reference to the real picture object or to NoObject, if not filled. BtmHOri uint The picture horizontal orientation. The values are defined 0..left, 1..middle, 2..right, 3..tile (i.e. it repeats) To insert a different values is not checked, what will appear is not defined. BtmVOri uint The picture vertical orientation. The values are defined 0..up, 1..middle, 2..down, 3..tile (i.e. it repeats) To insert a different values is not checked, what will appear is not defined. Event Parameters Description OnSetBitmap ParamByVal Prev BitmapObject The event is called immediately after when someone changes the Bitmap object property. The event is dedicated i.e. for the change of the object size based on the object size. Page 21 of 94

22 BitmapObjectA The object is basic that means there is no object it could inherit from. Property Type Description Bitmap BitmapObject Reference to a real picture object or to NoObject, if not filled. BtmHOri uint The picture horizontal orientation. The values are defined 0..left, 1..middle, 2..right, 3..tile (i.e. it repeats) To insert a different values isnot checked, what will appear is not defined. BtmVOri uint The picture vertical orientation. The values are defined 0..up, 1..middle, 2..down, 3..tile (i.e. it repeats) To insert a different values isnot checked, what will appear is not defined. Event Parameters Description OnSetBitmap ParamByVal Prev BitmapObject The event is called immediately when someone changes the Bitmap object property. This event is dedicated i.e. to change the object size upon the size change of the picture. Page 22 of 94

23 CaptionObjectA An object inherits from the object TextObjectA. It contains: Property Type Description BackColor ColorObject The caption background color of the window. Reference to a real color object or to NoObject, if not filled then the color is transparent. The objects of the color can be the part of the palette, which has been defined in the design environment. Color ColorObject Text color. Reference to a real color object it can never be NoObject then the color would be transparent. The objects of the color can be the part of the palette, which has been defined in the design environment. Flash uint If the value is a zero the text will not flash. Otherwise the text flashes according to entered Period and Ratio parameters. Font FontObject Reference to a real font object or NoObject, if not filled then text will not appear. Height uint The caption height of the window. If the height is a zero then the caption will not appear (in the case is not possible to move the window) Period uint Assigns the text-flashing period in milliseconds. If the value is a zero then the text will not be flashing. Ratio uint Assigns the number percentage of the period when the text appears. For instance for the value Period=4000 and Ratio=25 the text appears for 1 second and hides for 3 seconds. Text string*50 Text of caption TxtHOri uint The text horizontal orientation. The values are defined 0..left, 1..middle, 2..right. To insert a different value is not checked, what will appear is not defined. TxtVOri uint The text vertical orientation. The values are defined 0..left, 1..middle, 2..right. To insert a different value is not checked, what will appear is not defined. WordWrap uint If the value is a zero then the text appears on one line. In the opposite case the text is automatically broken into more lines according to the width of the object CollectionObjectA The object is basic i.e. there is no object from which it could inherit. The object contains a collection composed of other object. Except the collection the object has one additional property: Property Type Description Count uint Number of object stored in collection (it is possible to refer to them through the number 0..Count 1) Page 23 of 94

24 Efekt3DobjectA The object is elementary/basic i.e. there is no object from which it could inherit. Property Type Description EbackColor ColorObject The darker color of the effect color. Reference to a real color, it can never be NoObject, and then the color would be transparent. The objects of the color can be the part of palette that has been defined in the design environment. EColor ColorObject The lighter color of the effect color. Referent to a real color, it can never be NoObject then the color would be transparent. The object of the color can be the part of palette that has been defined in the design environment. EfektType uint The type of 3D effect. The values are defined 0..for no effect, 1..raised, 2..inset. To insert different values is not checked, what will appear is not defined. EfektWidth uint The width of the effect. It is only used when the EfektType type is a zero FeedBackObject A The object is elementary/basic i.e. there is no object from which it could inherit. Property Type Description FeedAddr uint Number i.e. address of the variable (for FeedType type 2 and 3) or the value (for FeedType type 1) FeedType uint The address stored in the object. According to the values it is: 0. no address, that means other properties have no meaning 1. the address of value, through this value the feedback is realized 2. the address of variable 3. the address of variable with value condition FeedValue uint It is only defined for FeedType type 3. Then the feedback is defined not only through the variable but also through its actual value. Here the variable value is stored that it has to have, so the feedback would set the object value. Value uint The current object value. According to this value the object is drawn i.e. button, bargraph. According to this value the Message resp. Tabs object define what Message message resp. Tabs page will be displayed. This property is default. Event Parameters Description OnFeedBack ParamByVal Prev uint The event occurs at the moment when the feedback comes on resp. at the moment when its forced changes are performed. The event parameter is the previous object value. Page 24 of 94

25 IndetificationObjectA The object is basic i.e. there is no object which it could inherit from. Property Type Description Father IdentificationObjectA The father of the object. For the button itself, for instance it is the board that it is lying on. For the window and the page (as well as for the free objects i.e. a picture, font or a color) the value is NoObject. The property is for reading only. Name String * 50 The object name. The property is for reading only. Tag uint Free space where anyone, while the program is running, can note something. For the virtual world itself it has no importance. For the design environment it is forbidden. At the beginning the value is zero here. Top IdentificationObjectA Top object for an object. This means an object that has no father that is a page or a window. For the free objects i.e. a picture, font, color the value is NoObject. The property is for reading only. Method Parameters Description PosMe2Parent Converts the entered coordinates x, y relative to the object to coordinate relative to the parent object. If the father of the object is not defined (the value of the property Father is NoObject) then the coordinates remain the same. PosParent2Me PosParent2Top PosScreen2Top PosTop2Parent PosTop2Screen Converts the entered coordinates x, y relative to the parent object to relative coordinate directly to the object. If the father of the object is not defined (the value of the property Father is NoObject) then the coordinates remain the same. Converts the entered coordinates x, y relative to the parent object to relative coordinate to the top object (i.e. relative to the window or the page) If the father of the object is not defined (the value of the property Father is NoObject) then the coordinates relative to the top object remain the same as the coordinates relative to father of the object. Converts the entered coordinates x, y relative to the entire screen to coordinate relative to the top object (i.e. relative to the window or the page) Converts the entered coordinates x, y relative to the top object (i.e. relative to the window or the page) to coordinates relative to the parent of the object. If the father of the object is not defined (the value of the property Father is NoObject) then the coordinates relative to object remain the same as the coordinate relative to the father of the object. Converts the entered coordinates x, y relative to the top object (i.e. relative to a window or page) to coordinates relative to the entire screen. Page 25 of 94

26 LineObjectA The object is basic i.e. there is no object from which it could inherit. Property Type Description BackColor ColorObject The color used for the filling of the eventual gaps in line (see LineType). Reference to a real color object or NoObject, if not filled then the color is transparent. The objects of the color can be the part of the palette, which has been defined in the design environment. Color ColorObject It is the color of the line. Reference to a real color object it can never be NoObject then the color would be transparent. The objects of the color can be the part of the palette, which has been defined in the design environment LineType uint It is the type of the drawn line. The defined values are 0..none, 1..Solid, 2..Dash (dashes), 4..DashDot (dash dot), 5..DashDotDot (dash and two dots) LineWidth uint The line width Page 26 of 94

27 ObjectLookObjectA The object is inherited from BackGroundObjectA and TextObjectA objects. It contains: Property Type Description BackColor ColorObject Background color. Reference to a real color object, if not filled then the color is transparent. The objects of the color can be the part of the palette, which has been defined in the design environment. Bitmap BitmapObject Reference to a real picture object or to NoObject, if not filled. BtmHOri uint The picture horizontal orientation. The defined values are 0..up, 1..middle, 2..down, 3..tile (i.e. it repeats) To insert a different values is not checked, what will appear is not defined. BtmVOri uint The picture vertical orientation. The picture horizontal orientation. The defined values are 0..up, 1..middle, 2..down, 3..tile (i.e. it repeats) To insert a different values is not checked, what will appear is not defined. Color ColorObject The text color. Reference to a real color object it can never be NoObject (then the color would be transparent). The objects of the color can be the part of the palette, which has been defined in the design environment. Flash uint If the value is a zero then will not flash. Otherwise the text would flash according to the entered Period and Ration parameters. Font FontObject Reference to a real font object or to NoObject, if not filled (in this case the text is not displayed). Period uint It defines the flashing period in the milliseconds. If the value is a zero, then the text will not flash. Ratio uint It defines the number of the period percentage, when the text will be displayed. For instance for the Period=4000 and Ratio=25 the text is displayed for 1 second and hidden for 3 seconds. Text string*50 The text caption TxTHOri uint The text horizontal orientation. The defined values are 0..left, 1..middle, 2..right. To insert different values is not checked, what will appear is not defined. TxtVOri uint The text vertical orientation. The defined values are 0..up, 1..middle, 2..down. To insert different values is not checked, what will appear is not defined. WordWrap uint If the value is a zero then the text appears on one line. In the opposite case the text is automatically broken into more lines according to the width of the object Event Parameters Description OnSetBitmap ParamByVal Prev BitmapObject The event is called immediately after when someone changes the Bitmap object property. The event is dedicated i.e. for the change of the object size based on the picture size Page 27 of 94

28 PositionObjectA Object is basic i.e. there is no object it could inherit from. Property Type Description Height uint The total object height. For the page the property cannot be changed. Width uint The total object width. For the page the property cannot be changed. X uint The coordinate X object position within the area of its parent. For the window it is a position on the screen, for the page the property cannot be changed. Y uint The coordinate Y object position within the area of its parent. For the window it is a position on the screen, for the page the property cannot be changed. Z uint The Z coordinate position of the object within the area of its parent that means it determines the overlapping of the objects among each other. In case two objects will have the same coordinate Z, the resulting status on the screen is not explicitly defined. For the top object (that is a window or a page), the coordinate sets position on the screen among other top objects. For these objects the property cannot be changed, only read SubCollectionObjectA The object is basic i.e. there is no object it could inherit from. This object is read only. It is possible to edit the stored objects in the collection. Property Type Description Child CollectionObjectA It is the collection of all child objects of IdentificationObjectA type. The property is for read only. The value is default. Page 28 of 94

29 TextObjectA The object is basic i.e. there is no object from which it could inherit. Property Type Description Color ColorObject Text color. Reference to a real color object it can never be NoObject then the color would be transparent. The objects of the color can be the part of the palette which has been defined in the design environment. Flash uint If the value is a zero the text will not flash. Otherwise the text flashes according to entered Period and Ratio parameters. Font FontObject Reference to a real font object or NoObject, if not filled then text will not appear. Period uint Assigns the text-flashing period in milliseconds. If the value is a zero then the text will not be flashing. Ratio uint Assigns the number percentage of the period when the text appears. For instance for the value Period=4000 and Ratio=25 the text appears for 1 second and hides for 3 seconds. Text string*50 Text of caption TxtHOri uint The text horizontal orientation. The values are defined 0..left, 1..middle, 2..right. To insert a different value is not checked, what will appear is not defined. TxtVOri uint The text vertical orientation. The values are defined 0..left, 1..middle, 2..right. To insert a different value is not checked, what will appear is not defined. WordWrap uint If the value is a zero then the text appears on one line. In the opposite case the text is automatically broken into more lines according to the width of the object. Page 29 of 94

30 TopLevelObjectA The object inherits from SubCollectionObjectA and VisibilityObjectA object. The visibility of the object (Visible property) is possible to read only, but it doesn t give the meaningful values. Note: the page, window visibility, generally the object is get through the View object. The object contains: Property Type Description Father IndetificationObjectA The father of the object. For the button itself, for instance it is the board that it is lying on. For the window and the page (as well as for the free objects i.e. a picture, font or a color) the value is NoObject. The property is for reading only. Height uint It is the complete height of the object. For the page the property cannot be changed. Child CollectionObjectA It is the collection of all child objects of IdentificationObjectA type. The property is for read only. The value is default. Name string*50 The object name. The property is for reading only. The value is default. Tag uint Free space where anyone, while the program is running, can note something. For the virtual world itself it has no importance. For the design environment it is forbidden. At the beginning the value is zero here. Top IdentificationObjectA Top object for an object. This means an object that has no father that is a page or a window. For the free objects i.e. a picture, font, color the value is NoObject. Transparent uint When the value is a zero, the object is not transparent that means it writes on the entire area of a rectangle determined by a position (without a coordinate Z).The none-zero value means that some part of the object is not fully drawn. I.e. The background is a picture with a transparent color, The feature is read only. Visible uint When the value is a zero, the object is neither drawn nor it gets information about the user s touches on the panel (The events are not generated) On the other hand when the value is other than the zero, the object is drawn as well it receives events. Width uint It is the total width of the object. The property cannot be changed for the page. X uint The X coordinate position of the object within the area of its parent. Y uint The Y coordinate position of the object with the area of its parent. For the window it is a position on the screen, for the page the property cannot be changed. Z uint The Z coordinate position of the object within the area of its parent that means it determines the overlapping of the objects among each other. In case two objects will have the same coordinate Z, the resulting status on the screen is not explicitly defined. For the top object (that is a window or a page), the coordinate sets position on the screen among other top objects. For these objects the property cannot be changed, only read. Page 30 of 94

Lexical Considerations

Lexical Considerations Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Fall 2005 Handout 6 Decaf Language Wednesday, September 7 The project for the course is to write a

More information

Object oriented programming. Instructor: Masoud Asghari Web page: Ch: 3

Object oriented programming. Instructor: Masoud Asghari Web page:   Ch: 3 Object oriented programming Instructor: Masoud Asghari Web page: http://www.masses.ir/lectures/oops2017sut Ch: 3 1 In this slide We follow: https://docs.oracle.com/javase/tutorial/index.html Trail: Learning

More information

Chapter 1 Summary. Chapter 2 Summary. end of a string, in which case the string can span multiple lines.

Chapter 1 Summary. Chapter 2 Summary. end of a string, in which case the string can span multiple lines. Chapter 1 Summary Comments are indicated by a hash sign # (also known as the pound or number sign). Text to the right of the hash sign is ignored. (But, hash loses its special meaning if it is part of

More information

The PCAT Programming Language Reference Manual

The PCAT Programming Language Reference Manual The PCAT Programming Language Reference Manual Andrew Tolmach and Jingke Li Dept. of Computer Science Portland State University September 27, 1995 (revised October 15, 2002) 1 Introduction The PCAT language

More information

VHDL Lexical Elements

VHDL Lexical Elements 1 Design File = Sequence of Lexical Elements && Separators (a) Separators: Any # of Separators Allowed Between Lexical Elements 1. Space character 2. Tab 3. Line Feed / Carriage Return (EOL) (b) Lexical

More information

CGS 3066: Spring 2015 JavaScript Reference

CGS 3066: Spring 2015 JavaScript Reference CGS 3066: Spring 2015 JavaScript Reference Can also be used as a study guide. Only covers topics discussed in class. 1 Introduction JavaScript is a scripting language produced by Netscape for use within

More information

1 Lexical Considerations

1 Lexical Considerations Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Spring 2013 Handout Decaf Language Thursday, Feb 7 The project for the course is to write a compiler

More information

\n is used in a string to indicate the newline character. An expression produces data. The simplest expression

\n is used in a string to indicate the newline character. An expression produces data. The simplest expression Chapter 1 Summary Comments are indicated by a hash sign # (also known as the pound or number sign). Text to the right of the hash sign is ignored. (But, hash loses its special meaning if it is part of

More information

Algorithmic "imperative" language

Algorithmic imperative language Algorithmic "imperative" language Undergraduate years Epita November 2014 The aim of this document is to introduce breiy the "imperative algorithmic" language used in the courses and tutorials during the

More information

Chapter 12 Variables and Operators

Chapter 12 Variables and Operators Chapter 12 Variables and Operators Highlights (1) r. height width operator area = 3.14 * r *r + width * height literal/constant variable expression (assignment) statement 12-2 Highlights (2) r. height

More information

Maciej Sobieraj. Lecture 1

Maciej Sobieraj. Lecture 1 Maciej Sobieraj Lecture 1 Outline 1. Introduction to computer programming 2. Advanced flow control and data aggregates Your first program First we need to define our expectations for the program. They

More information

TSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting.

TSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting. TSM Report Designer The TSM Report Designer is used to create and modify your TSM reports. Each report in TSM prints data found in the databases assigned to that report. TSM opens these databases according

More information

Lexical Considerations

Lexical Considerations Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Spring 2010 Handout Decaf Language Tuesday, Feb 2 The project for the course is to write a compiler

More information

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development INFS 2150 Introduction to Web Development 3. Page Layout Design Objectives Create a reset style sheet Explore page layout designs Center a block element Create a floating element Clear a floating layout

More information

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development Objectives INFS 2150 Introduction to Web Development 3. Page Layout Design Create a reset style sheet Explore page layout designs Center a block element Create a floating element Clear a floating layout

More information

COMP322 - Introduction to C++ Lecture 02 - Basics of C++

COMP322 - Introduction to C++ Lecture 02 - Basics of C++ COMP322 - Introduction to C++ Lecture 02 - Basics of C++ School of Computer Science 16 January 2012 C++ basics - Arithmetic operators Where possible, C++ will automatically convert among the basic types.

More information

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */ Overview Language Basics This chapter describes the basic elements of Rexx. It discusses the simple components that make up the language. These include script structure, elements of the language, operators,

More information

Lecture Notes on Ints

Lecture Notes on Ints Lecture Notes on Ints 15-122: Principles of Imperative Computation Frank Pfenning Lecture 2 August 26, 2010 1 Introduction Two fundamental types in almost any programming language are booleans and integers.

More information

Final exam. Final exam will be 12 problems, drop any 2. Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers)

Final exam. Final exam will be 12 problems, drop any 2. Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers) Review Final exam Final exam will be 12 problems, drop any 2 Cumulative up to and including week 14 (emphasis on weeks 9-14: classes & pointers) 2 hours exam time, so 12 min per problem (midterm 2 had

More information

ME 461 C review Session Fall 2009 S. Keres

ME 461 C review Session Fall 2009 S. Keres ME 461 C review Session Fall 2009 S. Keres DISCLAIMER: These notes are in no way intended to be a complete reference for the C programming material you will need for the class. They are intended to help

More information

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials Fundamentals We build up instructions from three types of materials Constants Expressions Fundamentals Constants are just that, they are values that don t change as our macros are executing Fundamentals

More information

UNIT-II Introduction to UML

UNIT-II Introduction to UML UNIT-II Introduction to UML - P. P. Mahale UML OVERVIEW OF UML :- We need a Modeling Language! We will use the Unified Modeling Language, UML), Provides a standard for artifacts produced during development

More information

Fundamental of Programming (C)

Fundamental of Programming (C) Borrowed from lecturer notes by Omid Jafarinezhad Fundamental of Programming (C) Lecturer: Vahid Khodabakhshi Lecture 3 Constants, Variables, Data Types, And Operations Department of Computer Engineering

More information

EDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION

EDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION EDIABAS Electronic Diagnostic Basic System BEST/2 LANGUAGE DESCRIPTION VERSION 6b Copyright BMW AG, created by Softing AG BEST2SPC.DOC CONTENTS CONTENTS...2 1. INTRODUCTION TO BEST/2...5 2. TEXT CONVENTIONS...6

More information

CMPT 125: Lecture 3 Data and Expressions

CMPT 125: Lecture 3 Data and Expressions CMPT 125: Lecture 3 Data and Expressions Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 3, 2009 1 Character Strings A character string is an object in Java,

More information

PRELIMINARY APPLE BASIC USERS MANUAL OCTOBER Apple Computer Company. 770 Welch Rd., Palo Alto, CA (415)

PRELIMINARY APPLE BASIC USERS MANUAL OCTOBER Apple Computer Company. 770 Welch Rd., Palo Alto, CA (415) PRELIMINARY APPLE BASIC USERS MANUAL OCTOBER 1976 Apple Computer Company. 770 Welch Rd., Palo Alto, CA 94304 (415) 326-4248 This is a PRELIMINARY manual. It will, most likley, contain errors, incorrect

More information

Full file at Chapter 2: Foundation Concepts

Full file at   Chapter 2: Foundation Concepts Chapter 2: Foundation Concepts TRUE/FALSE 1. The input source for the conceptual modeling phase is the business rules culled out from the requirements specification supplied by the user community. T PTS:

More information

MIDIPoet -- User's Manual Eugenio Tisselli

MIDIPoet -- User's Manual Eugenio Tisselli MIDIPoet -- User's Manual 1999-2007 Eugenio Tisselli http://www.motorhueso.net 1 Introduction MIDIPoet is a software tool that allows the manipulation of text and image on a computer in real-time. It has

More information

The pixelman Language Reference Manual. Anthony Chan, Teresa Choe, Gabriel Kramer-Garcia, Brian Tsau

The pixelman Language Reference Manual. Anthony Chan, Teresa Choe, Gabriel Kramer-Garcia, Brian Tsau The pixelman Language Reference Manual Anthony Chan, Teresa Choe, Gabriel Kramer-Garcia, Brian Tsau October 2017 Contents 1 Introduction 2 2 Lexical Conventions 2 2.1 Comments..........................................

More information

ECE Digital System Design & Synthesis Exercise 1 - Logic Values, Data Types & Operators - With Answers

ECE Digital System Design & Synthesis Exercise 1 - Logic Values, Data Types & Operators - With Answers ECE 601 - Digital System Design & Synthesis Exercise 1 - Logic Values, Data Types & Operators - With Answers Fall 2001 Final Version (Important changes from original posted Exercise 1 shown in color) Variables

More information

Chapter 17. Fundamental Concepts Expressed in JavaScript

Chapter 17. Fundamental Concepts Expressed in JavaScript Chapter 17 Fundamental Concepts Expressed in JavaScript Learning Objectives Tell the difference between name, value, and variable List three basic data types and the rules for specifying them in a program

More information

UNIT II. Syllabus. a. An Overview of the UML: Visualizing, Specifying, Constructing, Documenting

UNIT II. Syllabus. a. An Overview of the UML: Visualizing, Specifying, Constructing, Documenting UNIT II Syllabus Introduction to UML (08 Hrs, 16 Marks) a. An Overview of the UML: Visualizing, Specifying, Constructing, Documenting b. Background, UML Basics c. Introducing UML 2.0 A Conceptual Model

More information

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Lesson Goals Understand the basic constructs of a Java Program Understand how to use basic identifiers Understand simple Java data types

More information

JME Language Reference Manual

JME Language Reference Manual JME Language Reference Manual 1 Introduction JME (pronounced jay+me) is a lightweight language that allows programmers to easily perform statistic computations on tabular data as part of data analysis.

More information

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are:

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are: LESSON 1 FUNDAMENTALS OF C The purpose of this lesson is to explain the fundamental elements of the C programming language. C like other languages has all alphabet and rules for putting together words

More information

The SPL Programming Language Reference Manual

The SPL Programming Language Reference Manual The SPL Programming Language Reference Manual Leonidas Fegaras University of Texas at Arlington Arlington, TX 76019 fegaras@cse.uta.edu February 27, 2018 1 Introduction The SPL language is a Small Programming

More information

Overview (4) CPE 101 mod/reusing slides from a UW course. Assignment Statement: Review. Why Study Expressions? D-1

Overview (4) CPE 101 mod/reusing slides from a UW course. Assignment Statement: Review. Why Study Expressions? D-1 CPE 101 mod/reusing slides from a UW course Overview (4) Lecture 4: Arithmetic Expressions Arithmetic expressions Integer and floating-point (double) types Unary and binary operators Precedence Associativity

More information

Full file at

Full file at Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class

More information

Computer Organization & Systems Exam I Example Questions

Computer Organization & Systems Exam I Example Questions Computer Organization & Systems Exam I Example Questions 1. Pointer Question. Write a function char *circle(char *str) that receives a character pointer (which points to an array that is in standard C

More information

Fundamentals of Programming

Fundamentals of Programming Fundamentals of Programming Lecture 3 - Constants, Variables, Data Types, And Operations Lecturer : Ebrahim Jahandar Borrowed from lecturer notes by Omid Jafarinezhad Outline C Program Data types Variables

More information

Stateflow Best Practices By Michael Burke

Stateflow Best Practices By Michael Burke Stateflow Best Practices By Michael Burke 2012 The MathWorks, Inc. 1 Topics Background Overview of terms Readability Stateflow hierarchy Modeling tips Basic rules: MAAB style guide 2 Background Objective

More information

Civil Engineering Computation

Civil Engineering Computation Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday

More information

CS113: Lecture 3. Topics: Variables. Data types. Arithmetic and Bitwise Operators. Order of Evaluation

CS113: Lecture 3. Topics: Variables. Data types. Arithmetic and Bitwise Operators. Order of Evaluation CS113: Lecture 3 Topics: Variables Data types Arithmetic and Bitwise Operators Order of Evaluation 1 Variables Names of variables: Composed of letters, digits, and the underscore ( ) character. (NO spaces;

More information

Statements and Operators

Statements and Operators Statements and Operators Old Content - visit altium.com/documentation Mod ifi ed by Rob Eva ns on Feb 15, 201 7 Parent page: EnableBasic Enable Basic Statements Do...Loop Conditional statement that repeats

More information

In addition to the primary macro syntax, the system also supports several special macro types:

In addition to the primary macro syntax, the system also supports several special macro types: The system identifies macros using special parentheses. You need to enclose macro expressions into curly brackets and the percentage symbol: {% expression %} Kentico provides an object-oriented language

More information

DEPARTMENT OF MATHS, MJ COLLEGE

DEPARTMENT OF MATHS, MJ COLLEGE T. Y. B.Sc. Mathematics MTH- 356 (A) : Programming in C Unit 1 : Basic Concepts Syllabus : Introduction, Character set, C token, Keywords, Constants, Variables, Data types, Symbolic constants, Over flow,

More information

)454 : 4(% #(!2!#4%2 3%4!.$ "!3)# %,%-%.43 -!.-!#().%,!.'5!'% )454 Recommendation : INTERNATIONAL TELECOMMUNICATION UNION

)454 : 4(% #(!2!#4%2 3%4!.$ !3)# %,%-%.43 -!.-!#().%,!.'5!'% )454 Recommendation : INTERNATIONAL TELECOMMUNICATION UNION INTERNATIONAL TELECOMMUNICATION UNION )454 : TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU -!.-!#().%,!.'5!'% 4(% #(!2!#4%2 3%4!.$ "!3)# %,%-%.43 )454 Recommendation : (Extract from the "LUE "OOK) NOTES

More information

The Design of C: A Rational Reconstruction

The Design of C: A Rational Reconstruction The Design of C: A Rational Reconstruction 1 Goals of this Lecture Help you learn about: The decisions that were available to the designers of C The decisions that were made by the designers of C and thereby

More information

Chapter 2. Designing a Program. Input, Processing, and Output Fall 2016, CSUS. Chapter 2.1

Chapter 2. Designing a Program. Input, Processing, and Output Fall 2016, CSUS. Chapter 2.1 Chapter 2 Input, Processing, and Output Fall 2016, CSUS Designing a Program Chapter 2.1 1 Algorithms They are the logic on how to do something how to compute the value of Pi how to delete a file how to

More information

Strings in Visual Basic. Words, Phrases, and Spaces

Strings in Visual Basic. Words, Phrases, and Spaces Strings in Visual Basic Words, Phrases, and Spaces Strings are a series of characters. Constant strings never change and are indicated by double quotes. Examples: Fleeb Here is a string. Strings are a

More information

Introduction to C# Applications

Introduction to C# Applications 1 2 3 Introduction to C# Applications OBJECTIVES To write simple C# applications To write statements that input and output data to the screen. To declare and use data of various types. To write decision-making

More information

The Design of C: A Rational Reconstruction"

The Design of C: A Rational Reconstruction The Design of C: A Rational Reconstruction 1 Goals of this Lecture Help you learn about: The decisions that were available to the designers of C The decisions that were made by the designers of C and thereby

More information

Adding CSS to your HTML

Adding CSS to your HTML Adding CSS to your HTML Lecture 3 CGS 3066 Fall 2016 September 27, 2016 Making your document pretty CSS is used to add presentation to the HTML document. We have seen 3 ways of adding CSS. In this lecture,

More information

Information Science 1

Information Science 1 Information Science 1 Simple Calcula,ons Week 09 College of Information Science and Engineering Ritsumeikan University Topics covered l Terms and concepts from Week 8 l Simple calculations Documenting

More information

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,

More information

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs.

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. Lesson 2 VARIABLES Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. WHAT ARE VARIABLES? When you input data (i.e. information) into a computer

More information

Scheme Quick Reference

Scheme Quick Reference Scheme Quick Reference COSC 18 Fall 2003 This document is a quick reference guide to common features of the Scheme language. It is not intended to be a complete language reference, but it gives terse summaries

More information

Highlights. - Making threads. - Waiting for threads. - Review (classes, pointers, inheritance)

Highlights. - Making threads. - Waiting for threads. - Review (classes, pointers, inheritance) Parallel processing Highlights - Making threads - Waiting for threads - Review (classes, pointers, inheritance) Review: CPUs Review: CPUs In the 2000s, computing too a major turn: multi-core processors

More information

Operators. Java operators are classified into three categories:

Operators. Java operators are classified into three categories: Operators Operators are symbols that perform arithmetic and logical operations on operands and provide a meaningful result. Operands are data values (variables or constants) which are involved in operations.

More information

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages EnableBasic Old Content - visit altium.com/documentation Modified by Admin on Sep 13, 2017 Parent page: Scripting Languages This Enable Basic Reference provides an overview of the structure of scripts

More information

COMP 388/441 HCI: 07 - Menu Selection, Forms, and Dialog Boxes Menu Selection, Forms, and Dialog Boxes

COMP 388/441 HCI: 07 - Menu Selection, Forms, and Dialog Boxes Menu Selection, Forms, and Dialog Boxes 07 - Menu Selection, Forms, and Dialog Boxes Menus Overview Offer cues, users can categorize actions easier (no syntax recall required) Especially effective when users have little training, use the UI

More information

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1)

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 2 Professional Program: Data Administration and Management JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) AGENDA

More information

(Refer Slide Time: 00:26)

(Refer Slide Time: 00:26) Programming, Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science and Engineering Indian Institute Technology, Madras Module 07 Lecture 07 Contents Repetitive statements

More information

MATVEC: MATRIX-VECTOR COMPUTATION LANGUAGE REFERENCE MANUAL. John C. Murphy jcm2105 Programming Languages and Translators Professor Stephen Edwards

MATVEC: MATRIX-VECTOR COMPUTATION LANGUAGE REFERENCE MANUAL. John C. Murphy jcm2105 Programming Languages and Translators Professor Stephen Edwards MATVEC: MATRIX-VECTOR COMPUTATION LANGUAGE REFERENCE MANUAL John C. Murphy jcm2105 Programming Languages and Translators Professor Stephen Edwards Language Reference Manual Introduction The purpose of

More information

Lecture 3 Tao Wang 1

Lecture 3 Tao Wang 1 Lecture 3 Tao Wang 1 Objectives In this chapter, you will learn about: Arithmetic operations Variables and declaration statements Program input using the cin object Common programming errors C++ for Engineers

More information

Decaf Language Reference

Decaf Language Reference Decaf Language Reference Mike Lam, James Madison University Fall 2016 1 Introduction Decaf is an imperative language similar to Java or C, but is greatly simplified compared to those languages. It will

More information

Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal

Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal Lesson Goals Understand the basic constructs of a Java Program Understand how to use basic identifiers Understand simple Java data types and

More information

Overview: Programming Concepts. Programming Concepts. Names, Values, And Variables

Overview: Programming Concepts. Programming Concepts. Names, Values, And Variables Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript Fluency with Information Technology Third Edition by Lawrence Snyder Overview: Programming Concepts Programming: Act of formulating

More information

Overview: Programming Concepts. Programming Concepts. Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript

Overview: Programming Concepts. Programming Concepts. Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript Fluency with Information Technology Third Edition by Lawrence Snyder Overview: Programming Concepts Programming: Act of formulating

More information

L-System Fractal Generator: Language Reference Manual

L-System Fractal Generator: Language Reference Manual L-System Fractal Generator: Language Reference Manual Michael Eng, Jervis Muindi, Timothy Sun Contents 1 Program Definition 3 2 Lexical Conventions 3 2.1 Comments...............................................

More information

Using Microsoft Access

Using Microsoft Access Using Microsoft Access USING MICROSOFT ACCESS 1 Interfaces 2 Basic Macros 2 Exercise 1. Creating a Test Macro 2 Exercise 2. Creating a Macro with Multiple Steps 3 Exercise 3. Using Sub Macros 5 Expressions

More information

1. Multimedia authoring is the process of creating a multimedia production:

1. Multimedia authoring is the process of creating a multimedia production: Chapter 8 1. Multimedia authoring is the process of creating a multimedia production: Creating/assembling/sequencing media elements Adding interactivity Testing (Alpha/Beta) Packaging Distributing to end

More information

Topic 1: Introduction

Topic 1: Introduction Recommended Exercises and Readings Topic 1: Introduction From Haskell: The craft of functional programming (3 rd Ed.) Readings: Chapter 1 Chapter 2 1 2 What is a Programming Paradigm? Programming Paradigm:

More information

Overview About KBasic

Overview About KBasic Overview About KBasic The following chapter has been used from Wikipedia entry about BASIC and is licensed under the GNU Free Documentation License. Table of Contents Object-Oriented...2 Event-Driven...2

More information

Visual C# Instructor s Manual Table of Contents

Visual C# Instructor s Manual Table of Contents Visual C# 2005 2-1 Chapter 2 Using Data At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion Topics Additional Projects Additional Resources Key Terms

More information

SPARK-PL: Introduction

SPARK-PL: Introduction Alexey Solovyev Abstract All basic elements of SPARK-PL are introduced. Table of Contents 1. Introduction to SPARK-PL... 1 2. Alphabet of SPARK-PL... 3 3. Types and variables... 3 4. SPARK-PL basic commands...

More information

2.2 Syntax Definition

2.2 Syntax Definition 42 CHAPTER 2. A SIMPLE SYNTAX-DIRECTED TRANSLATOR sequence of "three-address" instructions; a more complete example appears in Fig. 2.2. This form of intermediate code takes its name from instructions

More information

Access Intermediate

Access Intermediate Access 2010 - Intermediate (103-134) Building Access Databases Notes Quick Links Building Databases Pages AC52 AC56 AC91 AC93 Building Access Tables Pages AC59 AC67 Field Types Pages AC54 AC56 AC267 AC270

More information

XC Specification. 1 Lexical Conventions. 1.1 Tokens. The specification given in this document describes version 1.0 of XC.

XC Specification. 1 Lexical Conventions. 1.1 Tokens. The specification given in this document describes version 1.0 of XC. XC Specification IN THIS DOCUMENT Lexical Conventions Syntax Notation Meaning of Identifiers Objects and Lvalues Conversions Expressions Declarations Statements External Declarations Scope and Linkage

More information

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web

More information

GBIL: Generic Binary Instrumentation Language. Language Reference Manual. By: Andrew Calvano. COMS W4115 Fall 2015 CVN

GBIL: Generic Binary Instrumentation Language. Language Reference Manual. By: Andrew Calvano. COMS W4115 Fall 2015 CVN GBIL: Generic Binary Instrumentation Language Language Reference Manual By: Andrew Calvano COMS W4115 Fall 2015 CVN Table of Contents 1) Introduction 2) Lexical Conventions 1. Tokens 2. Whitespace 3. Comments

More information

HydroOffice Diagrams

HydroOffice Diagrams Hydro Office Software for Water Sciences HydroOffice Diagrams User Manual for Ternary 1.0, Piper 2.0 and Durov 1.0 tool HydroOffice.org Citation: Gregor M. 2013. HydroOffice Diagrams user manual for Ternary1.0,

More information

Le L c e t c ur u e e 2 To T p o i p c i s c t o o b e b e co c v o e v r e ed e Variables Operators

Le L c e t c ur u e e 2 To T p o i p c i s c t o o b e b e co c v o e v r e ed e Variables Operators Course Name: Advanced Java Lecture 2 Topics to be covered Variables Operators Variables -Introduction A variables can be considered as a name given to the location in memory where values are stored. One

More information

Petros: A Multi-purpose Text File Manipulation Language

Petros: A Multi-purpose Text File Manipulation Language Petros: A Multi-purpose Text File Manipulation Language Language Reference Manual Joseph Sherrick js2778@columbia.edu June 20, 2008 Table of Contents 1 Introduction...................................................

More information

Binary Values. CSE 410 Lecture 02

Binary Values. CSE 410 Lecture 02 Binary Values CSE 410 Lecture 02 Lecture Outline Binary Decimal, Binary, and Hexadecimal Integers Why Place Value Representation Boolean Algebra 2 First: Why Binary? Electronic implementation Easy to store

More information

Computer Programming

Computer Programming Computer Programming Introduction Marius Minea marius@cs.upt.ro http://cs.upt.ro/ marius/curs/cp/ 26 September 2017 Course goals Learn programming fundamentals no prior knowledge needed for those who know,

More information

Arithmetic and Bitwise Operations on Binary Data

Arithmetic and Bitwise Operations on Binary Data Arithmetic and Bitwise Operations on Binary Data CSCI 2400: Computer Architecture ECE 3217: Computer Architecture and Organization Instructor: David Ferry Slides adapted from Bryant & O Hallaron s slides

More information

SECTION II: LANGUAGE BASICS

SECTION II: LANGUAGE BASICS Chapter 5 SECTION II: LANGUAGE BASICS Operators Chapter 04: Basic Fundamentals demonstrated declaring and initializing variables. This chapter depicts how to do something with them, using operators. Operators

More information

BIM222 Internet Programming

BIM222 Internet Programming BIM222 Internet Programming Week 7 Cascading Style Sheets (CSS) Adding Style to your Pages Part II March 20, 2018 Review: What is CSS? CSS stands for Cascading Style Sheets CSS describes how HTML elements

More information

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0. L J Howell UX Software Ver. 1.0

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0. L J Howell UX Software Ver. 1.0 VISUAL GUIDE to RX Scripting for Roulette Xtreme - System Designer 2.0 L J Howell UX Software 2009 Ver. 1.0 TABLE OF CONTENTS INTRODUCTION...ii What is this book about?... iii How to use this book... iii

More information

WATER (No kerning) WATER (Automatic Kerning) WATER (Manual Kerning).

WATER (No kerning) WATER (Automatic Kerning) WATER (Manual Kerning). Styles Learning to use styles is a very effective way to save time and improve the consistency of publications. A style is a group of attributes that can be applied at once, to one or more paragraphs,

More information

JScript Reference. Contents

JScript Reference. Contents JScript Reference Contents Exploring the JScript Language JScript Example Altium Designer and Borland Delphi Run Time Libraries Server Processes JScript Source Files PRJSCR, JS and DFM files About JScript

More information

The xtemplate package Prototype document functions

The xtemplate package Prototype document functions The xtemplate package Prototype document functions The L A TEX3 Project Released 2018-05-12 There are three broad layers between putting down ideas into a source file and ending up with a typeset document.

More information

CS 2604 Minor Project 1 DRAFT Fall 2000

CS 2604 Minor Project 1 DRAFT Fall 2000 RPN Calculator For this project, you will design and implement a simple integer calculator, which interprets reverse Polish notation (RPN) expressions. There is no graphical interface. Calculator input

More information

Flow Control: Branches and loops

Flow Control: Branches and loops Flow Control: Branches and loops In this context flow control refers to controlling the flow of the execution of your program that is, which instructions will get carried out and in what order. In the

More information

ENGL 323: Writing for New Media Repurposing Content for the Web Part Two

ENGL 323: Writing for New Media Repurposing Content for the Web Part Two ENGL 323: Writing for New Media Repurposing Content for the Web Part Two Dr. Michael Little michaellittle@kings.edu Hafey-Marian 418 x5917 Using Color to Establish Visual Hierarchies Color is useful in

More information

The Object Model Overview. Contents. Section Title

The Object Model Overview. Contents. Section Title The Object Model 1 This chapter describes the concrete object model that underlies the CORBA architecture. The model is derived from the abstract Core Object Model defined by the Object Management Group

More information

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

Weiss Chapter 1 terminology (parenthesized numbers are page numbers) Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement

More information

Forms for Android Version Manual. Revision Date 12/7/2013. HanDBase is a Registered Trademark of DDH Software, Inc.

Forms for Android Version Manual. Revision Date 12/7/2013. HanDBase is a Registered Trademark of DDH Software, Inc. Forms for Android Version 4.6.300 Manual Revision Date 12/7/2013 HanDBase is a Registered Trademark of DDH Software, Inc. All information contained in this manual and all software applications mentioned

More information

Single Menus No other menus will follow necessitating additional user choices

Single Menus No other menus will follow necessitating additional user choices 57 UNIT-III STRUCTURES OF MENUS Single Menus No other menus will follow necessitating additional user choices Sequential Linear Menus Simultaneous Menus 58 Hierarchical Menus When many relationships exist

More information