TABLE OF CONTENTS LIST OF ILLUSTRATIONS

Size: px
Start display at page:

Download "TABLE OF CONTENTS LIST OF ILLUSTRATIONS"

Transcription

1

2 CG39-28 CONTENTS TABLE OF CONTENTS SECTION AND TITLE PAGE 1.0 INTRODUCTION DESCRIPTION RELATED LITERATURE EXPRESSIONS STATEMENTS DECLARATION STATEMENTS Variable Declaration Statements Standard and Derived Function Block Declaration Statements ASSIGNMENT STATEMENT FUNCTION BLOCK CONTROL STATEMENTS SELECTION STATEMENTS IF...END_IF Statement CASE...END_CASE Statement ITERATION STATEMENTS FOR...END_FOR Statement WHILE...END_WHILE Statement REPEAT...END_REPEAT Statement EXIT Statement STRUCTURED TEXT INSIDE A DFB LIST OF ILLUSTRATIONS FIGURE AND TITLE PAGE 3-1 Structured Text Declaration and Expression Example A Function Block Declaration Statement Example Function Block Control Statement Example IF...END_IF Statement Example CASE...END_CASE Statement Example FOR...END_FOR Statement Example WHILE...END_WHILE Statement Example REPEAT...END_REPEAT Statement Example Pressure and Temperature Compensation DFB Body of Pressure and Temperature Compensation DFB i

3 CONTENTS CG39-28 LIST OF TABLES TABLE AND TITLE PAGE 2-1 Operators in Structured Text Iteration Statement Summary SIGNIFICANT CHANGES FOR REVISION 2 The significant change for revision 2 of this document is listed below. This and other minor changes are identified by change bars located in the page margins. 3.5 ITERATION STATEMENTS - This section has been updated with a new information about how control modules respond to endless loops in iteration statements. Moore Products Co. assumes no liability for errors or omissions in this document or for the application and use of information included in this document. The information herein is subject to change without notice. The Moore logo, APACS, the APACS logo, QUADLOG, and 4-mation are trademarks of Moore Products Co. All other trademarks are the property of the respective owners. ii

4 CG39-28 CONTENTS 1997 Moore Products Co. All rights reserved. iii

5 CG39-28 INTRODUCTION 1.0 INTRODUCTION This Guide provides reference information for the Structured Text (ST) language of the 4-mation configuration software. It is intended to be used in conjunction with the configuration procedures located in Using the 4-mation Configuration Software (document number CG39-20). This Guide is arranged into the following sections: C Section 1, Introduction C Section 2, Expressions C Section 3, Statements C Section 4, Example of Structured Text Inside a DFB 1.1 DESCRIPTION The structured text (ST) language supplements the other graphical configuration languages with a text-based programming tool. It is typically used for functions that are more easily implemented in a programming environment than in a graphical format. This is often the case for items such as initialization procedures or process calculations involving complex math operations. The Structured Text language is entered on an editable text sheet (no cells). In the ST language, configuration elements are textual expressions used to create structured text statements. A group of statements is called a structured text file. The statements are created by typing them on the sheet. The elements permitted in a ST file include: C Structured Text Expressions C Standard Function Blocks C Derived Function Blocks C User-Defined Function Blocks C Variables C Comments All function blocks are declared in structured text like variables, where the Type is one of the function block types (e.g. PID) as opposed to a data type. 1-1

6 INTRODUCTION CG RELATED LITERATURE The following documents are available to complement the use of structured text. Refer to these documents as needed or as called for in text. C APACS Basic Application Library (document CG39-23, located in binder UM39-15) * * C APACS Standard Function Blocks (document CG39-22, located in binder UM39-12) * * C QUADLOG Standard Function Blocks (document CGQL-3, located in binder UM39-12) * * C Using the 4-mation Configuration Software Version 4.20 or Higher (document CG39-20, located in * binder UM39-11) * # 1-2

7 CG39-28 EXPRESSIONS 2.0 EXPRESSIONS Expressions consist of operands and operators. Operands can be numbers, variables, function block invocations, or expressions. Operators are applied to the operands and the expression is evaluated. Multiple operands are permitted in one expression. The order of evaluation is from the operator with the highest precedence to the operator with the lowest precedence. If the operators have equal precedence then they are evaluated from left to right. The precedence of ST operators is defined in the following table: TABLE 2-1 Operators in Structured Text TYPE SYMBOL PRECEDENCE Parenthesis (expression) Highest Exponentiation ** Negation, Complement -, NOT Multiply, Divide, *, /, MOD Modulo Add, Subtract +, - Comparison <, >, <=, >= Equality = Inequality <> Boolean AND & or AND Boolean OR OR Assignment := Lowest The following examples show the results of precedence in expressions: If A = 1.0, B = 2.0, C = 3.0 then: A C/B equals 3.5 A + (4 - C)/B equals 1.5 A * 4 - C/B equals 2.5 A * (4 - C)/B equals 0.5 For exponentiation, the data type of the exponent must match the data type of the base. For example, if A and F are REALs then the statement F: = A**(0.5); is correct, not F: = A**(1/2); However, if N and I are integers then N: = I**(1/2); is correct, not N: = I**(0.5); # 2-1

8 EXPRESSIONS CG

9 CG39-28 STATEMENTS 3.0 STATEMENTS A statement is an expression followed by a semicolon. The syntax in this document used for all statements is shown in the following format: C Square brackets [ ] indicate an optional portion of the statement C Regular brackets { } indicate user-defined variables, statements or expressions C No delimiters and bold print indicate a necessary component of the statement C Spaces are allowed between operators in any quantity For memory usage and ACM execution time information on all standard configuration elements, see Appendix C in Using the 4-mation Configuration Software (document number CG39-20). IMPORTANT The keywords in Structured Text statements are not case sensitive, but variable names used in the statements are. 3.1 DECLARATION STATEMENTS Declaration statements allow variables and function blocks to be recognized inside ST programs. These statements must exist before a variable can be used or before a function block can be invoked (called). For this reason, a sheet using structured text usually begins with the declaration keyword sequence. The declaration statement is comprised of two parts: C The declaration key words (VAR and END_VAR) C The declaration operator (the colon, : ) All Declaration Statements must be located within the declaration key words. The syntax of the statement is shown in the description of each type of declaration statement, while the syntax of the key words is shown below: Syntax of Declaration Key Words: VAR {declaration statement} : : {declaration statement} END_VAR These keywords are used to declare local variables and function blocks. However, if it is desired to declare a variable and make it a retained variable, one which retains its value through a warm restart, the following keyword must be used instead. 3-1

