Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax [2019/08/25 19:17] – [String literals] neils | syntax [2019/12/09 08:40] (current) – [Comments] neils | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Syntax ====== | ====== Syntax ====== | ||
- | An **XC=BASIC** program is built from one or more plain ASCII text files that consist of lines, allowing | + | An **XC=BASIC** program is built from one or more plain ASCII text files that consist of lines, allowing one or more statements |
- | Each line may contain | + | Each line may optionally |
label1: print "hello world" | label1: print "hello world" | ||
label2: | label2: | ||
print "hello again" | print "hello again" | ||
+ | let x = 5 : print x : rem "these were more statements in a line" | ||
===== Whitespace ===== | ===== Whitespace ===== | ||
Line 68: | Line 68: | ||
===== Comments | ===== Comments | ||
- | The only way to add comments is the [[REM|REM]] statement. | + | The only way to add comments is the [[REM|REM]] statement. |
+ | |||
+ | rem This is a comment | ||
+ | ' This is also a comment | ||
+ | ; This is also a comment | ||
===== String literals ===== | ===== String literals ===== |