Skip to content

Commit d1340a0

Browse files
committed
Index slangs and compile-time variables, fixing gh #556
1 parent 6a91d1b commit d1340a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/Language/variables.pod6

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ Note: Slangs are NYI in Rakudo.
397397
The C<~> twigil is for referring to sublanguages (called slangs). The
398398
following are useful:
399399
400+
X<|$~MAIN>X<|$~Quote>X<|$~Quasi>X<|$~Regex>X<|$~Trans>X<|$~P5Regex>
401+
400402
$~MAIN the current main language (e.g. Perl statements)
401403
$~Quote the current root of quoting language
402404
$~Quasi the current root of quasiquoting language
@@ -1055,6 +1057,8 @@ the block to the caught exception.
10551057
10561058
=head2 Compile-time variables
10571059
1060+
X<|$?FILE>X<|$?LINE>X<|::?CLASS>X<|&?ROUTINE>X<|&?BLOCK>X<|%?LANG>X<|%?RESOURCES>
1061+
10581062
=for table
10591063
$?FILE Which file am I in?
10601064
$?LINE Which line am I at?
@@ -1066,6 +1070,8 @@ the block to the caught exception.
10661070
10671071
Other compile-time variables:
10681072
1073+
X<|$?SCOPE>X<|$?PACKAGE>X<|$?MODULE>X<|$?CLASS>X<|$?ROLE>X<|$?GRAMMAR>X<|$?TABSTOP>X<|$?USAGE>X<|$?ENC>
1074+
10691075
=for table
10701076
$?SCOPE Which lexical scope am I in?
10711077
$?PACKAGE Which package am I in?

0 commit comments

Comments
 (0)