Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more links in B and rework the explanation of "slang"
  • Loading branch information
lichtkind committed May 13, 2012
1 parent d1d65de commit 0bc8303
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
18 changes: 12 additions & 6 deletions docs/appendix-b-grouped.txt
Expand Up @@ -7,8 +7,8 @@ Variables
Sigils
------

All variables in Perl begin with a sigil. They mark the 3 primary var
types. The 4th sigil is for callables ([routines](appendix-g-glossary.html#routine))
All variables in Perl begin with a sigil. They mark the 3 primary var types.
The 4th sigil is for callables ([routines](appendix-g-glossary.html#routine))
and the 5th is for layers (namespaces) that organize the previous 4.

------------------------------------------------ --------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -357,6 +357,8 @@ Operators
Table of Precedence
-------------------

all level of [*precedence*](appendix-g-glossary.html#precedence)

A Level Examples
-- ----------------- ----------------------------------------------------
N Terms `42 3.14 "eek" qq["foo"] $x :!verbose @$array`
Expand Down Expand Up @@ -408,9 +410,12 @@ Categories

### MAIN ###

These are the categories of the main language grammar, stored in $~MAIN.
The first category is the metacategory that can used to produce new ones.
Sublanguages such as quoting and regexes can provide their own.
These are the categories of the main language
[*grammar*](appendix-g-glossary.html#grammar),
as stored in [**$~MAIN**](appendix-a-index.html#MAIN-slang-var).
The first category called "category" is the metacategory
(for all [*slangs*](appendix-g-glossary.html#slang))
that can be used to create new categories.

-----------------------------------------------------------------------------------------------------------
[`category:<prefix>`](appendix-a-index.html#category-category)
Expand Down Expand Up @@ -446,7 +451,8 @@ Sublanguages such as quoting and regexes can provide their own.

### Regex ###

The default Regex language as stored in $~Regex has following categories:
The default [*regex*](appendix-g-glossary.html#regex) language as stored in
[**$~Regex**](appendix-a-index.html#Regex-slag-var) has following categories:

------------------------------------------------------------------------
[`assertion:sym<!>`](appendix-a-index.html#assertion-category)
Expand Down
21 changes: 13 additions & 8 deletions docs/appendix-g-glossary.txt
Expand Up @@ -634,14 +634,16 @@ surrounded by round parentheses in the definition of a [*routine*](#routine)

<a id="slang"/>
**slang** &mdash;
sublanguages of Perl 6, quoting or [*regular expression*](#regular expression)
are completely independent languages, the grammar to parse them is mostly stored
in [special variables](appendix-b-grouped.html#slang-variables)
with the [*twigil*](#twigil) **\~**,
[**\$\~MAIN**](appendix-a-index.html#MAIN-lang-var) (main language),
you can change or alter them by using the keyword
[**augment**](appendix-a-index.html#augment)
or [**supersede**](appendix-a-index.html#supersede)
Perl 6 is a family of languages containing the the main language,
[*quoting*](#quoting), [*regular expressions*](#regular expression) and more.
These sublanguages are called slangs.
Each slang has a completely independent set of rules (a [*grammar*](#grammar))
which is stored in a [slang variable](appendix-b-grouped.html#slang-variables).
The slang variables have the [*twigil*](#twigil) **\~** like in
[**\$\~MAIN**](appendix-a-index.html#MAIN-lang-var) (main language).
You can change or alter them by using the keywords
[**augment**](appendix-a-index.html#augment) and
[**supersede**](appendix-a-index.html#supersede).

<a id="slice"/>
**slice** &mdash;
Expand Down Expand Up @@ -697,6 +699,9 @@ some of them were used so often, that their built into to language as
a syntax "atom" like a pair of brackets, an [operator](#operator) or a value(4.32),
not to be confused with [*expression*](#expression)

<a id="terminator"/>
**terminator** &mdash;

<a id="test-method"/>
**test method** &mdash;
[test methods](appendix-b-grouped.html#test-methods).
Expand Down

0 comments on commit 0bc8303

Please sign in to comment.