Command-line options
The Sidef interpreter has the following command-line options:
1
Usage: sidef [switches] [--] [programfile] [arguments]
2
3
-c compile the code into a Perl program
4
-C check syntax only
5
-D dump the syntax tree of a program
6
-E program one line of program
7
-H interactive help
8
-i interactive mode
9
-k keep track of potential unsafe parser interpretations
10
-M mode set the rounding mode of floating-point numbers
11
valid modes: [near], zero, inf, +inf, -inf
12
-o file file where to dump the output
13
-O level perform code optimizations before execution
14
valid levels: [0], 1, 2
15
-P int set the precision of floating-point numbers (default: 48)
16
-r parse and deparse a Sidef program
17
-R lang parse and deparse a Sidef program into a given language
18
valid values: sidef, perl
19
-s save compiled code in a database to reduce boot-time
20
-t treat all command-line arguments as scripts
21
-v print version number and exit
22
-w enable warnings with stack backtrace
23
-W make warnings fatal (with stack backtrace)
24
25
Run 'sidef -i' for interactive mode.
Copied!
...which we'll examine in more detail in the following pages.
Last modified 1yr ago
Copy link