Category:Smalltalk: Difference between revisions
Content added Content deleted
Line 281: | Line 281: | ||
=== Comments === |
=== Comments === |
||
<lang smalltalk>"a comment - everything in between double quotes"</lang> |
<lang smalltalk>"a comment - everything in between double quotes"</lang> |
||
<lang smalltalk>"/ an end-of-line comment can have comments here (dialect specific |
<lang smalltalk>"/ an end-of-line comment can have comments here (dialect specific [1])</lang> |
||
<lang smalltalk>"<<TOK a token comment (dialect specific |
<lang smalltalk>"<<TOK a token comment (dialect specific [1]) |
||
<br>... can have any comment |
<br>... can have any comment |
||
<br>... or EOL comment here |
<br>... or EOL comment here |
||
<br>... up to a line starting with TOK |
<br>... up to a line starting with TOK |
||
<br>TOK</lang> |
<br>TOK</lang> |
||
1) these are not supported by all dialects; however; since even the Parser is open for extension, it is trivial to add support to all systems, by changing the comment reader in the token scanner code. |
1) these are not supported out-of-the-box by all dialects; however; since even the Parser is open for extension, it is trivial to add support to all systems, by changing the comment reader in the token scanner code. |
||
=== Literals === |
=== Literals === |