Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Start to document literals
  • Loading branch information
moritz committed Apr 4, 2015
1 parent aeaa776 commit 9fd2155
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/Language/syntax.pod
Expand Up @@ -194,15 +194,25 @@ variables:
say Meta.type-name; # Meta
# ^^^^ type name
=begin comment
=head2 Literals
TODO
A L<literal|https://en.wikipedia.org/wiki/Literal_%28computer_programming%29>
is a representation of a constant value in source code. Perl 6 has literals
for several built-in types, like L<strings|/type/Str>, several numeric types,
L<pairs|/type/Pair> and more.
=head3 String literals
TODO: link to quotes
String literals are surrounded by quotes:
say 'a string literal';
say "a string literal\nthat interprets escape sequences";
See L<quoting|/language/quoting> for many more options.
=begin comment
=head3 Number literals
Expand Down

0 comments on commit 9fd2155

Please sign in to comment.