1 # Copyright (C) 2007-2009, Parrot Foundation.
4 =head1 Simple Variables
6 PIR has two kinds of variables. The most simple kind are
7 Parrot register variables. Register variables are named with
8 a dollar sign followed by a single letter and an integer.
9 The letter corresponds to the type of the variable, I for
10 integer, N for number (float), S for string, and P for PMC
13 The C<=> symbol can be used to assign a value to one of
14 these register variables.
20 $I0 = 42 # set temp integer var to the integer value 42
22 $N3 = 3.14159 # set temp float var to an approximation of pi
24 $S5 = "Hello" # set temp string var to "Hello"
27 $P0 = "Ford" # set temp PMC var to "Ford"
43 # vim: expandtab shiftwidth=4 ft=pir: