Target Language Compiler | ![]() ![]() |
Comments
You can place comments anywhere within a target file. To include comments, use the /%...%/
or %%
directives. For example,
/% Abstract: Return the field with [width], if field is wide %/
%endfunction %% Outputs function
Use the /%...%/
construct to delimit comments within your code. Use the %%
construct for line-based comments; all characters from %%
to the end of the line become a comment.
Nondirective lines, that is, lines that do not have %
as their first nonblank character, are copied into the output buffer verbatim. For example,
/* Initialize sysNumber */
int sysNumber = 3;
copies both lines to the output buffer.
To include comments on lines that do not begin with the %
character, you can use the /%...%/
or %%
comment directives. In these cases, the comments are not copied to the output buffer.
Note
If a nondirective line appears within a function, it is not copied to the output buffer unless the function is an output function or you specifically select an output file using the %selectfile directive. For more information about functions, see Target Language Functions.
|
![]() | Directives and Built-in Functions | Line Continuation | ![]() |