Compilation
A Sidef script can be compiled to a stand-alone Perl program using the -c command-line option:
1
$ sidef -o out.pl -c script.sf
Copied!
The above command will compile the file script.sf into the Perl script out.pl, which will include the entire implementation code of Sidef.
Currently, Sidef code that contains eval() cannot be compiled correctly to Perl, as it requires some parse-time information for run-time evaluation, which is lost in the compilation process.
Last modified 1yr ago
Copy link