%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/share/emacs/27.2/lisp/cedet/semantic/bovine/
Upload File :
Create Path :
Current File : //usr/local/share/emacs/27.2/lisp/cedet/semantic/bovine/grammar.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\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\207" [require semantic semantic/grammar semantic/find semantic/lex semantic/wisent semantic/bovine] 2)
#@154 Expand call to EXPAND grammar macro.
Return the form to parse from within a nonterminal between BOUNDS.
NONTERM is the nonterminal symbol to start with.
(defalias 'bovine-grammar-EXPAND #[(bounds nonterm) "\302\303D\304D\305	DF\207" [bounds nonterm semantic-bovinate-from-nonterminal car cdr quote] 5 (#$ . 599)])
#@153 Expand call to EXPANDFULL grammar macro.
Return the form to recursively parse the area between BOUNDS.
NONTERM is the nonterminal symbol to start with.
(defalias 'bovine-grammar-EXPANDFULL #[(bounds nonterm) "\302\303D\304D\305	D\306BBBB\207" [bounds nonterm semantic-parse-region car cdr quote (1)] 5 (#$ . 922)])
#@174 Expand call to TAG grammar macro.
Return the form to create a generic semantic tag.
See the function `semantic-tag' for the meaning of arguments NAME,
CLASS and ATTRIBUTES.
(defalias 'bovine-grammar-TAG #[(name class &rest attributes) "\303	\nBBB\207" [name class attributes semantic-tag] 4 (#$ . 1246)])
#@220 Expand call to VARIABLE-TAG grammar macro.
Return the form to create a semantic tag of class variable.
See the function `semantic-tag-new-variable' for the meaning of
arguments NAME, TYPE, DEFAULT-VALUE and ATTRIBUTES.
(defalias 'bovine-grammar-VARIABLE-TAG #[(name type default-value &rest attributes) "\304	\nBBBB\207" [name type default-value attributes semantic-tag-new-variable] 5 (#$ . 1559)])
#@215 Expand call to FUNCTION-TAG grammar macro.
Return the form to create a semantic tag of class function.
See the function `semantic-tag-new-function' for the meaning of
arguments NAME, TYPE, ARG-LIST and ATTRIBUTES.
(defalias 'bovine-grammar-FUNCTION-TAG #[(name type arg-list &rest attributes) "\304	\nBBBB\207" [name type arg-list attributes semantic-tag-new-function] 5 (#$ . 1968)])
#@211 Expand call to TYPE-TAG grammar macro.
Return the form to create a semantic tag of class type.
See the function `semantic-tag-new-type' for the meaning of arguments
NAME, TYPE, MEMBERS, PARENTS and ATTRIBUTES.
(defalias 'bovine-grammar-TYPE-TAG #[(name type members parents &rest attributes) "\305	\n\fBBBBB\207" [name type members parents attributes semantic-tag-new-type] 6 (#$ . 2362)])
#@209 Expand call to INCLUDE-TAG grammar macro.
Return the form to create a semantic tag of class include.
See the function `semantic-tag-new-include' for the meaning of
arguments NAME, SYSTEM-FLAG and ATTRIBUTES.
(defalias 'bovine-grammar-INCLUDE-TAG #[(name system-flag &rest attributes) "\303	\nBBB\207" [name system-flag attributes semantic-tag-new-include] 4 (#$ . 2761)])
#@204 Expand call to PACKAGE-TAG grammar macro.
Return the form to create a semantic tag of class package.
See the function `semantic-tag-new-package' for the meaning of
arguments NAME, DETAIL and ATTRIBUTES.
(defalias 'bovine-grammar-PACKAGE-TAG #[(name detail &rest attributes) "\303	\nBBB\207" [name detail attributes semantic-tag-new-package] 4 (#$ . 3141)])
#@195 Expand call to CODE-TAG grammar macro.
Return the form to create a semantic tag of class code.
See the function `semantic-tag-new-code' for the meaning of arguments
NAME, DETAIL and ATTRIBUTES.
(defalias 'bovine-grammar-CODE-TAG #[(name detail &rest attributes) "\303	\nBBB\207" [name detail attributes semantic-tag-new-code] 4 (#$ . 3506)])
#@214 Expand call to ALIAS-TAG grammar macro.
Return the form to create a semantic tag of class alias.
See the function `semantic-tag-new-alias' for the meaning of arguments
NAME, ALIASCLASS, DEFINITION and ATTRIBUTES.
(defalias 'bovine-grammar-ALIAS-TAG #[(name aliasclass definition &rest attributes) "\304	\nBBBB\207" [name aliasclass definition attributes semantic-tag-new-alias] 5 (#$ . 3856)])
(defvar bovine--grammar-macros nil)
#@257 Expand FORM into a new one suitable to the bovine parser.
FORM is a list in which we are substituting.
Argument QUOTEMODE is non-nil if we are in backquote mode.
When non-nil, optional argument INPLACE indicates that FORM is being
expanded from elsewhere.
(defalias 'bovine-grammar-expand-form #[(form quotemode &optional inplace) "@\306=\203LA\211G\307U\203+@<\203+\310c\210\311@	\312#\210\313c\210\312\211\202LG\307U\203G@9\203G\314\315@!\261\210\312\211\202L\316c\210\317@\236\312\211\211\211\211)*+\211,\203q\311\320,AA\"	\317#\202\n\n\203x\321c\210\203\374@*A-\322Y\203\307*<\203\307*@\323=\204\240*@\324=\203\307*A@<\203\267\325*A\"*@*\202\307\326\315*@!\315*A@!P!**\312=\203\343+\204\335\n\204\335\316c\210\317+\327c\210\202x*<\203+\204\370\n\204\370\316c\210\317+\311*	\317#\210\202x*9\203\343\315*!)	\312)\330H\331=\203K	\203B)\307H\332=\2036\333)\334\")\312\317\202K\333)\307\")\312\202K\333)\307\")\317)\335\230\203`\311@	\317#\210A\211\202y)\330H\336=\203\260
\204\260\f\204\200+\204\200\n\204\200\316c\210\202\223\f\203\223+\203\223\n\204\223\313c\210\312+\337\340\341\333)\307\"!S!\342\261\210\f\204x\n\204x\317+\202x+\204\277\n\204\277\316c\210\317+\343`Sf\344\"\204\313\345c\210\n\204\326*\317=\203\332\335\202\333\346)\261\210\202x+\204\362\n\204\362\316c\210\317+\347\350*\"c\210\202x+\203\313c\210\n\205\n\313c.\207" [form quotemode inplace bovine--grammar-macros x q quote 1 "\n(append" bovine-grammar-expand-form nil ")" "\n'" symbol-name "\n(list" t apply "\n(" 24 \, \,@ append intern " nil" 0 44 64 substring 2 "" 36 "\n(nth " int-to-string string-to-number " vals)" char-equal 40 " " "'" format "\n%S" n first inlist macro emacs-major-version] 7 (#$ . 4295)])
#@115 Expand semantic action string TEXTFORM into Lisp code.
QUOTEMODE is the mode in which quoted symbols are slurred.
(defalias 'bovine-grammar-expand-action #[(textform quotemode) "\304\230?\205A\305!\306c\210	@\307=\203(\310c\210\311\312\307\n\236A	A\"\313#\210\202>	@<\2036	@@\314=\204>\315c\210\311	\"\210\316c)\207" [textform sexp bovine--grammar-macros quotemode "" read "\n" EXPAND ",(lambda (vals start end)" bovine-grammar-expand-form apply t EVAL ",(semantic-lambda" ")\n"] 4 (#$ . 6133)])
#@1250 Return the parser table expression as a string value.
The format of a bovine parser table is:

 ( ( NONTERMINAL-SYMBOL1 MATCH-LIST1 )
   ( NONTERMINAL-SYMBOL2 MATCH-LIST2 )
   ...
   ( NONTERMINAL-SYMBOLn MATCH-LISTn )

Where each NONTERMINAL-SYMBOL is an artificial symbol which can appear
in any child state.  As a starting place, one of the NONTERMINAL-SYMBOLS
must be `bovine-toplevel'.

A MATCH-LIST is a list of possible matches of the form:

 ( STATE-LIST1
   STATE-LIST2
   ...
   STATE-LISTN )

where STATE-LIST is of the form:
  ( TYPE1 [ "VALUE1" ] TYPE2 [ "VALUE2" ] ... LAMBDA )

where TYPE is one of the returned types of the token stream.
VALUE is a value, or range of values to match against.  For
example, a SYMBOL might need to match "foo".  Some TYPES will not
have matching criteria.

LAMBDA is a lambda expression which is evalled with the text of the
type when it is found.  It is passed the list of all buffer text
elements found since the last lambda expression.  It should return a
semantic element (see below.)

For consistency between languages, try to use common return values
from your parser.  Please reference the chapter "Writing Parsers" in
the "Language Support Developer's Guide -" in the semantic texinfo
manual.
(defalias 'bovine-grammar-parsetable-builder #[nil "\306\300!\307\310\301!\206\f\311!\307\310\302!\206\311!\312p!\313\211\203:\f@\211A@)\314=\2033\f@B\fA\211\204\"\237*\312p!\313\211\203`\f@\211A@)\315=\203Y\f@B\fA\211\204H\237*>\316 ?\313\211@A\313\211BC\313\211DE\313\211F\313G>\204\217\317\320!\210\202\273\203\263A\203\236\321\322A\"\210\323@!\324>\"\204\273\317\325\"\210\202\273>@\211@)	\203\320\323	!\324	>\"\204\320\317\326	\"\210\327\330!HrHq\210\331\216\332 \210\333c\210\334\335\261\210	\203\362\336	\337\261\210>\203A>@@\340@!A@\211@)@>A>@\341\235\203\317\342@\"\210\343@\261\210A\2037A@\344I\345
\346
8)I\"*BA@\347I\345
\346
8)I\"*EA@\350I\345
\346
8)I\"*DAAA\343c\210B\204\201\351D\203z\352\202{\353\261\210\202B\203B@CBABC:\203\237\321\354C\"\210\202\201\355`Sf\356\"\204\253\353c\210C\357\235\203\273\317\342C\"\210\202\201\324C\f\"\211\360I\345
\346
8)I\"*\211F\203\373Fc\210
\344I\345
\346
8)I\"*\211G\203\201\361\362G\"c\210\202\201CC\363JC\"\203\364\365C\366\367#P\202C)c\210\202\201E\203&\321\370E\"\210D\2031\371D\n\"\210\372c\210\202\"\373@\353\261\210\202\362\374c\210\375 .\207" [start scopestart quotemode result tags tag semantic-grammar-tag-symbols intern semantic-grammar-first-tag-name "nil" semantic-something-to-tag-table nil token nonterminal semantic-grammar-macros error "Bad input grammar" message "Extra start symbols %S ignored" symbol-name semantic-find-first-tag-by-name "start symbol `%s' has no rule" "scopestart symbol `%s' has no rule" generate-new-buffer " *temp*" #[nil "\301!\205	\302!\207" [#1=#:temp-buffer buffer-name kill-buffer] 2] erase-buffer "`(" "\n(bovine-toplevel \n(" ")\n) ;; end bovine-toplevel\n" "\n(bovine-inner-scope \n(" ")\n) ;; end bovine-inner-scope\n" semantic-tag-components-semantic-grammar-mode ("bovine-toplevel" "bovine-inner-scope") "`%s' is a reserved internal name" "\n(" :value plist-get 2 :prec :expr ";;EMPTY" "" "\n" "Mid-rule action %S ignored" char-equal 40 ("bovine-toplevel" "bovine-inner-scope") :type format "\n%S" string-match "?" substring 1 -1 "%%prec %S ignored" bovine-grammar-expand-action ")" "\n) ;; end " ")\n" buffer-string nterms bovine--grammar-macros nterm rules items item actn prec type regex #1# attribute semantic-grammar-lex-c-char-re] 6 (#$ . 6647)])
#@122 Calculate the location of the source for current buffer.
The source directory is relative to some root in the load path.
(defalias 'bovine-grammar-calculate-source-on-path #[nil "\30214\303\304 \305\"\237\211@A\306	!\204'\203'@\305	QA\202\2040\307 \2021	*0\207\210\307 \207" [dir newdir (error) split-string buffer-file-name "/" locate-library buffer-name] 4 (#$ . 10332)])
#@36 Return the text of the setup code.
(defalias 'bovine-grammar-setupcode-builder #[nil "\302\303\304P\305 \306P\307\310!\211<\203!	G\311V\203!\302\312	\"\202\"\313)%\207" [semantic--grammar-package mode format "(setq semantic--parse-table %s\n          semantic-debug-parser-source %S\n          semantic-debug-parser-class 'semantic-bovine-debug-parser\n          semantic-debug-parser-debugger-source 'semantic/bovine/debug\n          semantic-flex-keywords-obarray %s\n          %s)" "--parse-table" bovine-grammar-calculate-source-on-path "--keyword-table" semantic-grammar-tag-symbols languagemode 1 "semantic-equivalent-major-modes '%S\n" ""] 9 (#$ . 10729)])
#@84 BY mode specific grammar menu.
Menu items are appended to the common grammar menu.
(defvar bovine-grammar-menu '("BY Grammar") (#$ . 11405))
(defvar bovine-grammar-mode-hook nil)
(byte-code "\300\301N\204\f\302\300\301\303#\210\304\305!\204\302\305\306\307#\210\300\207" [bovine-grammar-mode-hook variable-documentation put "Hook run after entering BY mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" boundp bovine-grammar-mode-map definition-name bovine-grammar-mode] 4)
(defvar bovine-grammar-mode-map (make-sparse-keymap))
(byte-code "\301\302N\204\303\301\302\304\305!#\210\306\307!\204\303\307\310\311#\210\312\313 !\210\307\302N\204-\303\307\302\304\314!#\210\306\300!\204B\303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P\303\300\302\304\320!#\210\303\311\321\322#\207" [bovine-grammar-mode-abbrev-table bovine-grammar-mode-map variable-documentation put purecopy "Keymap for `bovine-grammar-mode'." boundp bovine-grammar-mode-syntax-table definition-name bovine-grammar-mode (lambda (#1=#:def-tmp-var) (defvar bovine-grammar-mode-syntax-table #1#)) make-syntax-table "Syntax table for `bovine-grammar-mode'." (lambda (#1#) (defvar bovine-grammar-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `bovine-grammar-mode'." derived-mode-parent semantic-grammar-mode] 5)
#@259 Major mode for editing Bovine grammars.

In addition to any hooks its parent mode `semantic-grammar-mode' might have run,
this mode runs the hook `bovine-grammar-mode-hook', as the final or penultimate step
during initialization.

\{bovine-grammar-mode-map}
(defalias 'bovine-grammar-mode #[nil "\306\300!\210\307\310 \210\311\312\310\313N\203\314\311\313\310\313N#\210\315!\204'\316\317 \"\210\320\f!\211\2036
\321 =\203<\322\f\323 \"\210)\324%\325\"\204V%&=\204V\326%\325&C#\210\327!\210\330\f!\210%&\331\332!\204\235\333\334!\210\335\332\317 \336'$\210(A\211)\203\234\337\334\340#\210)\203\234\337\334)@#\210)A\211)\204\212)\341\342!\210)\343\344!\207" [delay-mode-hooks major-mode mode-name bovine-grammar-mode-map bovine-grammar-mode-syntax-table parent make-local-variable t semantic-grammar-mode bovine-grammar-mode "BY" mode-class put keymap-parent set-keymap-parent current-local-map char-table-parent standard-syntax-table set-char-table-parent syntax-table abbrev-table-get :parents abbrev-table-put use-local-map set-syntax-table boundp emacs-lisp-mode-menu (lambda (#1=#:def-tmp-var) (defvar emacs-lisp-mode-menu #1# #2="Grammar Menu")) nil easy-menu-do-define #2# easy-menu-add-item "--" semantic-install-function-overrides ((semantic-grammar-parsetable-builder . bovine-grammar-parsetable-builder) (semantic-grammar-setupcode-builder . bovine-grammar-setupcode-builder)) run-mode-hooks bovine-grammar-mode-hook bovine-grammar-mode-abbrev-table local-abbrev-table semantic-grammar-menu bovine-grammar-menu #3=#:items] 6 (#$ . 12811) nil])
(byte-code "\304\305\306\"\210\307\310\311BC\312\313#\210\314\315\313\"\210)\316\311\313\317!\320\2045	\211\262\2045\n\262\2053\321\"\262\203`\211\204`\303N\203O\321\303N\"\211\262\2045\211\322N\206Y\211\323N\262\262\2025\266\203\324\325#\207" [#1=#:tmp0 mode-local-active-mode major-mode mode-local-symbol-table add-to-list auto-mode-alist ("\\.by\\'" . bovine-grammar-mode) ((ASSOC . semantic-grammar-ASSOC) (EXPAND . bovine-grammar-EXPAND) (EXPANDFULL . bovine-grammar-EXPANDFULL) (TAG . bovine-grammar-TAG) (VARIABLE-TAG . bovine-grammar-VARIABLE-TAG) (FUNCTION-TAG . bovine-grammar-FUNCTION-TAG) (TYPE-TAG . bovine-grammar-TYPE-TAG) (INCLUDE-TAG . bovine-grammar-INCLUDE-TAG) (PACKAGE-TAG . bovine-grammar-PACKAGE-TAG) (CODE-TAG . bovine-grammar-CODE-TAG) (ALIAS-TAG . bovine-grammar-ALIAS-TAG)) mode-local-bind semantic-grammar-macros (mode-variable-flag t) bovine-grammar-mode mode-local-map-mode-buffers #[nil "\302\301!\210\211\207" [#1# semantic-grammar-macros make-local-variable] 2] put symbol-name nil intern-soft mode-local-parent derived-mode-parent variable-documentation "Semantic grammar macros used in bovine grammars."] 9)
(defalias 'bovine--make-parser-1 #[(infile &optional outdir) "\203\n\306\307!!\3101%r\311	!q\210\n\203\312\313\314\")0\202/\315\316\317\f!\"\210)\313\313\211\211+,\211-\205\320\320\321-\"\205\320\322\323-\",\307,\324P\"\211+\325\326!./\327\216r.q\210\330+!\210eb\210\331\332!\210\333\224\331\334!\210
\333\225|\210
b\210\335\320\336	\"\203\216\322\323	\"\202\236\337,\340\230\203\232\341\202\234,\342Q\343\261\210eb\210e\344 |\210\345-\346\261\210\347 \210\331\350!\210\351-\313\211\211\323%)r.q\210\352\313\211/\313\333%\210,,\207" [outdir infile buffer-file-name default-directory err copyright-end file-name-directory expand-file-name (error) find-file-noselect semantic-grammar-create-package nil t message "%s" error-message-string string-match "^.*/\\(.*\\)-by\\.el\\'" match-string 1 "-by.el" generate-new-buffer " *temp file*" #[nil "\301!\205	\302!\207" [#1=#:temp-buffer buffer-name kill-buffer] 2] insert-file-contents re-search-forward "^;; Author:" 0 "^;;; Code:\n" ";; This file is part of GNU Emacs.\n\n;; GNU Emacs is free software: you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; GNU Emacs is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n;;\n;; This file was generated from " "\\(admin/grammars/.*\\.by\\)\\'" "admin/grammars/" "scm" "scheme" ".by" ".\n\n;;; Code:\n" line-end-position ";;; " " --- Generated parser support file" delete-trailing-whitespace ";;; \\(.*\\) ends here" replace-match write-region filename lang packagename #1# #2=#:temp-file] 8])
#@54 Generate Emacs's built-in Bovine-based parser files.
(defalias 'bovine-make-parsers #[nil "\303\304!\210\305\306\307#\306\211\205\n@\310	!\210\nA\211\204\306*\207" [default-directory f --dolist-tail-- semantic-mode 1 directory-files nil "\\.by\\'" bovine--make-parser-1] 5 (#$ . 17627) nil])
#@281 Generate a Bovine parser from input INFILE, writing to OUTDIR.
This is mainly intended for use in batch mode:

emacs -batch -l semantic/bovine/grammar -f bovine-make-parser-batch \
   [-dir output-dir | -o output-file] file.by

If -o is supplied, only the directory part is used.
(defalias 'bovine-batch-make-parser #[(&optional infile outdir) "\305\306!\210\203>	\204>\307\203=\211A\242\211\310\230\203'\211A\242\202\n\311\230\2038\312\211A\242!\202\n\202)	\204F\313\314!\210\315	!\204Q\313\316	\"\210\317	\f\"\207" [noninteractive infile arg command-line-args-left outdir semantic-mode 1 nil "-dir" "-o" file-name-directory error "No input file specified" file-readable-p "Input file `%s' not readable" bovine--make-parser-1] 4 (#$ . 17935)])
(provide 'semantic/bovine/grammar)

Zerion Mini Shell 1.0