1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
0 400 400 //line comment
0 400 400
0 400 400 /* block comment */
0 400 400
2 400 401 + /* block comment on
0 401 400 | multiple lines */
0 400 400
0 400 400 /* //line comment within block comment */
0 400 400
0 400 400 // /*block comment within line comment */
0 400 400
0 400 400 // using open-block-comment symbol alone on line comment /*
0 400 400
0 400 400 /* /* nested block comment */ */
0 400 400
0 400 400 DISPLAY "this line of code is a test".
0 400 400 DISPLAY "//this line of code is a test".
0 400 400 DISPLAY "/* this line of code is a test */".
0 400 400
0 400 400 // using close-block-comment symbol alone on line comment */
0 400 400
0 400 400 // /* improperly closed block comment within line comment */ */
0 400 400
2 400 401 + /*
0 401 401 | //line comment 1 in block comment
0 401 401 | //line comment 2 in block comment
0 401 401 | //line comment 3 in block comment
0 401 400 | */
0 400 400
2 400 401 + /*
0 401 401 | block comment text
0 401 401 | //line comment text
0 401 401 | /* inner block comment text*/
0 401 400 | */
0 400 400
0 400 400 DISPLAY "This is a open-block-comment symbol /*".
0 400 400 DISPLAY "This is a close-block-comment symbol */".
0 400 400
0 400 400 //* line comment plus * looks like open-block-comment
0 400 400
0 400 400
0 400 400 DISPLAY "this line of code is a test".
0 400 400
2 400 401 + /*display statement within block comment
0 401 401 | DISPLAY "this is a string".
0 401 400 | */
0 400 400
0 400 400 DISPLAY "//line comment within string".
0 400 400
0 400 400 DISPLAY "/* //line comment within block comment within string */".
0 400 400
0 400 400 /* Improperly closed block comment */ */
0 400 400
0 400 400 DISPLAY "this line of code is a test".
0 400 400
0 400 400 DISPLAY "line comment with leading whitespace". // this is a line comment
0 400 400 DISPLAY "line comment without leading whitespace".// this is not a line comment
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
0 400 400
1 400 400
|