Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Terms, variables
  • Loading branch information
moritz committed Apr 4, 2015
1 parent e88123d commit f3008c5
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions lib/Language/syntax.pod
Expand Up @@ -146,15 +146,29 @@ is an error,
assigns the return value of the if statement (here C<42>) to the variable
C<$x>.
=begin comment
=head1 Terms
TODO
Terms are the basic nouns that, optionally together with operators, can form
expressions. Examples for terms are variables (C<$x>), barewords such as type
names (C<Int>), literals (C<42>), declarations (C<sub f() { }>) and calls
(C<f()>).
=head2 Variables
TODO
Variables typically start with a special character called the I<sigil>, and
are followed by an identifier. Variables must be declared before you can use
them.
# declaration:
my $number = 21;
# usage:
say $number * 2;
See the L<documentation on variables|/language/variables> for more details.
=begin comment
=head2 Barewords (Constants, Type Names)
Expand Down

0 comments on commit f3008c5

Please sign in to comment.