Comments
Single-line comments start with #. Everything after # until the end of the line is ignored by the compiler.
Usage
package main
# entry point
fn main():void {
var x:number = 10
# check value
if (x > 5) {
console.log("large")
}
# console.log("this line is commented out")
}
Notes
- StarLang only supports single-line comments
- There are no multi-line or block comments
- Comments are stripped during lexing and do not appear in bytecode