10 STATEMENTS CG39-28 Syntax of the Retain Declaration Key Words: VAR RETAIN {variable declaration statement} : : {variable declaration statement} END_VAR Variable Declaration Statements The Variable Declaration Statements create local variables in the ST program. Global variables can be created via the Variable Declaration dialog box only. All the same limitations on variable names apply: variable names are case sensitive and can have a maximum of 16 characters (including the 10 numeric characters, upper and lower case of the 26 alphabetic characters, and the underscore character), and variable names cannot begin with a numeric character. The data type must also be assigned in the Variable Declaration Statement. Typical data types are: BOOL, REAL, INT, SINT, DINT, UINT, USINT, UDINT, TIME, DATE, TIME_OF_DAY, WORD, DATE_AND_TIME, and STRING Data types are defined in the Basic Configuration Elements section of Using the 4-mation Configuration Software (document number CG39-20). An initial value can be assigned if desired. Initial values are assigned at start up and at warm or cold restarts. This means any changes to the initial value will not be reflected by the variable until the controller is restarted. The syntax of the Variable Declaration Statement is shown below. Syntax of the Variable Declaration Statement: {variable name} : {data type} [:= {initial value}] ; or {variable name},{variable name},...,{variable name} : {data type} [:= {initial value}] ; The ST statements in Figure 3-1 demonstrate the declaration of local variables. Note that the declaration statements are located within the declaration key words and that an initial value is assigned to all variables declared in the same declaration statement. 3-2

