Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
28
Task/Comments/Jsish/comments.jsish
Normal file
28
Task/Comments/Jsish/comments.jsish
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env/jsish
|
||||
/* Comments, in Jsish */
|
||||
|
||||
// to end of line comment, double slash
|
||||
|
||||
/*
|
||||
Enclosed comment, slash star, ending with star slash
|
||||
Cannot be nested, but can cross line boundaries and occur
|
||||
pretty much anywhere whitespace is allowed
|
||||
*/
|
||||
|
||||
var x = 'X'; /* A var called X */
|
||||
/* active code on this line */ printf("Result %q %d\n", /* comment code mix */ x, /**/42);
|
||||
|
||||
;x;
|
||||
// jsish also handles double slash commented
|
||||
// unit test echo lines as a special case of "expect failure"
|
||||
|
||||
;//noname(x);
|
||||
|
||||
/*
|
||||
=!EXPECTSTART!=
|
||||
Result X 42
|
||||
x ==> X
|
||||
noname(x) ==>
|
||||
PASS!: err = can not execute expression: 'noname' not a function
|
||||
=!EXPECTEND!=
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue