Server IP : 111.118.215.189 / Your IP : 18.116.81.133 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/nxml/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:31 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/nxml/rng-cmpct.el ;;; in Emacs version 24.3.1 ;;; 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\300\302!\210\300\303!\210\300\304!\207" [require nxml-util rng-util rng-uri rng-pttrn] 2) #@75 Load a schema in RELAX NG compact syntax from FILENAME. Return a pattern. (defalias 'rng-c-load-schema #[(filename) "\301!\207" [filename rng-c-parse-file] 2 (#$ . 673)]) (byte-code "\300\301\302\303#\210\300\301\304\305#\207" [put rng-c-incorrect-schema error-conditions (error rng-error nxml-file-parse-error rng-c-incorrect-schema) error-message "Incorrect schema"] 4) (defalias 'rng-c-signal-incorrect-schema #[(filename pos message) "\303 \n\304$\207" [filename pos message nxml-signal-file-parse-error rng-c-incorrect-schema] 5]) #@58 List of strings that are keywords in the compact syntax. (defconst rng-c-keywords '("attribute" "default" "datatypes" "div" "element" "empty" "external" "grammar" "include" "inherit" "list" "mixed" "namespace" "notAllowed" "parent" "start" "string" "text" "token") (#$ . 1217)) #@62 Regular expression to match a keyword in the compact syntax. (defconst rng-c-anchored-keyword-re (byte-code "\301\302!\303Q\207" [rng-c-keywords "\\`\\(" regexp-opt "\\)\\'"] 3) (#$ . 1501)) #@46 Syntax table for parsing the compact syntax. (defvar rng-c-syntax-table nil (#$ . 1699)) (byte-code "\204+ \301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\310#\210\302\312\310#\210\302\313\314#\210\301\207" [rng-c-syntax-table make-syntax-table modify-syntax-entry 35 "<" 10 ">" 45 "w" 46 95 58 "_"] 4) #@54 Regular expression to match a single-quoted literal. (defconst rng-c-literal-1-re "'\\(''\\([^']\\|'[^']\\|''[^']\\)*''\\|[^'\n]*\\)'" (#$ . 2033)) #@54 Regular expression to match a double-quoted literal. (defconst rng-c-literal-2-re (replace-regexp-in-string "'" "\"" rng-c-literal-1-re) (#$ . 2187)) (defconst rng-c-ncname-re "\\w+") (defconst rng-c-anchored-ncname-re (concat "\\`" rng-c-ncname-re "\\'")) #@60 Regular expression to match a token in the compact syntax. (defconst rng-c-token-re (concat "[&|]=" #1="\\|" "[][()|&,*+?{}~=-]" #1# rng-c-literal-1-re #1# rng-c-literal-2-re #1# rng-c-ncname-re "\\(:\\(\\*\\|" rng-c-ncname-re "\\)\\)?" #1# "\\\\" rng-c-ncname-re #1# ">>") (#$ . 2450)) (defalias 'rng-c-init-buffer #[nil "\302\303\304!\210\305 !\207" [case-fold-search rng-c-syntax-table nil set-buffer-multibyte t set-syntax-table] 2]) (defvar rng-c-current-token nil) (make-variable-buffer-local 'rng-c-current-token) (defalias 'rng-c-advance #[nil "\302!\203 \303\304!\304\225b\210\305d!\207`dU\203 \306\211\207\307\310!\207" [rng-c-token-re rng-c-current-token looking-at match-string 0 forward-comment "" rng-c-error "Invalid token"] 2]) (defconst rng-c-anchored-datatype-name-re (concat "\\`" rng-c-ncname-re ":" rng-c-ncname-re "\\'")) (defalias 'rng-c-current-token-keyword-p #[nil "\302 \"\207" [rng-c-anchored-keyword-re rng-c-current-token string-match] 3]) (put 'rng-c-current-token-keyword-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'rng-c-current-token-prefixed-name-p #[nil "\302 \"\207" [rng-c-anchored-datatype-name-re rng-c-current-token string-match] 3]) (put 'rng-c-current-token-prefixed-name-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'rng-c-current-token-literal-p #[nil "\301\302\"\207" [rng-c-current-token string-match "\\`['\"]"] 3]) (put 'rng-c-current-token-literal-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'rng-c-current-token-quoted-identifier-p #[nil "\301\302\"\207" [rng-c-current-token string-match "\\`\\\\"] 3]) (put 'rng-c-current-token-quoted-identifier-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'rng-c-current-token-ncname-p #[nil "\302 \"\207" [rng-c-anchored-ncname-re rng-c-current-token string-match] 3]) (put 'rng-c-current-token-ncname-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'rng-c-current-token-ns-name-p #[nil "G\211\302V\205 SH\303U)\207" [rng-c-current-token len 0 42] 3]) (put 'rng-c-current-token-ns-name-p 'byte-optimizer 'byte-compile-inline-expand) (defvar rng-c-inherit-namespace nil) (defvar rng-c-default-namespace nil) (defvar rng-c-default-namespace-declared nil) #@34 Alist of namespace declarations. (defvar rng-c-namespace-decls nil (#$ . 4674)) (defconst rng-c-no-namespace nil) (defalias 'rng-c-declare-standard-namespaces #[nil "\305B B\n?\205 \205 \211\207" [nxml-xml-namespace-uri rng-c-namespace-decls rng-c-default-namespace-declared rng-c-inherit-namespace rng-c-default-namespace "xml"] 2]) (defalias 'rng-c-expand-name #[(prefixed-name) "\302\303\"\304\305\306 O! T\307O\")\207" [prefixed-name i string-match ":" rng-make-name rng-c-lookup-prefix 0 nil] 5]) (defalias 'rng-c-lookup-prefix #[(prefix) "\303 \"\211\204 \304\305\"\210\nA)\207" [prefix rng-c-namespace-decls binding assoc rng-c-error "Undefined prefix %s"] 4]) (defalias 'rng-c-unqualified-namespace #[(attribute) "\203 \207\n\207" [attribute rng-c-no-namespace rng-c-default-namespace] 1]) (defalias 'rng-c-make-context #[nil " B\207" [rng-c-default-namespace rng-c-namespace-decls] 2]) (defconst rng-string-datatype (rng-make-datatype rng-builtin-datatypes-uri "string")) (defconst rng-token-datatype (rng-make-datatype rng-builtin-datatypes-uri "token")) #@119 Alist of datatype declarations. Contains a list of pairs (PREFIX . URI) where PREFIX is a string and URI is a symbol. (defvar rng-c-datatype-decls nil (#$ . 5765)) (defalias 'rng-c-declare-standard-datatypes #[nil "\302B B\211\207" [rng-xsd-datatypes-uri rng-c-datatype-decls "xsd"] 2]) (defalias 'rng-c-lookup-datatype-prefix #[(prefix) "\303 \"\211\204 \304\305\"\210\nA)\207" [prefix rng-c-datatype-decls binding assoc rng-c-error "Undefined prefix %s"] 4]) (defalias 'rng-c-expand-datatype #[(prefixed-name) "\302\303\"\304\305\306 O! T\307O\")\207" [prefixed-name i string-match ":" rng-make-datatype rng-c-lookup-datatype-prefix 0 nil] 5]) (defvar rng-c-current-grammar nil) (defvar rng-c-parent-grammar nil) (defalias 'rng-c-make-grammar #[nil "\300\301\302\"\207" [make-hash-table :test equal] 3]) (defconst rng-c-about-override-slot 0) (defconst rng-c-about-combine-slot 1) #@242 Return a def object for NAME. A def object is a pair (ABOUT . REF) where REF is returned by `rng-make-ref'. ABOUT is a two-element vector [OVERRIDE COMBINE]. COMBINE is either nil, choice or interleave. OVERRIDE is either nil, require or t. (defalias 'rng-c-lookup-create #[(name grammar) "\303 \"\211\203 \n\202 \304\305\211\"\306!B\307\n #\210\n)\207" [name grammar def gethash vector nil rng-make-ref puthash] 5 (#$ . 6665)]) (defalias 'rng-c-make-ref #[(name) "\204 \302\303!\210\304 \"A\207" [rng-c-current-grammar name rng-c-error "Reference not in a grammar" rng-c-lookup-create] 3]) (defalias 'rng-c-make-parent-ref #[(name) "\204 \302\303!\210\304 \"A\207" [rng-c-parent-grammar name rng-c-error "Reference to non-existent parent grammar" rng-c-lookup-create] 3]) #@40 Contains a list of (NAME . DEF) pairs. (defvar rng-c-overrides nil (#$ . 7457)) (defalias 'rng-c-merge-combine #[(def combine name) "@\211\nH\f\203# \203 \f=\206$ \306\307 \"\202$ \n\fI\202$ *\207" [def about rng-c-about-combine-slot current-combine combine name rng-c-error "Inconsistent combine for %s"] 4]) (defalias 'rng-c-prepare-define #[(name combine in-include) "\306 \"\211@\211\fH\203 \nBB \203, \307=\203( \f\310I\210\311\202F \312\n#\313\nA!\203E \204E \314\315\"\210\n+\207" [name rng-c-current-grammar def about rng-c-about-override-slot overridden rng-c-lookup-create require t nil rng-c-merge-combine rng-ref-get rng-c-error "Duplicate definition of %s" in-include rng-c-overrides combine] 5]) (defalias 'rng-c-start-include #[(overrides) "\301\302\"\207" [overrides mapcar #[(name-def) "A\211@\211H\n\305I\210\f+B\207" [name-def def about rng-c-about-override-slot save require] 4]] 3]) (defalias 'rng-c-end-include #[(overrides) "\301\302\"\207" [overrides mapcar #[(o) "@A\211@\nA\211@\211 H\306=\203 \307\310\"\210 I-\207" [o saved name-def name def about require rng-c-error "Definition of %s in include did not override definition in included file" rng-c-about-override-slot] 4]] 3]) (defalias 'rng-c-define #[(def value) "\205, \304A!\305A \203) @\nH\306=\203! \307 D!\202* \310 D!\202* \")\207" [def current-value rng-c-about-combine-slot value rng-ref-get rng-ref-set choice rng-make-choice rng-make-interleave] 5]) (defalias 'rng-c-finish-grammar #[nil "\301\302\"\210\303\304\305\"\206 \306\307!A!\207" [rng-c-current-grammar maphash #[(key def) "\302A!\206 \303\304 \"\207" [def key rng-ref-get rng-c-error "Reference to undefined pattern %s"] 3] rng-ref-get gethash start rng-c-error "No definition of start"] 4]) (defvar rng-c-escape-positions nil) (make-variable-buffer-local 'rng-c-escape-positions) (defvar rng-c-file-name nil) (make-variable-buffer-local 'rng-c-file-name) (defvar rng-c-file-index nil) (defalias 'rng-c-parse-file #[(filename &optional context) "r\304\305!!q\210\306 \210\307 \210\310 !@\311\312 \210\313!)\207" [context filename rng-c-file-name rng-c-escape-positions get-buffer-create rng-c-buffer-name erase-buffer rng-c-init-buffer insert-file-contents nil rng-c-process-escapes rng-c-parse-top-level] 3]) (defalias 'rng-c-buffer-name #[(context) "\302\203 \303\304 T\211!\305Q\202 \306\307P\207" [context rng-c-file-index " *RNC Input" "<" number-to-string ">*" 1 "*"] 5]) (defalias 'rng-c-process-escapes #[nil "\306\307\310\311#\211\203 \312\313!\210)\314\315\316d\311#\203^ \317\320\321\322\323!\324\"\"\211\203V \n\314V\203V \314\224\314\225\211|\210\n\325=\203A \314\202B \nc\210 \326\f\323#\\` B B*\202Z \312\327!\210)\202 )\323b\207" [pos offset ch end begin rng-c-escape-positions search-forward "