%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/cedet/semantic/wisent/ |
Current File : //usr/local/share/emacs/27.2/lisp/cedet/semantic/wisent/wisent.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\302\303\304\305%\210\306\307!\203 \310\311\307\"\210\202 \310\311\312\"\210\302\207" [custom-declare-group wisent nil "\n /\\_.-^^^-._/\\ The GNU\n \\_ _/\n ( \\=`o \\=` (European ;-) Bison\n \\ \\=` /\n ( D ,\" for Emacs!\n \\=` ~ ,\"\n \\=`\"\"" :group semantic fboundp char-valid-p defalias wisent-char-p char-or-char-int-p] 6) #@51 Printed representation of usual escape sequences. (defconst wisent-escape-sequence-strings '((7 . "'\\a'") (8 . "'\\b'") (9 . "'\\t'") (10 . "'\\n'") (11 . "'\\v'") (12 . "'\\f'") (13 . "'\\r'") (27 . "'\\e'") (92 . "'\\'") (127 . "'\\d'")) (#$ . 880)) #@112 Return a printed representation of ITEM. ITEM can be a nonterminal or terminal symbol, or a character literal. (defalias 'wisent-item-to-string #[(item) "\302!\203 \236A\206 \303\304\"\207\305!\207" [item wisent-escape-sequence-strings wisent-char-p format "'%c'" symbol-name] 3 (#$ . 1140)]) (put 'wisent-item-to-string 'byte-optimizer 'byte-compile-inline-expand) #@57 Return a printed representation of lexical token TOKEN. (defalias 'wisent-token-to-string #[(token) "\303\304@\305 !\203 \n\236A\206 \303\306 \"\202 \307 !)\3108\203, \303\311\3108\"\202- \312A@$\207" [token item wisent-escape-sequence-strings format "%s%s(%S)" wisent-char-p "'%c'" symbol-name 2 "@%s" ""] 7 (#$ . 1519)]) (put 'wisent-token-to-string 'byte-optimizer 'byte-compile-inline-expand) #@21 End Of Input token. (defconst wisent-eoi-term '$EOI (#$ . 1931)) #@23 Error recovery token. (defconst wisent-error-term 'error (#$ . 2002)) #@48 Accept result after input successfully parsed. (defconst wisent-accept-tag 'accept (#$ . 2078)) #@25 Process a syntax error. (defconst wisent-error-tag 'error (#$ . 2180)) #@80 Return non-nil if OBJ is a LALR automaton. If OBJ is a symbol check its value. (defalias 'wisent-automaton-p #[(obj) "\203 9\203 \301!\203 J\302!\205G G\303U\205G \302\304H!\205G \302\305H!\205G \304HG\305HGU\205G \306H<\205G \307\310H!\207" [obj boundp vectorp 4 0 1 2 obarrayp 3] 3 (#$ . 2257)]) #@233 Return the start/end positions of the region including POSITIONS. Each element of POSITIONS is a pair (START-POS . END-POS) or nil. The returned value is the pair (MIN-START-POS . MAX-END-POS) or nil if no POSITIONS are available. (defalias 'wisent-region #[(&rest positions) "\302\303\"\211\205 \304\305\306\307 \"\"\304\310\306\311 \"\"B)\207" [positions pl delq nil apply min mapcar car max cdr] 7 (#$ . 2578)]) (byte-code "\300\301\302\303#\210\304\305\306\307\310\311%\207" [put wisent-region byte-optimizer byte-compile-inline-expand custom-declare-variable wisent-parse-verbose-flag nil "Non-nil means to issue more messages while parsing." :type boolean] 6) #@54 Toggle whether to issue more messages while parsing. (defalias 'wisent-parse-toggle-verbose-flag #[nil "?\301\302!\205 \303\304\203 \305\202 \306\"\207" [wisent-parse-verbose-flag called-interactively-p interactive message "More messages while parsing %sabled" "en" "dis"] 3 (#$ . 3254) nil]) #@110 Print a one-line message if `wisent-parse-verbose-flag' is set. Pass STRING and ARGS arguments to `message'. (defalias 'wisent-message #[(string &rest args) "\205 \303\304 \n#\207" [wisent-parse-verbose-flag string args apply message] 4 (#$ . 3560)]) (byte-code "\300\301\302\303#\210\304\305\306\307\310\311\312\313&\210\304\314\315\316\310\311\312\313&\207" [put wisent-message byte-optimizer byte-compile-inline-expand custom-declare-variable wisent-parse-max-stack-size 500 "The parser stack size." :type integer :group wisent wisent-parse-max-recover 3 "Number of tokens to shift before turning off error status."] 8) #@473 List of functions to be called when discarding a lexical token. These functions receive the lexical token discarded. When the parser encounters unexpected tokens, it can discards them, based on what directed by error recovery rules. Either when the parser reads tokens until one is found that can be shifted, or when an semantic action calls the function `wisent-skip-token' or `wisent-skip-block'. For language specific hooks, make sure you define this as a local hook. (defvar wisent-discarding-token-functions nil (#$ . 4194)) #@60 Normal hook run just before entering the LR parser engine. (defvar wisent-pre-parse-hook nil (#$ . 4731)) #@61 Normal hook run just after the LR parser engine terminated. (defvar wisent-post-parse-hook nil (#$ . 4843)) #@121 The current parser action. Stop parsing when set to nil. This variable only has meaning in the scope of `wisent-parse'. (defvar wisent-loop nil (#$ . 4958)) #@48 The number of parse errors encountered so far. (defvar wisent-nerrs nil (#$ . 5121)) #@112 The lookahead lexical token. This value is non-nil if the parser terminated because of an unrecoverable error. (defvar wisent-lookahead nil (#$ . 5213)) #@134 The user supplied lexer function. This function don't have arguments. This variable only has meaning in the scope of `wisent-parse'. (defvar wisent-parse-lexer-function nil (#$ . 5373)) #@156 The user supplied error function. This function must accept one argument, a message string. This variable only has meaning in the scope of `wisent-parse'. (defvar wisent-parse-error-function nil (#$ . 5566)) #@85 The last token read. This variable only has meaning in the scope of `wisent-parse'. (defvar wisent-input nil (#$ . 5780)) #@109 Non-nil means that the parser is recovering. This variable only has meaning in the scope of `wisent-parse'. (defvar wisent-recovering nil (#$ . 5909)) (defvar $region nil) (defvar $nterm nil) (defvar $action nil) #@36 Obtain the next terminal in input. (defalias 'wisent-lexer '(macro . #[nil "\300\207" [(funcall wisent-parse-lexer-function)] 1 (#$ . 6128)])) #@67 Call the user supplied error reporting function with message MSG. (defalias 'wisent-error '(macro . #[(msg) "\301\302E\207" [msg funcall wisent-parse-error-function] 3 (#$ . 6277)])) #@137 Resume generating error messages immediately for subsequent syntax errors. This is useful primarily in error recovery semantic actions. (defalias 'wisent-errok '(macro . #[nil "\300\207" [(setq wisent-recovering nil)] 1 (#$ . 6468)])) #@147 Discard the current lookahead token. This will cause a new lexical token to be read. This is useful primarily in error recovery semantic actions. (defalias 'wisent-clearin '(macro . #[nil "\300\207" [(setq wisent-input nil)] 1 (#$ . 6710)])) #@106 Abort parsing and save the lookahead token. This is useful primarily in error recovery semantic actions. (defalias 'wisent-abort '(macro . #[nil "\300\207" [(setq wisent-lookahead wisent-input wisent-loop nil)] 1 (#$ . 6959)])) #@217 Change the region of text matched by the current nonterminal. START and END are respectively the beginning and end positions of the region. If START or END values are not a valid positions the region is set to nil. (defalias 'wisent-set-region '(macro . #[(start end) "\302\303\304\305D\305 D\306 EFE\207" [start end setq $region and number-or-marker-p cons] 8 (#$ . 7194)])) #@115 Skip the lookahead token in order to resume parsing. Return nil. Must be used in error recovery semantic actions. (defalias 'wisent-skip-token #[nil "@ =?\205\\ \306\n\307\310@\311\f!\203% \f \236A\206( \307\312\f\"\202( \313\f!)\3148\2038 \307\315\3148\"\2029 \316A@$)D\205O \317\320#*\210\321\322\"\210\323\211\211\207" [wisent-input wisent-eoi-term $action token item wisent-escape-sequence-strings "%s: skip %s" format "%s%s(%S)" wisent-char-p "'%c'" symbol-name 2 "@%s" "" apply message run-hook-with-args wisent-discarding-token-functions nil args string wisent-parse-verbose-flag wisent-recovering] 10 (#$ . 7580)]) #@419 Safely skip a parenthesized block in order to resume parsing. Return nil. Must be used in error recovery semantic actions. Optional argument BOUNDS is a pair (START . END) which indicates where the parenthesized block starts. Typically the value of a `$regionN' variable, where `N' is the Nth element of the current rule components that match the block beginning. It defaults to the value of the `$region' variable. (defalias 'wisent-skip-block #[(&optional bounds) "\206 @\306\211\307\f!\204 \310 \202\212\fb\210\311\312!\2050 \3131. \314`\315\316#S0\2020 \210\306)\211\204; \310 \202 \211@=\204Z \317\n8W\203Z \320\321\n\"\210 \211\202>