Mohamad-Jaafar NEHME
Mohamad-Jaafar NEHME

Reputation: 1215

Multiple line comments in WebAssembly

Is there any way to write a several-lines comment in Wasm (wat)? I know that ;; is used for a one-line comment.

Upvotes: 5

Views: 691

Answers (1)

Nikolay Handzhiyski
Nikolay Handzhiyski

Reputation: 1579

Yes there is, it is (; ;): These comments can also be nested.

(;  
my
multi (; line ;)
comment   
;)

It is written in the specification Section 6.2.4 (Text Format - Lexical Format - Comments).

Upvotes: 7

Related Questions