1
1
% Perl 6 Tablets Appendix B - Thematically Grouped Index
2
2
3
-
4
- [Variables](#nav-top)
5
- =========
6
-
7
-
8
- [Sigils](#nav-top)
9
- ------
3
+ * [Variables](#variables)
4
+ * [Sigils](#sigils)
5
+ * [Twigils](#twigils)
6
+ * [Special](#special-var) : [Match](#special-var-match), [Global](#special-var-global), [Compiler](#special-var-compiler), [POD](#special-var-pod), [Slang](#special-var-slang)
7
+ * [Constants](#constants)
8
+ * [Scope](#variable-scope): [Declarator](#variable-scope-decalarator)
9
+ * [Type](#variable-type): [Undefined](#variable-type-undefined), [Immutable](#variable-type-immutable), [Mutable](#variable-type-mutable), [Low Level](#variable-type-low-level), [Introspection](#variable-type-introspection)
10
+ * Operators
11
+ * Precedence
12
+ * Associativity
13
+ * Categories: Main, Regex
14
+ * Meta
15
+ * Unicode
16
+ * Contextualizers
17
+ * Junctions
18
+ * Sets
19
+ * Smartmatch
20
+ * Files Tests
21
+ * Quoting
22
+ * Text
23
+ * Regex
24
+
25
+ <a id="variables"/>
26
+
27
+ # [Variables](#nav-top)
28
+
29
+
30
+ <a id="sigils"/>
31
+
32
+ ## [Sigils](#nav-top)
10
33
11
34
All variables in Perl begin with a [sigil](appendix-g-glossary#sigil).
12
35
They mark the 3 primary var types.
@@ -25,6 +48,7 @@ The first 4 can also be used as prefix operators, called
25
48
[contextualizers](#contextualizers), that force different contexts,
26
49
but there are much more different contexts then 4.
27
50
51
+ <a id="twigils"/>
28
52
29
53
[Twigils](#nav-top)
30
54
-------
@@ -44,6 +68,8 @@ Twigil is short for secondary sigil. They follow after a primary sigil and mark
44
68
-------------------------------------------------- ------------------------------------------------------------
45
69
46
70
71
+ <a id="special-var"/>
72
+
47
73
[Special Variables](#nav-top)
48
74
-----------------
49
75
@@ -52,6 +78,7 @@ Twigil is short for secondary sigil. They follow after a primary sigil and mark
52
78
[`$!`](appendix-a-index#exclamation-var) error msg
53
79
---------------------------------------- ------------------------
54
80
81
+ <a id="special-var-match"/>
55
82
56
83
### [Match Variables](#nav-top) ###
57
84
@@ -62,6 +89,8 @@ Twigil is short for secondary sigil. They follow after a primary sigil and mark
62
89
[`@()`](appendix-a-index#round-brackets-var) array that holds $0 .. $9 and rest and positional submatches
63
90
------------------------------------------------ ------------------------------------------------------------------------------------
64
91
92
+ <a id="special-var-global"/>
93
+
65
94
### [Global Variables](#nav-top) ###
66
95
67
96
context variable, default global (run time), any of them are now
@@ -95,6 +124,8 @@ $*EMERGENCY_MEMORY formerly `$
95
124
$*DEBUGGING
96
125
------------------------------------------------------------------- -------------------------------------------------------------------
97
126
127
+ <a id="special-var-compiler"/>
128
+
98
129
### [Compiler Hint Variables](#nav-top) ###
99
130
100
131
compiler constants (fixed at compile time)
@@ -122,6 +153,8 @@ compiler constants (fixed at compile time)
122
153
[`$?TABSTOP`](appendix-a-index#TABSTOP-compiler-var)
123
154
----------------------------------------------------------- ------------------------------------------------------------------
124
155
156
+ <a id="special-var-pod"/>
157
+
125
158
### [POD Variables](#nav-top) ###
126
159
127
160
File-[scoped](appendix-g-glossary#scope) [POD](basic-syntax#pod) data
@@ -132,6 +165,9 @@ File-[scoped](appendix-g-glossary#scope) [POD](basic-syntax#pod) data
132
165
[`@=COMMENT`](appendix-a-index#COMMENT-pod-var) All the comment blocks in the file
133
166
------------------------------------------------ ----------------------------------------
134
167
168
+ <a id="special-var-slang"/>
169
+
170
+
135
171
### [Slang Variables](#nav-top) ###
136
172
137
173
sublanguage seen by the parser at this lexical spot
@@ -144,6 +180,7 @@ sublanguage seen by the parser at this lexical spot
144
180
[`$~P5Regex`](appendix-a-index#P5Regex-slang-var) the current root of the Perl regex language
145
181
-------------------------------------------------- ------------------------------------------------
146
182
183
+ <a id="constants"/>
147
184
148
185
[Constants](#nav-top)
149
186
---------
@@ -158,6 +195,7 @@ Name Value Meaning
158
195
[pi](appendix-a-index#pi-constant) 3.14159265394248 [ratio of a circle's circumference to its diameter](appendix-g-glossary#pi)
159
196
---------------------------------- ---------------- -----------------------------------
160
197
198
+ <a id="variable-scope"/>
161
199
162
200
[Scope](#nav-top)
163
201
-----
@@ -195,8 +233,9 @@ calls:
195
233
SUPER Package symbols declared in inherited classes
196
234
------ -----------------------------------------------------
197
235
236
+ <a id="variable-scope-declarator"/>
198
237
199
- ### Declarator ###
238
+ ### [ Declarator](#nav-top)
200
239
201
240
------------------------------------------ -------------------------------------------------------
202
241
[`my`](appendix-a-index#my) introduces lexically [scoped](appendix-g-glossary#scope) names
@@ -209,16 +248,19 @@ SUPER Package symbols declared in inherited classes
209
248
------------------------------------------ -------------------------------------------------------
210
249
211
250
251
+ <a id="variable-type"/>
252
+
253
+ ## [Value Types](#nav-top)
212
254
213
- Value Types
214
- -----------
215
255
216
256
In Perl 6 any variable and value is an object. Here's a list of all
217
257
different types of values, represented my different classes or
218
258
roles. The [routine types](ap-b-lookup#routine-types) are in a
219
259
different section.
220
260
221
- ### Undefined types ###
261
+ <a id="variable-type-undefined"/>
262
+
263
+ ### [Undefined types](#nav-top)
222
264
223
265
------------------------------------------ -----------------------------------------------------------------
224
266
[Mu](appendix-a-index#Mu-type) Most Undefined
@@ -232,9 +274,9 @@ different section.
232
274
Widget Any Widget object
233
275
------------------------------------------ -----------------------------------------------------------------
234
276
277
+ <a id="variable-type-immutable"/>
235
278
236
-
237
- ### Immutable types ###
279
+ ### [Immutable types](#nav-top)
238
280
239
281
------------------------------------------------ -------------------------------------------------------------
240
282
[Str](appendix-a-index#Str-type) Perl string (finite sequence of Unicode characters)
@@ -262,9 +304,9 @@ Widget Any Widget object
262
304
[HardRoutine](appendix-a-index#HardRoutine-type) a routine that is committed to not changing
263
305
------------------------------------------------ ------------------------------------------------------------
264
306
307
+ <a id="variable-type-mutable"/>
265
308
266
-
267
- ### Mutable types ###
309
+ ### [Mutable types](#nav-top)
268
310
269
311
------------------------------------------------ ---------------------------------------------------------
270
312
[Iterator](appendix-a-index#Iterator-type) Perl list
@@ -288,10 +330,10 @@ Widget Any Widget object
288
330
[SoftRoutine](appendix-a-index#SoftRoutine-type) a routine that is committed to staying mutable
289
331
------------------------------------------------ ---------------------------------------------------------
290
332
333
+ <a id="variable-type-low-level"/>
291
334
335
+ ### [Low level data types](#nav-top)
292
336
293
- Low level data types
294
- --------------------
295
337
296
338
This is more low level than the last table. These types are more meant
297
339
to give the compiler optimizing hints.
@@ -332,9 +374,9 @@ buf32 a uint32 buffer
332
374
buf64 a uint64 buffer
333
375
---------- ------------------------------------
334
376
377
+ <a id="variable-type-introspection"/>
335
378
336
- Object Introspection
337
- --------------------
379
+ ## [Object Introspection](#nav-top)
338
380
339
381
Every value in P6 is an [object](appendix-g-glossary#object) and has
340
382
following [methods](appendix-g-glossary#method) to tell more about itself.
@@ -350,11 +392,13 @@ following [methods](appendix-g-glossary#method) to tell more about itself.
350
392
[WHENCE](appendix-a-index#WHENCE-introspection) autovivification of closures
351
393
----------------------------------------------- ---------------------------------------------------------------
352
394
353
-
395
+ <a id="operators"/>
354
396
355
397
[Operators](#nav-top)
356
398
=========
357
399
400
+ <a id="operator-precedence"/>
401
+
358
402
[Table of Precedence](#nav-top)
359
403
-------------------
360
404
@@ -390,7 +434,7 @@ X Sequencer [`<==`](appendix-a-index#pipe-left) [`==>`](appendix-a-in
390
434
N Terminator [`;`](appendix-a-index#semicolon) [`{...}`](appendix-a-index#curly-brackets) [`unless`](appendix-a-index#unless) `extra ) ] }`
391
435
-- ----------------- ----------------------------------------------------
392
436
393
-
437
+ <a id="operators-associativity"/>
394
438
395
439
[Operator Associativity](#nav-top)
396
440
----------------------
0 commit comments