Comment Statement

Allows explanatory remarks to be entered into programs.

In ATEasy 5.0, block or multi-line comment (similar to C programming language) is also allowed.

Syntax

!  one line text

/* .... */       - block comments

Comments

The text following a  ! is a comment (until the end of the line) that ignored by the ATEasy compiler during program execution.

Line comments may be entered at the beginning of a line or at the end of a statement.

The block Comments, the text inclosed by '/*' and '*/' is a comment that ignored by the ATEasy compiler.  When this comments are used in the middle of statements, for example arithmetic statement, it cannot continue to the next line by keeping the general rule of ATEasy language: One statement on One line.  To continue onto more than one line, the continuous operator, '\',  is allowed in ATEasy 5.0.

Example

! This Test verifies the voltage output of the UUT

!~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Measure DMM VDC at_J1_1 ! Measure output

 

/* The followings/ and this are block comments:

In ATEasy language, one statement cannot be written in more than two lines.

However, the continuous operator, '\' is available for multi-lines statement.

The second example below is not correct because the statement went on in three lines without the continuous operator.

*/

s = "abc /* comment */ \

+ "def"    ! s="abcdef", ATEasy 5.0 only

See Also

Ignore, Continue