11 CG39-28 STATEMENTS FIGURE 3-1 Structured Text Declaration and Expression Example Standard and Derived Function Block Declaration Statements Any function block can be used on a Structured Text sheet, including standard, derived, and user-defined function blocks. A function block must be declared in the declaration section of the sheet before it can be used in the body of the sheet. In a function block declaration statement, an instance name or list of instance names is associated with a particular function block type to create one or more instances of that type. If a list is used, the names on the list are separated by a comma. Each instance name is used in the invoking statement described in Section 3.3. Derived or user-defined types must have been previously defined in the Function Block Type dialog box, or in an Application Library, before they may be used on a structured text sheet. In a declaration of a standard function block with a soft list (e.g. PID), an optional list of soft list starting values, described below, may also be specified. The list follows the function block Type name and is enclosed in parentheses. Each list entry assigns a starting value to a named soft list parameter, and the list entries are separated by a semicolon (;). A function block declaration statement must be located between VAR and END_VAR keywords in the declaration section at the top of a structured text sheet. Syntax of the Function Block Declaration Statement: {instance name [,{instance name},...] : {function block type name}[({soft List parameter}:=constant;{soft List parameter}:=constant...)]; Any soft list parameters not specified in the optional list take on default starting values, as described in the documentation under the particular function block type. The soft list parameters specified on the list use the corresponding constants as starting values, when the database is first transferred to an on-line control module. These starting values are also be used on subsequent off-line to on-line transfers, if and only if the structured text sheet is downloaded while off-line. In all other cases, the most recent on-line soft list values are preserved. This means that if the sheet is downloaded while on-line, any soft list starting values in the list are ignored. It also means that at any time after the first transfer to on-line, the actual current value of a soft list 3-3

12 STATEMENTS CG39-28 parameter may be different from the specified starting value. The actual current value of a soft list parameter in an on-line database can be accessed via the Variable Control dialog box, the SET_VAL function block, or an operator interface. At a cold start or warm start, all soft list parameters are reset to default values and any specified starting values are ignored. In this respect, soft list starting values are different from variable initializers. If a function block does not have any soft list parameters, the parenthesis portion of the statement can be omitted. A representative function block declaration statement is shown in Figure FIGURE 3-2 A Function Block Declaration Statement Example In this example, the Lead Lag function block has been given the instance name of LAG1, and all the soft list parameters have been assigned values. Note that the soft list parameters are separated by semicolons and that constants must be used to assign starting values to the soft list parameters. When this function block is invoked, the instance name is be used (invoking is explained in section 3.3). 3.2 ASSIGNMENT STATEMENT The assignment statement consists of: C A variable name destination C The assignment operator (:=) C An expression source C A terminating semicolon The assignment operator is a colon followed by an equal sign (:=). The variable on the left of the assignment operator is given the current value of the expression on the right of the operator. For example, the assignment statement A:=B+C (previously shown in Figure 3-2) would cause the current value of A to be replaced with the value of the expression B+C. 3-4

13 CG39-28 STATEMENTS Syntax of the Assignment Statement: {variable name} := {expression} ; 3.3 FUNCTION BLOCK CONTROL STATEMENTS Function block control statements consist of invoking (calling) a standard, derived, or user-defined function block from ST and returning control to the main program. A function block is typically invoked in cases where repeating the code of the block in ST would be cumbersome. To invoke a function block, at least two statements are required: one statement sets the input values of the block, and the other statement(s) read(s) the output value(s). Syntax of the Invoking Function Block Control Statement: {instance name} ( {input nub name} := {variable or constant}, {input nub name} := {variable or constant}...) ; {variable name} := {instance name}.{output nub name} ; NOTE The input and output nub names come from the standard function block that is being invoked. See the example below. The example shown in Figure 3-3 shows two flip-flops configured in both Function Block Diagram and in Structured Text. Note that all variable names are the same to demonstrate the equivalent configuration in each language. For example, the input nub S1 of the flip-flop block is used in the function block control statement. For additional information on the SR block, refer to the appropriate document as listed here: C APACS Standard Function Blocks (document number CG3922, located in binder UM39-12) C QUADLOG Standard Function Blocks (document number CGQL-3, located in binder UM39-12) 3-5

14 STATEMENTS CG39-28 = FIGURE 3-3 Function Block Control Statement Example IMPORTANT Figure 3-3 shows the equivalent configuration, not the body of the SR flipflop. Creating a derived function block to mimic the SR flip-flop and copying the function in ST would need passed variables and additional code in the ST file. In the above example, one SR (set-reset) flip-flop is given the instance name of FlipFlop1 and the other FlipFlop2. Parentheses are not necessary in the declaration statement because the SR block does not have any soft list parameters. The control statements identify the function blocks by their instance names and assign values to the input variables. Note that the inputs are separated by commas. The first output assignment assigns the value of the output of the SR block identified as FlipFlop1 to the local variable 1varout1. The second output assignment assigns the value of the output of the SR block identified as FlipFlop2 to the local variable lvarout2. The order of the inputs in the function block control statement has no effect on the functionality. All inputs do not have to be assigned a value in the control statement but it is the only place these assignments are permitted. If an input is not assigned a value in the control statement, the default or initial value is used. Returning Control The RETURN statement allows early termination from an ST program before all statements are executed. Syntax of the return function block control statement: RETURN ; 3-6

15 CG39-28 STATEMENTS 3.4 SELECTION STATEMENTS The selection statements include the IF...END_IF and the CASE...END_CASE statements. Both choose a particular course of action based on the value of the expression IF...END_IF Statement The IF...END_IF statement selects a group of statements (one or more) to be executed when the IF expression is TRUE, or a different group of statements (zero or more) to be executed if the IF expression is FALSE. There are four parts to the IF...END_IF statement: C IF C ELSIF C ELSE C END_IF The first part, the IF, is mandatory. The IF provides the first expression that is evaluated. If this expression is TRUE, the statements following THEN are evaluated. The second portion of the IF...END_IF is the ELSIF. There may be none, one, or multiple ELSIF statements in an IF...END_IF statement. The ELSIFs are only evaluated if the IF portion is FALSE. Once one ELSIF is found to be TRUE, the statements inside are executed and no other ELSIFs are evaluated; IF...END_IF is complete. If no ELSIFs are found to be TRUE, the statement(s) following the ELSE is executed. There may either be one or no ELSE statement in an IF...END_IF statement. The fourth part of an IF...END_IF is the END_IF statement. The END_IF, with the ending semicolon, is mandatory since it terminates the statement. Syntax of the IF...END_IF Statement: IF {expression} THEN {statement(s)} ; [ELSIF {expression} THEN {statement(s)} ;]... [ELSE {statement(s)} ;] END_IF ; 3-7

16 STATEMENTS CG39-28 An example of an IF...END_IF statement is shown in Figure FIGURE 3-4 IF...END_IF Statement Example CASE...END_CASE Statement The CASE...END_CASE statement also selects one group of statements to be executed, but it uses integer values to arbitrate. Each CASE...END_CASE statement can have several different groups of statements to be executed on a selective basis. Each of these groups can be selected based on an integer value, a group of integer values, a range of integer values or an ELSE. If the value of the integer selector matches an integer value in one of the CASE groups, then the statements in that group, and only that group, are executed. If the selector does not match any of the integers of a CASE group, and there is an ELSE statement within the CASE...END_CASE statement, then the statements contained in the ELSE statement are executed. As with the IF...END_IF statement, there may be one or no ELSE statement in the CASE...END_CASE statement. Syntax of the CASE...END_CASE Statement: CASE {integer variable name or integer expression} OF {integer, integer series or integer range} : {statement(s)} ; : : {integer, integer series or integer range} : {statement(s)} ; [ELSE {statement(s)} ;] END_CASE ; 3-8

17 CG39-28 STATEMENTS Figure 3-5 shows an example of a CASE...END_CASE statement. Note that a range of integers is * represented by the low value, two dots, then the high value. Whereas, in a series of integers, each value is * separated with a comma. * * FIGURE 3-5 CASE...END_CASE Statement Example 3-9

18 STATEMENTS CG ITERATION STATEMENTS Iteration statements are used when a statement or group of statements is to be executed repeatedly. There are three iteration statements: C FOR...END_FOR C WHILE...END_WHILE C REPEAT...END_REPEAT These statements are summarized in Table 3-1. TABLE 3-1 Iteration Statement Summary ITERATION STATEMENT FOR...END_FOR WHILE...END_WHILE REPEAT...END_REPEAT STATEMENT SUMMARY Statements within may not be executed because test for execution is done before any statements are executed. Use when number of iterations is known. Statements within may not be executed because the test for execution is done before any statements are executed. All statements are executed at least once because the test for execution is done after the statements are executed. WARNING * * Any iteration statement that takes more than 4 seconds to execute during a single scan is * considered to be an endless loop. For this reason, use the iteration statements with * great care, and do not configure loops that could exceed this time limit. * * Starting with ACM software version 4.20 (which ships with 4-mation 4.20), an endless * loop is detected if it exceeds 4 seconds in one scan. The control module stops executing the * Action or DFB containing the endless loop and posts a class 4 error (SSC 08, EC 09). In * this case, the module does not reset. Normal operation can be restored by correcting the * structured text sheet containing the endless loop and downloading this sheet. * * In previous ACM software versions, the control module (ACM) is automatically reset * when an 8 second time limit is reached. All configuration information is lost. After a reset, * the configuration database must be reloaded using 4-mation (using the menu selection File, * Transfer, Resource). * * For safety, these iteration statements are not available for QUADLOG control module * (ACM, CCM) configuration. They can only be used in an APACS control module (ACM) * or Satellite Control Module (SCM). Cut and paste operations between APACS and * QUADLOG control modules automatically prevent an iteration loop from being pasted into * a QUADLOG control module. * 3-10

19 CG39-28 STATEMENTS FOR...END_FOR Statement The FOR statement is used when the number of executions required is known. The FOR...END_FOR statement increments or decrements a value until the end value has been reached. The test for completion is done each scan before the DO statements are executed so that the iteration is executed again if the end value has been reached. The initial value and the final value can be integer constants or integer variables, while the increment value (located in the BY portion of the statement) must be an integer constant. If the increment value is not included in the statement, it is assumed to be 1. Therefore, to create a decrementing loop, the incrementing value must be explicitly stated as negative. These iteration-controlling values cannot be altered by any of the statements inside the FOR...END_FOR statement. The END_FOR line terminates the FOR...END_FOR statement. Syntax of the FOR...END_FOR Statement: FOR {INT variable} := {INT var. or constant} TO {INT var. or constant} [BY {constant}] DO {statement(s)} ; END_FOR ; NOTE The iteration variable and the initial and final values of the iteration variable must be of data type INT, SINT and DINT. Other data types are not accepted. The example in Figure 3-6 illustrates the FOR...END_FOR statement FIGURE 3-6 FOR...END_FOR Statement Example 3-11

20 STATEMENTS CG WHILE...END_WHILE Statement The WHILE...END_WHILE statement executes all the statements it contains while the given Boolean expression is TRUE. If the Boolean expression is FALSE at the onset, then none of the statement(s) within that WHILE...END_WHILE are executed. Syntax of the WHILE...END_WHILE Statement: WHILE {Boolean expression} DO {statement(s)} ; END_WHILE ; The example shown in Figure 3-7 shows how the FOR...END_FOR example (shown previously) can be written as a WHILE...END_WHILE statement, although the WHILE...END_WHILE is not normally used when the number of iterations is known FIGURE 3-7 WHILE...END_WHILE Statement Example REPEAT...END_REPEAT Statement The REPEAT...END_REPEAT statement works the same way as the WHILE...END_WHILE statement. The statements within the REPEAT...END_REPEAT statement are executed until the given Boolean expression becomes TRUE. The Boolean expression follows the keyword UNTIL and must be located immediately preceding the...end_repeat keyword. Syntax of the REPEAT...END_REPEAT Statement: REPEAT {statement(s)} ; UNTIL {Boolean expression} 3-12

21 CG39-28 STATEMENTS END_REPEAT ; The example in Figure 3-8 shows how the previous examples used for the other iterative statements can be written using REPEAT...END_REPEAT FIGURE 3-8 REPEAT...END_REPEAT Statement Example EXIT Statement The EXIT statement can only be used inside any of the iteration statements. It is used to leave the iteration before the end value has been reached. For an example of the EXIT statement, refer to Figure 3-6. # 3-13

22 STATEMENTS CG

23 CG39-28 STRUCTURED TEXT INSIDE A DFB 4.0 STRUCTURED TEXT INSIDE A DFB This section presents an example of structured text inside a derived function block (DFB). The Figures 4-1 and 4-2 show the Pressure and Temperature compensation block (P_T_COMP_FLOW) obtained from the Basic Application Library. Notice the input and output nub names of the DFB are used in the structured text file with brackets around them indicating that they are passed either from or to the sheet above it in the configuration hierarchy. Using brackets allows the value connected to the PRESS input nub and all other input nubs to be passed to the ST calculations and allows the ST calculations to assign a value to the FLOW output(s) FIGURE 4-1 Pressure and Temperature Compensation DFB 4-1

24 STRUCTURED TEXT INSIDE A DFB CG FIGURE 4-2 Body of Pressure and Temperature Compensation DFB # 4-2

TABLE OF CONTENTS SECTION TITLE 1.0 INTRODUCTION DESCRIPTION RELATED LITERATURE LADDER LOGIC ELEMENTS...

TABLE OF CONTENTS SECTION TITLE 1.0 INTRODUCTION DESCRIPTION RELATED LITERATURE LADDER LOGIC ELEMENTS... CG39-26 CONTENTS TABLE OF CONTENTS SECTION TITLE PAGE 1.0 INTRODUCTION... 1-1 1.1 DESCRIPTION... 1-1 1.2 RELATED LITERATURE... 1-1 2.0 LADDER LOGIC ELEMENTS... 2-1 3.0 POWER RAILS... 3-1 4.0 LINK ELEMENTS...

More information

Structured Text Programming

Structured Text Programming PDHonline Course E334 (3 PDH) Structured Text Programming Instructor: Anthony K. Ho, PE 2012 PDH Online PDH Center 5272 Meadow Estates Drive Fairfax, VA 22030-6658 Phone & Fax: 703-988-0088 www.pdhonline.org

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

PHPoC vs PHP > Overview. Overview

PHPoC vs PHP > Overview. Overview PHPoC vs PHP > Overview Overview PHPoC is a programming language that Sollae Systems has developed. All of our PHPoC products have PHPoC interpreter in firmware. PHPoC is based on a wide use script language

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

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

Language Reference Manual

Language Reference Manual TAPE: A File Handling Language Language Reference Manual Tianhua Fang (tf2377) Alexander Sato (as4628) Priscilla Wang (pyw2102) Edwin Chan (cc3919) Programming Languages and Translators COMSW 4115 Fall

More information

PHPoC. PHPoC vs PHP. Version 1.1. Sollae Systems Co., Ttd. PHPoC Forum: Homepage:

PHPoC. PHPoC vs PHP. Version 1.1. Sollae Systems Co., Ttd. PHPoC Forum:  Homepage: PHPoC PHPoC vs PHP Version 1.1 Sollae Systems Co., Ttd. PHPoC Forum: http://www.phpoc.com Homepage: http://www.eztcp.com Contents 1 Overview...- 3 - Overview...- 3-2 Features of PHPoC (Differences from

More information

Alternate Appendix A: Using the TI-92 Calculator

Alternate Appendix A: Using the TI-92 Calculator Alternate Appendix A: Using the TI-92 Calculator This document summarizes TI-92 calculation and programming operations as they relate to the text, Inside Your Calculator. Even those who do not read the

More information

CHAD Language Reference Manual

CHAD Language Reference Manual CHAD Language Reference Manual INTRODUCTION The CHAD programming language is a limited purpose programming language designed to allow teachers and students to quickly code algorithms involving arrays,

More information

Contents. Jairo Pava COMS W4115 June 28, 2013 LEARN: Language Reference Manual

Contents. Jairo Pava COMS W4115 June 28, 2013 LEARN: Language Reference Manual Jairo Pava COMS W4115 June 28, 2013 LEARN: Language Reference Manual Contents 1 Introduction...2 2 Lexical Conventions...2 3 Types...3 4 Syntax...3 5 Expressions...4 6 Declarations...8 7 Statements...9

More information

CHIL CSS HTML Integrated Language

CHIL CSS HTML Integrated Language CHIL CSS HTML Integrated Language Programming Languages and Translators Fall 2013 Authors: Gil Chen Zion gc2466 Ami Kumar ak3284 Annania Melaku amm2324 Isaac White iaw2105 Professor: Prof. Stephen A. Edwards

More information

Introduction to Visual Basic and Visual C++ Arithmetic Expression. Arithmetic Expression. Using Arithmetic Expression. Lesson 4.

Introduction to Visual Basic and Visual C++ Arithmetic Expression. Arithmetic Expression. Using Arithmetic Expression. Lesson 4. Introduction to Visual Basic and Visual C++ Arithmetic Expression Lesson 4 Calculation I154-1-A A @ Peter Lo 2010 1 I154-1-A A @ Peter Lo 2010 2 Arithmetic Expression Using Arithmetic Expression Calculations

More information

YOLOP Language Reference Manual

YOLOP Language Reference Manual YOLOP Language Reference Manual Sasha McIntosh, Jonathan Liu & Lisa Li sam2270, jl3516 and ll2768 1. Introduction YOLOP (Your Octothorpean Language for Optical Processing) is an image manipulation language

More information

Decaf Language Reference Manual

Decaf Language Reference Manual Decaf Language Reference Manual C. R. Ramakrishnan Department of Computer Science SUNY at Stony Brook Stony Brook, NY 11794-4400 cram@cs.stonybrook.edu February 12, 2012 Decaf is a small object oriented

More information

WEEK 4 OPERATORS, EXPRESSIONS AND STATEMENTS

WEEK 4 OPERATORS, EXPRESSIONS AND STATEMENTS WEEK 4 OPERATORS, EXPRESSIONS AND STATEMENTS OPERATORS Review: Data values can appear as literals or be stored in variables/constants Data values can be returned by method calls Operators: special symbols

More information

Language Reference Manual

Language Reference Manual ALACS Language Reference Manual Manager: Gabriel Lopez (gal2129) Language Guru: Gabriel Kramer-Garcia (glk2110) System Architect: Candace Johnson (crj2121) Tester: Terence Jacobs (tj2316) Table of Contents

More information

ISaGRAF complies with the requirements set forth in IEC , for the following language features:

ISaGRAF complies with the requirements set forth in IEC , for the following language features: ICS Triplex ISaGRAF Inc. www.isagraf.com ISaGRAF complies with the requirements set forth in IEC 61131-3, for the following language features: Table # Feature # Common Elements 1 1 X X X Required character

More information

Ordinary Differential Equation Solver Language (ODESL) Reference Manual

Ordinary Differential Equation Solver Language (ODESL) Reference Manual Ordinary Differential Equation Solver Language (ODESL) Reference Manual Rui Chen 11/03/2010 1. Introduction ODESL is a computer language specifically designed to solve ordinary differential equations (ODE

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

CA4003 Compiler Construction Assignment Language Definition

CA4003 Compiler Construction Assignment Language Definition CA4003 Compiler Construction Assignment Language Definition David Sinclair 2017-2018 1 Overview The language is not case sensitive. A nonterminal, X, is represented by enclosing it in angle brackets, e.g.

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

KE Process Automation project work - ABB 800xA PLC programming

KE Process Automation project work - ABB 800xA PLC programming KE-90.4600 Process Automation project work - ABB 800xA PLC programming (This material is built using ABB T314 course materials, T314-6 Variables and Data types, T314-10 FBD, T314-11 ST, T314-13 CM & T314-14

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

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

GridLang: Grid Based Game Development Language Language Reference Manual. Programming Language and Translators - Spring 2017 Prof.

GridLang: Grid Based Game Development Language Language Reference Manual. Programming Language and Translators - Spring 2017 Prof. GridLang: Grid Based Game Development Language Language Reference Manual Programming Language and Translators - Spring 2017 Prof. Stephen Edwards Akshay Nagpal Dhruv Shekhawat Parth Panchmatia Sagar Damani

More information

BoredGames Language Reference Manual A Language for Board Games. Brandon Kessler (bpk2107) and Kristen Wise (kew2132)

BoredGames Language Reference Manual A Language for Board Games. Brandon Kessler (bpk2107) and Kristen Wise (kew2132) BoredGames Language Reference Manual A Language for Board Games Brandon Kessler (bpk2107) and Kristen Wise (kew2132) 1 Table of Contents 1. Introduction... 4 2. Lexical Conventions... 4 2.A Comments...

More information

IPCoreL. Phillip Duane Douglas, Jr. 11/3/2010

IPCoreL. Phillip Duane Douglas, Jr. 11/3/2010 IPCoreL Programming Language Reference Manual Phillip Duane Douglas, Jr. 11/3/2010 The IPCoreL Programming Language Reference Manual provides concise information about the grammar, syntax, semantics, and

More information

Language Reference Manual simplicity

Language Reference Manual simplicity Language Reference Manual simplicity Course: COMS S4115 Professor: Dr. Stephen Edwards TA: Graham Gobieski Date: July 20, 2016 Group members Rui Gu rg2970 Adam Hadar anh2130 Zachary Moffitt znm2104 Suzanna

More information

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

x = 3 * y + 1; // x becomes 3 * y + 1 a = b = 0; // multiple assignment: a and b both get the value 0

x = 3 * y + 1; // x becomes 3 * y + 1 a = b = 0; // multiple assignment: a and b both get the value 0 6 Statements 43 6 Statements The statements of C# do not differ very much from those of other programming languages. In addition to assignments and method calls there are various sorts of selections and

More information

Control Structures. CIS 118 Intro to LINUX

Control Structures. CIS 118 Intro to LINUX Control Structures CIS 118 Intro to LINUX Basic Control Structures TEST The test utility, has many formats for evaluating expressions. For example, when given three arguments, will return the value true

More information

C/C++ Programming Lecture 7 Name:

C/C++ Programming Lecture 7 Name: 1. The increment (++) and decrement (--) operators increase or decrease a variable s value by one, respectively. They are great if all you want to do is increment (or decrement) a variable: i++;. HOWEVER,

More information

An algorithm may be expressed in a number of ways:

An algorithm may be expressed in a number of ways: Expressing Algorithms pseudo-language 1 An algorithm may be expressed in a number of ways: natural language: flow charts: pseudo-code: programming language: usually verbose and ambiguous avoid most (if

More information

A complex expression to evaluate we need to reduce it to a series of simple expressions. E.g * 7 =>2+ 35 => 37. E.g.

A complex expression to evaluate we need to reduce it to a series of simple expressions. E.g * 7 =>2+ 35 => 37. E.g. 1.3a Expressions Expressions An Expression is a sequence of operands and operators that reduces to a single value. An operator is a syntactical token that requires an action be taken An operand is an object

More information

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments Basics Objectives Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments 2 Class Keyword class used to define new type specify

More information

Basics of ST. Each must end with a semi-colon (";") Basic statement. Q:=IN; Q:=sin(angle); Q := (IN1 + (IN2 / IN 3)) * IN4;

Basics of ST. Each must end with a semi-colon (;) Basic statement. Q:=IN; Q:=sin(angle); Q := (IN1 + (IN2 / IN 3)) * IN4; Excerpt of tutorial developed at University of Auckland by Gulnara Zhabelova Based on Dr. Valeriy Vyatkin s book IEC 61499 Function Blocks for Embedded and Distributed Control Systems Design, Second Edition

More information

Industrial Automation course

Industrial Automation course Industrial Automation course Lesson 7 PLC Structured Text Politecnico di Milano Universidad de Monterrey, July 2015, A. L. Cologni 1 Introduction The Structured Text is the higher level IEC 61131 programming

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

Senet. Language Reference Manual. 26 th October Lilia Nikolova Maxim Sigalov Dhruvkumar Motwani Srihari Sridhar Richard Muñoz

Senet. Language Reference Manual. 26 th October Lilia Nikolova Maxim Sigalov Dhruvkumar Motwani Srihari Sridhar Richard Muñoz Senet Language Reference Manual 26 th October 2015 Lilia Nikolova Maxim Sigalov Dhruvkumar Motwani Srihari Sridhar Richard Muñoz 1. Overview Past projects for Programming Languages and Translators have

More information

Data Types and Variables in C language

Data Types and Variables in C language Data Types and Variables in C language Disclaimer The slides are prepared from various sources. The purpose of the slides is for academic use only Operators in C C supports a rich set of operators. Operators

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

C++ Programming: From Problem Analysis to Program Design, Third Edition

C++ Programming: From Problem Analysis to Program Design, Third Edition C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 2: Basic Elements of C++ Objectives (continued) Become familiar with the use of increment and decrement operators Examine

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

UNIT- 3 Introduction to C++

UNIT- 3 Introduction to C++ UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage

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

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

ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 1 IDL Operators

ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 1 IDL Operators ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 1 IDL Operators ARITHMATIC OPERATORS The assignment operator in IDL is the equals sign, =. IDL uses all the familiar arithmetic operators

More information

The Absolute Value Symbol

The Absolute Value Symbol Section 1 3: Absolute Value and Powers The Absolute Value Symbol The symbol for absolute value is a pair of vertical lines. These absolute value brackets act like the parenthesis that we use in order of

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

Chapter 3: Operators, Expressions and Type Conversion

Chapter 3: Operators, Expressions and Type Conversion 101 Chapter 3 Operators, Expressions and Type Conversion Chapter 3: Operators, Expressions and Type Conversion Objectives To use basic arithmetic operators. To use increment and decrement operators. To

More information

Chapter 2. C++ Basics. Copyright 2014 Pearson Addison-Wesley. All rights reserved.

Chapter 2. C++ Basics. Copyright 2014 Pearson Addison-Wesley. All rights reserved. Chapter 2 C++ Basics 1 Overview 2.1 Variables and Assignments 2.2 Input and Output 2.3 Data Types and Expressions 2.4 Simple Flow of Control 2.5 Program Style Slide 2-3 2.1 Variables and Assignments 2

More information

egrapher Language Reference Manual

egrapher Language Reference Manual egrapher Language Reference Manual Long Long: ll3078@columbia.edu Xinli Jia: xj2191@columbia.edu Jiefu Ying: jy2799@columbia.edu Linnan Wang: lw2645@columbia.edu Darren Chen: dsc2155@columbia.edu 1. Introduction

More information

CS1622. Semantic Analysis. The Compiler So Far. Lecture 15 Semantic Analysis. How to build symbol tables How to use them to find

CS1622. Semantic Analysis. The Compiler So Far. Lecture 15 Semantic Analysis. How to build symbol tables How to use them to find CS1622 Lecture 15 Semantic Analysis CS 1622 Lecture 15 1 Semantic Analysis How to build symbol tables How to use them to find multiply-declared and undeclared variables. How to perform type checking CS

More information

Operators and Expressions in C & C++ Mahesh Jangid Assistant Professor Manipal University, Jaipur

Operators and Expressions in C & C++ Mahesh Jangid Assistant Professor Manipal University, Jaipur Operators and Expressions in C & C++ Mahesh Jangid Assistant Professor Manipal University, Jaipur Operators and Expressions 8/24/2012 Dept of CS&E 2 Arithmetic operators Relational operators Logical operators

More information

easel LANGUAGE REFERENCE MANUAL

easel LANGUAGE REFERENCE MANUAL easel LANGUAGE REFERENCE MANUAL Manager Danielle Crosswell dac2182 Language Guru Tyrus Cukavac thc2125 System Architect Yuan-Chao Chou yc3211 Tester Xiaofei Chen xc2364 Table of Contents 1. Introduction...

More information

MATLIP: MATLAB-Like Language for Image Processing

MATLIP: MATLAB-Like Language for Image Processing COMS W4115: Programming Languages and Translators MATLIP: MATLAB-Like Language for Image Processing Language Reference Manual Pin-Chin Huang (ph2249@columbia.edu) Shariar Zaber Kazi (szk2103@columbia.edu)

More information

Unit 3. Operators. School of Science and Technology INTRODUCTION

Unit 3. Operators. School of Science and Technology INTRODUCTION INTRODUCTION Operators Unit 3 In the previous units (unit 1 and 2) you have learned about the basics of computer programming, different data types, constants, keywords and basic structure of a C program.

More information

Transform data - Compute Variables

Transform data - Compute Variables Transform data - Compute Variables Contents TRANSFORM DATA - COMPUTE VARIABLES... 1 Recode Variables... 3 Transform data - Compute Variables With MAXQDA Stats you can perform calculations on a selected

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

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

Sketchpad Graphics Language Reference Manual. Zhongyu Wang, zw2259 Yichen Liu, yl2904 Yan Peng, yp2321

Sketchpad Graphics Language Reference Manual. Zhongyu Wang, zw2259 Yichen Liu, yl2904 Yan Peng, yp2321 Sketchpad Graphics Language Reference Manual Zhongyu Wang, zw2259 Yichen Liu, yl2904 Yan Peng, yp2321 October 20, 2013 1. Introduction This manual provides reference information for using the SKL (Sketchpad

More information

Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups:

Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups: JAVA OPERATORS GENERAL Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups: Arithmetic Operators Relational Operators Bitwise Operators

More information

Expr Language Reference

Expr Language Reference Expr Language Reference Expr language defines expressions, which are evaluated in the context of an item in some structure. This article describes the syntax of the language and the rules that govern the

More information

GraphQuil Language Reference Manual COMS W4115

GraphQuil Language Reference Manual COMS W4115 GraphQuil Language Reference Manual COMS W4115 Steven Weiner (Systems Architect), Jon Paul (Manager), John Heizelman (Language Guru), Gemma Ragozzine (Tester) Chapter 1 - Introduction Chapter 2 - Types

More information

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved. Assoc. Prof. Dr. Marenglen Biba (C) 2010 Pearson Education, Inc. All for repetition statement do while repetition statement switch multiple-selection statement break statement continue statement Logical

More information

Chapter Overview. C++ Basics. Variables and Assignments. Variables and Assignments. Keywords. Identifiers. 2.1 Variables and Assignments

Chapter Overview. C++ Basics. Variables and Assignments. Variables and Assignments. Keywords. Identifiers. 2.1 Variables and Assignments Chapter 2 C++ Basics Overview 2.1 Variables and Assignments 2.2 Input and Output 2.3 Data Types and Expressions 2.4 Simple Flow of Control 2.5 Program Style Copyright 2011 Pearson Addison-Wesley. All rights

More information

corgi Language Reference Manual COMS W4115

corgi Language Reference Manual COMS W4115 corgi Language Reference Manual COMS W4115 Philippe Guillaume Losembe (pvl2109) Alisha Sindhwani (as4312) Melissa O Sullivan (mko2110) Justin Zhao (jxz2101) October 27, 2014 Chapter 1: Introduction corgi

More information

CSc 10200! Introduction to Computing. Lecture 2-3 Edgardo Molina Fall 2013 City College of New York

CSc 10200! Introduction to Computing. Lecture 2-3 Edgardo Molina Fall 2013 City College of New York CSc 10200! Introduction to Computing Lecture 2-3 Edgardo Molina Fall 2013 City College of New York 1 C++ for Engineers and Scientists Third Edition Chapter 2 Problem Solving Using C++ 2 Objectives In this

More information

bc an arbitrary precision calculator language version 1.06

bc an arbitrary precision calculator language version 1.06 and Other Implementations-titleGNU bc and Other Implementations bc an arbitrary precision calculator language version 1.06 Philip A. Nelson This manual documents bc, an arbitrary precision calculator language.

More information

VENTURE. Section 1. Lexical Elements. 1.1 Identifiers. 1.2 Keywords. 1.3 Literals

VENTURE. Section 1. Lexical Elements. 1.1 Identifiers. 1.2 Keywords. 1.3 Literals VENTURE COMS 4115 - Language Reference Manual Zach Adler (zpa2001), Ben Carlin (bc2620), Naina Sahrawat (ns3001), James Sands (js4597) Section 1. Lexical Elements 1.1 Identifiers An identifier in VENTURE

More information

BASIC ELEMENTS OF A COMPUTER PROGRAM

BASIC ELEMENTS OF A COMPUTER PROGRAM BASIC ELEMENTS OF A COMPUTER PROGRAM CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING LOGO Contents 1 Identifier 2 3 Rules for naming and declaring data variables Basic data types 4 Arithmetic operators

More information

Chapter 2. C++ Basics. Copyright 2014 Pearson Addison-Wesley. All rights reserved.

Chapter 2. C++ Basics. Copyright 2014 Pearson Addison-Wesley. All rights reserved. Chapter 2 C++ Basics Overview 2.1 Variables and Assignments 2.2 Input and Output 2.3 Data Types and Expressions 2.4 Simple Flow of Control 2.5 Program Style 3 2.1 Variables and Assignments Variables and

More information

Chapter 2. C++ Basics

Chapter 2. C++ Basics Chapter 2 C++ Basics Overview 2.1 Variables and Assignments 2.2 Input and Output 2.3 Data Types and Expressions 2.4 Simple Flow of Control 2.5 Program Style Slide 2-2 2.1 Variables and Assignments Variables

More information

TED Language Reference Manual

TED Language Reference Manual 1 TED Language Reference Manual Theodore Ahlfeld(twa2108), Konstantin Itskov(koi2104) Matthew Haigh(mlh2196), Gideon Mendels(gm2597) Preface 1. Lexical Elements 1.1 Identifiers 1.2 Keywords 1.3 Constants

More information

TABLE OF CONTENTS SECTION AND TITLE

TABLE OF CONTENTS SECTION AND TITLE CG39FDI-2 CONTENTS TABLE OF CONTENTS SECTION AND TITLE PAGE 1.0 INTRODUCTION... 1-1 1.1 PRODUCT DESCRIPTION... 1-2 1.2 SOFTWARE REGISTRATION AND SUPPORT... 1-2 1.2.1 Software Registration... 1-3 1.2.2

More information

Full file at C How to Program, 6/e Multiple Choice Test Bank

Full file at   C How to Program, 6/e Multiple Choice Test Bank 2.1 Introduction 2.2 A Simple Program: Printing a Line of Text 2.1 Lines beginning with let the computer know that the rest of the line is a comment. (a) /* (b) ** (c) REM (d)

More information

Unit-II Programming and Problem Solving (BE1/4 CSE-2)

Unit-II Programming and Problem Solving (BE1/4 CSE-2) Unit-II Programming and Problem Solving (BE1/4 CSE-2) Problem Solving: Algorithm: It is a part of the plan for the computer program. An algorithm is an effective procedure for solving a problem in a finite

More information

PLT Fall Shoo. Language Reference Manual

PLT Fall Shoo. Language Reference Manual PLT Fall 2018 Shoo Language Reference Manual Claire Adams (cba2126) Samurdha Jayasinghe (sj2564) Rebekah Kim (rmk2160) Cindy Le (xl2738) Crystal Ren (cr2833) October 14, 2018 Contents 1 Comments 2 1.1

More information

Data Structure using C++ Lecture 04. Data Structures and algorithm analysis in C++ Chapter , 3.2, 3.2.1

Data Structure using C++ Lecture 04. Data Structures and algorithm analysis in C++ Chapter , 3.2, 3.2.1 Data Structure using C++ Lecture 04 Reading Material Data Structures and algorithm analysis in C++ Chapter. 3 3.1, 3.2, 3.2.1 Summary Stack Operations on a stack Representing stacks Converting an expression

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

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

Here n is a variable name. The value of that variable is 176.

Here n is a variable name. The value of that variable is 176. UNIT II DATA, EXPRESSIONS, STATEMENTS 9 Python interpreter and interactive mode; values and types: int, float, boolean, string, and list; variables, expressions, statements, tuple assignment, precedence

More information

INTRODUCTION TO ABAP PROGRAMMING: SYNTAX FUNDAMENTALS

INTRODUCTION TO ABAP PROGRAMMING: SYNTAX FUNDAMENTALS INTRODUCTION TO ABAP PROGRAMMING: SYNTAX FUNDAMENTALS Spring 2011 Enterprise Programming From the textbook Chapter Two ABAP Workbench Object Navigator (SE80) Forward navigation Packages Transports Creating

More information

7/8/10 KEY CONCEPTS. Problem COMP 10 EXPLORING COMPUTER SCIENCE. Algorithm. Lecture 2 Variables, Types, and Programs. Program PROBLEM SOLVING

7/8/10 KEY CONCEPTS. Problem COMP 10 EXPLORING COMPUTER SCIENCE. Algorithm. Lecture 2 Variables, Types, and Programs. Program PROBLEM SOLVING KEY CONCEPTS COMP 10 EXPLORING COMPUTER SCIENCE Lecture 2 Variables, Types, and Programs Problem Definition of task to be performed (by a computer) Algorithm A particular sequence of steps that will solve

More information

Chapter 4: Basic C Operators

Chapter 4: Basic C Operators Chapter 4: Basic C Operators In this chapter, you will learn about: Arithmetic operators Unary operators Binary operators Assignment operators Equalities and relational operators Logical operators Conditional

More information

Structured Text TM246

Structured Text TM246 Structured Text TM246 011/09 M246TRE.00-ENG Requirements Training modules: Software Hardware TM210 The Basics of Automation Studio TM213 Automation Runtime TM223 Automation Studio Diagnostics Automation

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

Department of Computer Science

Department of Computer Science Department of Computer Science Definition An operator is a symbol (+,-,*,/) that directs the computer to perform certain mathematical or logical manipulations and is usually used to manipulate data and

More information

Java+- Language Reference Manual

Java+- Language Reference Manual Fall 2016 COMS4115 Programming Languages & Translators Java+- Language Reference Manual Authors Ashley Daguanno (ad3079) - Manager Anna Wen (aw2802) - Tester Tin Nilar Hlaing (th2520) - Systems Architect

More information

COLOGO A Graph Language Reference Manual

COLOGO A Graph Language Reference Manual COLOGO A Graph Language Reference Manual Advisor: Stephen A. Edwards Shen Wang (sw2613@columbia.edu) Lixing Dong (ld2505@columbia.edu) Siyuan Lu (sl3352@columbia.edu) Chao Song (cs2994@columbia.edu) Zhou

More information

Mirage. Language Reference Manual. Image drawn using Mirage 1.1. Columbia University COMS W4115 Programming Languages and Translators Fall 2006

Mirage. Language Reference Manual. Image drawn using Mirage 1.1. Columbia University COMS W4115 Programming Languages and Translators Fall 2006 Mirage Language Reference Manual Image drawn using Mirage 1.1 Columbia University COMS W4115 Programming Languages and Translators Fall 2006 Prof. Stephen Edwards Team Members: Abhilash I ai2160@columbia.edu

More information

CMAT Language - Language Reference Manual COMS 4115

CMAT Language - Language Reference Manual COMS 4115 CMAT Language - Language Reference Manual COMS 4115 Language Guru: Michael Berkowitz (meb2235) Project Manager: Frank Cabada (fc2452) System Architect: Marissa Ojeda (mgo2111) Tester: Daniel Rojas (dhr2119)

More information

function [s p] = sumprod (f, g)

function [s p] = sumprod (f, g) Outline of the Lecture Introduction to M-function programming Matlab Programming Example Relational operators Logical Operators Matlab Flow control structures Introduction to M-function programming M-files:

More information

Spoke. Language Reference Manual* CS4118 PROGRAMMING LANGUAGES AND TRANSLATORS. William Yang Wang, Chia-che Tsai, Zhou Yu, Xin Chen 2010/11/03

Spoke. Language Reference Manual* CS4118 PROGRAMMING LANGUAGES AND TRANSLATORS. William Yang Wang, Chia-che Tsai, Zhou Yu, Xin Chen 2010/11/03 CS4118 PROGRAMMING LANGUAGES AND TRANSLATORS Spoke Language Reference Manual* William Yang Wang, Chia-che Tsai, Zhou Yu, Xin Chen 2010/11/03 (yw2347, ct2459, zy2147, xc2180)@columbia.edu Columbia University,

More information

GeoCode Language Reference Manual

GeoCode Language Reference Manual GeoCode Language Reference Manual Contents 1 Introduction... 3 2 Lexical Elements... 3 2.1 Identifiers... 3 2.2 Keywords... 3 2.3 Literals... 3 2.4 Line Structure... 4 2.5 Indentation... 4 2.6 Whitespace...

More information

Declaration and Memory

Declaration and Memory Declaration and Memory With the declaration int width; the compiler will set aside a 4-byte (32-bit) block of memory (see right) The compiler has a symbol table, which will have an entry such as Identifier

More information

Java Notes. 10th ICSE. Saravanan Ganesh

Java Notes. 10th ICSE. Saravanan Ganesh Java Notes 10th ICSE Saravanan Ganesh 13 Java Character Set Character set is a set of valid characters that a language can recognise A character represents any letter, digit or any other sign Java uses

More information

JAVA OPERATORS GENERAL

JAVA OPERATORS GENERAL JAVA OPERATORS GENERAL Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups: Arithmetic Operators Relational Operators Bitwise Operators

More information

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

UNIT-II. Part-2: CENTRAL PROCESSING UNIT Page1 UNIT-II Part-2: CENTRAL PROCESSING UNIT Stack Organization Instruction Formats Addressing Modes Data Transfer And Manipulation Program Control Reduced Instruction Set Computer (RISC) Introduction:

More information