These symbols serve one or more special purposes in Spin code. There is a separate table for Symbols in Propeller Assembly.
Spin Symbols | |
---|---|
Symbol |
Purpose |
Binary indicator: used to indicate that a value is being expressed in binary (base-2). |
|
Quaternary indicator: used to indicate a value is being expressed in quaternary (base-4). |
|
Hexadecimal indicator: used to indicate a value is being expressed in hexadecimal (base-16). |
|
String designator: used to begin and end a string of text characters. Usually used in Object blocks , Data blocks or in Public/Private blocks with the STRING directive. |
|
@ |
Symbol Address Indicator: used immediately before a symbol to indicate the address of that symbol is to be used, rather than the value at that symbol’s location. |
@@ |
Object Address Plus Symbol Indicator: used immediately before a symbol to indicate the value of that symbol should be added to the object’s base address. |
|
|
|
|
|
|
Range indicator: indicates a range from one expression to another for CASE statements or an I/O register index. |
|
|
|
|
|
Abort trap: appears immediately before a method call that could potentially abort. |
|
List delimiter: used to separate items in lists. |
|
Parameter list designators: used to surround method parameters. |
|
Array index designators: used to surround indexes on variable arrays or main memory references. |
|
Code comment designator: used to enter single-line code comments (non-compiled text) for code viewing purposes. |
|
Document comment designator: used to enter single-line document comments (non-compiled text) for documentation viewing purposes. |
|
In-line/multi-line code comment designators: used to enter multi-line code comments (non-compiled text) for code viewing purposes. |
|
In-line/multi-line document comment designators: used to enter multi-line document comments (non-compiled text) for documentation viewing purposes. |
Propeller Help Version 1.1
Copyright © Parallax Inc.
5/13/2009