@@ -11,50 +11,55 @@ raku - Rakudo Raku Compiler
11
11
12
12
= head1 SYNOPSIS
13
13
14
- raku [switches] [--] [programfile] [arguments]
14
+ = for code :lang<usage>
15
+ raku [switches] [--] [programfile] [arguments]
15
16
16
17
= head1 DESCRIPTION
17
18
18
19
With no arguments, enters a REPL. With a C < [programfile] > or the C < -e >
19
20
option, compiles the given program and by default also executes the
20
21
compiled code.
21
22
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
45
48
46
49
Note that only boolean single-letter options may be bundled.
47
50
48
51
The supported values for C < --target > are:
49
52
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)
55
59
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
58
63
59
64
For C < --profile-filename > , specifying a name ending in C < .json > will write a raw
60
65
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>.
249
254
250
255
To receive the output of the program it suffices to redirect it externally:
251
256
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
253
259
254
260
= head1 AUTHORS
255
261
@@ -258,4 +264,6 @@ Written by the Rakudo contributors, see the CREDITS file.
258
264
This manual page was written by Reini Urban, Moritz Lenz and the Rakudo
259
265
contributors.
260
266
267
+ = end pod
268
+
261
269
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
0 commit comments