Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ppl-source_syntax [2019-04-12 14:26] – stimpy | ppl-source_syntax [2026-08-21 15:47] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== PPL source syntax ====== | ||
| - | Each line of a PPL source file may contain none, one, some or all of the following sections: | ||
| - | |||
| - | ^[KEYWORD ][EXPRVAR][, | ||
| - | |KEYWORD|A PPL statement used to accomplish some task. | | | | | ||
| - | |EXPR|A PPL expression which may contain VARs, CONSTs, and/or FUNCs.| | | | | ||
| - | |VAR|A PPL variable with optional array subscript.| | | | | ||
| - | |CONST|A PPL constant.| | | | | ||
| - | |FUNC|A PPL function that returns a value. | ||
| - | |;|Used to start a comment. Ignored by the compiler.| | | | | ||
| - | |' | ||
| - | |*|Used to start a comment if first character of the line.| | | | | ||
| - | |COMMENT|Comment text following the ; or '. Ignored by the compiler| | | | | ||
| - | |||
| - | If a line is blank or contains only a comment, it is skipped. if it contains a KEYWORD, that line is compiled into a tokenized format. If it doesn' | ||
| - | |||
| - | A double quote ("" | ||
| - | |||
| - | Labels and variable names may now include the following characters in addition to A-Z, 0-9, and the _ (underscore) character: $ (dollar sign), @ (commercial at), # (pound sign), ¢ (cents), £ (british pound), ¥ (japanese yen) | ||
| - | |||
| - | A \ (backslash) character as the last character on a line (before any comments) will now allow continuing a logical line from one to the next physical line | ||
| - | |||
| - | A : (colon) character may be used to separate multiple logical lines on a single physical line | ||
| - | |||
| - | |||
| - | **Tags:** {{tag> | ||