%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/share/emacs/27.2/lisp/org/
Upload File :
Create Path :
Current File : //usr/local/share/emacs/27.2/lisp/org/ob-perl.elc

;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\300\301!\210\302\303\304\"\207" [require ob add-to-list org-babel-tangle-lang-exts ("perl" . "pl")] 3)
(defvar org-babel-default-header-args:perl nil)
#@49 Name of command to use for executing perl code.
(defvar org-babel-perl-command "perl" (#$ . 572))
#@118 Execute a block of Perl code with Babel.
This function is called by `org-babel-execute-src-block'.

(fn BODY PARAMS)
(defalias 'org-babel-execute:perl #[514 "\300\236A\301\236A\302\236A\303\304!#\305!\306\307$\310\311	\236A\312\n\236A\"\310\313\n\236A\314\236A\"#\207" [:session :result-params :result-type org-babel-expand-body:generic org-babel-variable-assignments:perl org-babel-perl-initiate-session org-babel-reassemble-table org-babel-perl-evaluate org-babel-pick-name :colname-names :colnames :rowname-names :rownames] 14 (#$ . 677)])
#@83 Prepare SESSION according to the header arguments in PARAMS.

(fn SESSION PARAMS)
(defalias 'org-babel-prep-session:perl #[514 "\300\301!\207" [error "Sessions are not supported for Perl"] 4 (#$ . 1245)])
#@78 Return list of perl statements assigning the block's variables.

(fn PARAMS)
(defalias 'org-babel-variable-assignments:perl #[257 "\300\301\302!\"\207" [mapcar #[257 "\300A@\"\207" [org-babel-perl--var-to-perl] 4 "\n\n(fn PAIR)"] org-babel--get-vars] 5 (#$ . 1456)])
#@48 Wrapper for variables inserted into Perl code.
(defvar org-babel-perl-var-wrap "q(%s)" (#$ . 1732))
#@172 Convert an elisp value to a perl variable.
The elisp value, VAR, is converted to a string of perl source code
specifying a var of the same value.

(fn VAR &optional VARN)
(defalias 'org-babel-perl--var-to-perl #[513 "\211\203\301<\302\303!\304\205\305\306!\307\260)\207\310\311_\312\"\211<\2039T\313\314\306\315#\316R)\202=\317\320\"\301U?\205E\321Q\207" [org-babel-perl--lvl 0 "my $" symbol-name "=" "\n" org-babel-perl--var-to-perl ";\n" make-string 2 32 "[\n" mapconcat "" "]" format "q(%s)" ",\n"] 10 (#$ . 1839)])
(defvar org-babel-perl-buffers '(:default))
#@87 Return nil because sessions are not supported by perl.

(fn &optional SESSION PARAMS)
(defalias 'org-babel-perl-initiate-session #[512 "\300\207" [nil] 3 (#$ . 2432)])
(defvar org-babel-perl-wrapper-method "{\n    my $babel_sub = sub {\n        %s\n    };\n    open my $BOH, qq(>%s) or die qq(Perl: Could not open output file.$/);\n    my $rv = &$babel_sub();\n    my $rt = ref $rv;\n    select $BOH;\n    if (qq(ARRAY) eq $rt) {\n        local $\\=$/;\n        local $,=qq(	);\n	foreach my $rv ( @$rv ) {\n	    my $rt = ref $rv;\n	    if (qq(ARRAY) eq $rt) {\n		print @$rv;\n	    } else {\n		print $rv;\n	    }\n	}\n    } else {\n	print $rv;\n    }\n}")
(defvar org-babel-perl-preface nil)
(defvar org-babel-perl-pp-wrapper-method nil)
#@284 Pass BODY to the Perl process in SESSION.
If RESULT-TYPE equals `output' then return a list of the outputs
of the statements in BODY, if RESULT-TYPE equals `value' then
return the value of the last statement in BODY, as elisp.

(fn SESSION IBODY &optional RESULT-TYPE RESULT-PARAMS)
(defalias 'org-babel-perl-evaluate #[1026 "\203\303\304!\210P\305\306!\307\310\"\311\267\202T\312\313!\314\315\316\317\320!\321\"\322$\216r\211q\210\323	\"c\210\324 )rq\210\325\326\211\326\315%\210*\266\202\202U\323	\327\n#\"\202U\326\211\205\257\330\235?\205\255\331\235\204\243\332\235\204\243\333\235\204\243\334\235\204\243\335\235\204\243\336\235\204\243\337\235\204\235\340\235\204\235\341\235\204\235\342\235\203\251\343\235\204\251\344!\202\255\345\346\"\262\262\207" [org-babel-perl-preface org-babel-perl-command org-babel-perl-wrapper-method error "Sessions are not supported for Perl" org-babel-temp-file "perl-" org-babel-process-file-name noquote #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (output 24 value 72)) generate-new-buffer " *temp file*" make-byte-code 0 "\301\300!\205	\302\300!\207" vconcat vector [buffer-name kill-buffer] 2 org-babel-eval buffer-string write-region nil format "none" "scalar" "verbatim" "html" "code" "pp" "file" "output" "raw" "org" "drawer" "table" org-babel-eval-read-file org-babel-import-elisp-from-file (16)] 16 (#$ . 3176)])
(provide 'ob-perl)

Zerion Mini Shell 1.0