File: comments.md

package info (click to toggle)
surgescript 0.5.4.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,876 kB
  • sloc: ansic: 13,674; makefile: 16
file content (29 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (3)
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
Comments
========

Comments are used to make your code more human-readable. They are ignored by the computer. SurgeScript allows two kinds of comments: single-line comments and multi-line comments.

Single-line comments
--------------------

Single-line comments start with a `//`. Example:

```
// This line has no effect on the code (it's just for improved readability)
x = 3 + 4; // x is now 7
```

Multi-line comments
-------------------

Multi-line comments start with a `/*` and end with a `*/`. Example:

```
/*
 * Comments can, but don't have to, take
 * multiple lines if you use this form.
 */
x = 3 + 4; /* x is now 7 */
```

Comments of this form cannot be nested.