Skip to content

Commit cebcc2f

Browse files
authored
Merge pull request #3683 from patrickbkr/fix-test-errors
Fix test errors in `doc/Programs/03-environment-variables.pod6`
2 parents 7acde3f + 9c0c455 commit cebcc2f

File tree

3 files changed

+46
-33
lines changed

3 files changed

+46
-33
lines changed

doc/Programs/03-environment-variables.pod6

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,50 +11,55 @@ raku - Rakudo Raku Compiler
1111
1212
=head1 SYNOPSIS
1313
14-
raku [switches] [--] [programfile] [arguments]
14+
=for code :lang<usage>
15+
raku [switches] [--] [programfile] [arguments]
1516
1617
=head1 DESCRIPTION
1718
1819
With no arguments, enters a REPL. With a C<[programfile]> or the C<-e>
1920
option, compiles the given program and by default also executes the
2021
compiled code.
2122
22-
-c check syntax only (runs BEGIN and CHECK blocks)
23-
--doc extract documentation and print it as text
24-
-e program one line of program, strict is enabled by default
25-
-h, --help display this help text
26-
-n run program once for each line of input
27-
-p same as -n, but also print $_ at the end of lines
28-
-I path adds the path to the module search path
29-
-M module loads the module prior to running the program
30-
--target=[stage] specify compilation stage to emit
31-
--optimize=[level] use the given level of optimization (0..3)
32-
--encoding=[mode] specify string encoding mode
33-
-o, --output=[name] specify name of output file
34-
-v, --version display version information
35-
--stagestats display time spent in the compilation stages
36-
--ll-exception display a low level backtrace on errors
37-
--profile write profile information as HTML file (MoarVM)
38-
--profile-filename provide a different filename (also allows .json)
39-
--doc=[module] Use Pod::To::[module] to render inline documentation.
40-
--full-cleanup try to free all memory and exit cleanly (MoarVM)
41-
--debug-port=port listen for incoming debugger connections (MoarVM)
42-
--debug-suspend pause execution at the entry point (MoarVM)
43-
--tracing output a line to stderr on every interpreter instr (only
44-
if enabled in MoarVM)
23+
=begin code :lang<usage>
24+
-c check syntax only (runs BEGIN and CHECK blocks)
25+
--doc extract documentation and print it as text
26+
-e program one line of program, strict is enabled by default
27+
-h, --help display this help text
28+
-n run program once for each line of input
29+
-p same as -n, but also print $_ at the end of lines
30+
-I path adds the path to the module search path
31+
-M module loads the module prior to running the program
32+
--target=[stage] specify compilation stage to emit
33+
--optimize=[level] use the given level of optimization (0..3)
34+
--encoding=[mode] specify string encoding mode
35+
-o, --output=[name] specify name of output file
36+
-v, --version display version information
37+
--stagestats display time spent in the compilation stages
38+
--ll-exception display a low level backtrace on errors
39+
--profile write profile information as HTML file (MoarVM)
40+
--profile-filename provide a different filename (also allows .json)
41+
--doc=[module] Use Pod::To::[module] to render inline documentation.
42+
--full-cleanup try to free all memory and exit cleanly (MoarVM)
43+
--debug-port=port listen for incoming debugger connections (MoarVM)
44+
--debug-suspend pause execution at the entry point (MoarVM)
45+
--tracing output a line to stderr on every interpreter instr (only
46+
if enabled in MoarVM)
47+
=end code
4548
4649
Note that only boolean single-letter options may be bundled.
4750
4851
The supported values for C<--target> are:
4952
50-
Target Backend Description
51-
====== ======= ===========
52-
parse all a representation of the parse tree
53-
ast all an abstract syntax tree (before optimizations)
54-
optimize all an abstract syntax tree (after optimizations)
53+
=begin code :lang<text>
54+
Target Backend Description
55+
====== ======= ===========
56+
parse all a representation of the parse tree
57+
ast all an abstract syntax tree (before optimizations)
58+
optimize all an abstract syntax tree (after optimizations)
5559
56-
mbc MoarVM MoarVM byte code
57-
jar JVM JVM archive
60+
mbc MoarVM MoarVM byte code
61+
jar JVM JVM archive
62+
=end code
5863
5964
For C<--profile-filename>, specifying a name ending in C<.json> will write a raw
6065
JSON profile dump. The default if this is omitted is C<profile-I<[timestamp]>.html>.
@@ -249,7 +254,8 @@ everything that is printed to C<STDOUT> and C<STDERR>.
249254
250255
To receive the output of the program it suffices to redirect it externally:
251256
252-
rakuw.exe script.raku >stdout.txt 2>stderr.txt
257+
=for code :lang<batch>
258+
rakuw.exe script.raku >stdout.txt 2>stderr.txt
253259
254260
=head1 AUTHORS
255261
@@ -258,4 +264,6 @@ Written by the Rakudo contributors, see the CREDITS file.
258264
This manual page was written by Reini Urban, Moritz Lenz and the Rakudo
259265
contributors.
260266
267+
=end pod
268+
261269
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

xt/headings.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for @files -> $file {
2626
# proper names, macros, acronyms, and other exceptions
2727
$title ~~ s:g/ <|w> (
2828
I
29-
| Raku | Perl 6 | Pod6 | P6 | C3 | NQP
29+
| Raku | Rakudo | Perl 6 | Pod6 | P6 | C3 | NQP
3030
| AST | EVAL | PRE | POST | CLI | MOP
3131
| TITLE | SUBTITLE | "MONKEY-TYPING"
3232
| API | TCP | UDP | FAQ

xt/pws/words.pws

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ evalbot
410410
evalbytes
411411
evaled
412412
evalfile
413+
exe
413414
execl
414415
executables
415416
execv
@@ -801,6 +802,7 @@ moarperf
801802
moarvm
802803
moarvm's
803804
modulehow
805+
moduleloader
804806
mojo
805807
mojolicious
806808
moritz
@@ -1121,9 +1123,11 @@ rakudo's
11211123
rakudobrew
11221124
rakudoc
11231125
rakudolib
1126+
rakudow
11241127
rakulib
11251128
rakumod
11261129
rakutest
1130+
rakuw
11271131
ratstr
11281132
readchars
11291133
readdir
@@ -1189,6 +1193,7 @@ rubygems
11891193
rubylib
11901194
runge
11911195
rungekutta
1196+
runtime
11921197
runtime's
11931198
rvalue
11941199
rvalues

0 commit comments

Comments
 (0)