122-32000 Parallax Inc, 122-32000 Datasheet - Page 159

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Spin Language Elements
The remainder of this chapter describes the elements of the Spin Language, shown above, in
alphabetical order. A few elements are explained within the context of others for clarity; use
the page references from the categorical listing, above, to find those discussions. Many
elements are available both in Spin and Propeller Assembly. Those elements are described in
detail within this section, with references to them, and any differences, in the appropriate
areas of Chapter 5: Assembly Language Reference beginning on page 339.
Symbol Rules
Symbols are case-insensitive, alphanumeric names either created by the compiler (reserved
word) or by the code developer (user-defined word). They represent values (constants or
variables) to make source code easier to understand and maintain. Symbols must fit the
following rules:
Value Representations
Values can be entered in binary (base-2), quaternary (base-4), decimal (base-10),
hexadecimal (base-16), or character formats. Numerical values can also use underscores, ‘
as a group separator to clarify numbers. The following are examples of these formats.
Separators can be used in place of commas (in decimal values) or to form logical groups,
such as nibbles, bytes, words, etc.
Base
n/a
10
10
16
2
4
1) Begins with a letter (a – z) or an underscore ‘_’.
2) Contains only letters, numbers, and underscores (a – z, 0 – 9, _ ); no spaces allowed.
3) Must be 32 characters or less.
4) Is unique to the object; not a reserved word (p. 419) or previously user-defined symbol.
Binary
Quaternary
Decimal (integer)
Decimal (floating-point)
Hexadecimal
Character
Type of Value
Table 4-1: Value Representations
%%2130_3311
%1010
$1AF
1024
1e6
"A"
–or–
–or–
–or–
–or–
–or–
%11110000_10101100
%%3311_2301_1012
$FFAF_126D_8755
Examples
2_147_483_647
1.000_005
Propeller Manual v1.0 · Page 159
–or–
–or–
-0.70712
-25
_
’,

Related parts for 122-32000