C/COMMENT 1g 2023-04-13 laplante@plcb.ca GOWEB/Language


title: “C/COMMENT” author: “laplante@plcb.ca” date: 2023-04-13 version: “1.0.0”

category: “GOWEB/Language”

Description

A C-style comment starts with /* and ends with */.
It can span multiple lines, making it useful for documenting blocks of code.

⚠️ Important rules:

Examples

Example 1

res={{
    a := 5; /* this is a
    multi-line
    comment as in C
    */
    b := 5;
    /* Another one on one line */
    a;
    /*
    print b
    now
    */
    b;
}}.

return 

res=55

Example 2

res={{
    a := 5; /* this is a
    multi-line
    comment as in C
    */
    b := 5;
    /* Another one on one line */
    a;
    /*
    print b
    now }}
    */
    b;
}}.

return 

res=55