You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What?
Support for compiler option which the compiled result contains the comment in the original Wyrd code.
Why?
Convenient for inspecting compiled code with comment description contained.
How?
Add a new compiler option which supports compiling the comment, for instance, the compileComment option which default value is false (or skipComment option which default value is true)
The compiled comment in different cases are listed below:
What?
Support for compiler option which the compiled result contains the comment in the original Wyrd code.
Why?
Convenient for inspecting compiled code with comment description contained.
How?
Add a new compiler option which supports compiling the comment, for instance, the
compileComment
option which default value isfalse
(orskipComment
option which default value istrue
)The compiled comment in different cases are listed below:
Case 1. Singleline comment
Wyrd Code:
Compiled Wyrd Code:
Case 2. Multiline comment
Wyrd Code:
Compiled Wyrd Code:
Case 3. Since JavaScript's multiline comment is
/* ... */
, we need to escape these character combinationWyrd Code:
Compiled Wyrd Code:
The text was updated successfully, but these errors were encountered: