annotate lisp/cedet/semantic/grammar-wy.el @ 112439:5610f272341f

* src/image.c: Add cast to fix type clash
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 22 Jan 2011 20:34:48 -0800
parents ef719132ddfa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
104524
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
1 ;;; semantic/grammar-wy.el --- Generated parser support file
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
2
112218
376148b31b5e Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents: 106815
diff changeset
3 ;; Copyright (C) 2002, 2003, 2004, 2009, 2010, 2011 Free Software Foundation, Inc.
104524
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
4
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
5 ;; Author: David Ponce <david@dponce.com>
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
6 ;; Keywords: syntax
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
7
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
9
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
10 ;; GNU Emacs is free software: you can redistribute it and/or modify
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
12 ;; the Free Software Foundation, either version 3 of the License, or
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
13 ;; (at your option) any later version.
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
14
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
18 ;; GNU General Public License for more details.
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
19
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
21 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
22
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
23 ;;; Commentary:
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
24 ;;
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
25 ;; This file is generated from the grammar file semantic-grammar.wy in
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
26 ;; the upstream CEDET repository.
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
27
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
28 ;;; Code:
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
29
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
30 (require 'semantic/lex)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
31 (defvar semantic-grammar-lex-c-char-re)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
32
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
33 ;; Current parsed nonterminal name.
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
34 (defvar semantic-grammar-wy--nterm nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
35 ;; Index of rule in a nonterminal clause.
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
36 (defvar semantic-grammar-wy--rindx nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
37
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
38 ;;; Declarations
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
39 ;;
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
40 (defconst semantic-grammar-wy--keyword-table
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
41 (semantic-lex-make-keyword-table
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
42 '(("%default-prec" . DEFAULT-PREC)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
43 ("%no-default-prec" . NO-DEFAULT-PREC)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
44 ("%keyword" . KEYWORD)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
45 ("%languagemode" . LANGUAGEMODE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
46 ("%left" . LEFT)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
47 ("%nonassoc" . NONASSOC)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
48 ("%package" . PACKAGE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
49 ("%prec" . PREC)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
50 ("%put" . PUT)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
51 ("%quotemode" . QUOTEMODE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
52 ("%right" . RIGHT)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
53 ("%scopestart" . SCOPESTART)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
54 ("%start" . START)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
55 ("%token" . TOKEN)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
56 ("%type" . TYPE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
57 ("%use-macros" . USE-MACROS))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
58 'nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
59 "Table of language keywords.")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
60
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
61 (defconst semantic-grammar-wy--token-table
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
62 (semantic-lex-make-type-table
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
63 '(("punctuation"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
64 (GT . ">")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
65 (LT . "<")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
66 (OR . "|")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
67 (SEMI . ";")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
68 (COLON . ":"))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
69 ("close-paren"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
70 (RBRACE . "}")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
71 (RPAREN . ")"))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
72 ("open-paren"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
73 (LBRACE . "{")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
74 (LPAREN . "("))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
75 ("block"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
76 (BRACE_BLOCK . "(LBRACE RBRACE)")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
77 (PAREN_BLOCK . "(LPAREN RPAREN)"))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
78 ("code"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
79 (EPILOGUE . "%%...EOF")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
80 (PROLOGUE . "%{...%}"))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
81 ("sexp"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
82 (SEXP))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
83 ("qlist"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
84 (PREFIXED_LIST))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
85 ("char"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
86 (CHARACTER))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
87 ("symbol"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
88 (PERCENT_PERCENT . "\\`%%\\'")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
89 (SYMBOL))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
90 ("string"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
91 (STRING)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
92 '(("punctuation" :declared t)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
93 ("block" :declared t)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
94 ("sexp" matchdatatype sexp)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
95 ("sexp" syntax "\\=")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
96 ("sexp" :declared t)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
97 ("qlist" matchdatatype sexp)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
98 ("qlist" syntax "\\s'\\s-*(")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
99 ("qlist" :declared t)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
100 ("char" syntax semantic-grammar-lex-c-char-re)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
101 ("char" :declared t)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
102 ("symbol" syntax ":?\\(\\sw\\|\\s_\\)+")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
103 ("symbol" :declared t)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
104 ("string" :declared t)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
105 ("keyword" :declared t)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
106 "Table of lexical tokens.")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
107
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
108 (defconst semantic-grammar-wy--parse-table
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
109 (progn
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
110 (eval-when-compile
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
111 (require 'semantic/wisent/comp))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
112 (wisent-compile-grammar
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
113 '((DEFAULT-PREC NO-DEFAULT-PREC KEYWORD LANGUAGEMODE LEFT NONASSOC PACKAGE PREC PUT QUOTEMODE RIGHT SCOPESTART START TOKEN TYPE USE-MACROS STRING SYMBOL PERCENT_PERCENT CHARACTER PREFIXED_LIST SEXP PROLOGUE EPILOGUE PAREN_BLOCK BRACE_BLOCK LPAREN RPAREN LBRACE RBRACE COLON SEMI OR LT GT)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
114 nil
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
115 (grammar
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
116 ((prologue))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
117 ((epilogue))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
118 ((declaration))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
119 ((nonterminal))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
120 ((PERCENT_PERCENT)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
121 (prologue
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
122 ((PROLOGUE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
123 (wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
124 (semantic-tag-new-code "prologue" nil))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
125 (epilogue
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
126 ((EPILOGUE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
127 (wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
128 (semantic-tag-new-code "epilogue" nil))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
129 (declaration
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
130 ((decl)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
131 (eval $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
132 (decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
133 ((default_prec_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
134 ((no_default_prec_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
135 ((languagemode_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
136 ((package_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
137 ((precedence_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
138 ((put_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
139 ((quotemode_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
140 ((scopestart_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
141 ((start_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
142 ((keyword_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
143 ((token_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
144 ((type_decl))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
145 ((use_macros_decl)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
146 (default_prec_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
147 ((DEFAULT-PREC)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
148 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
149 (semantic-tag "default-prec" 'assoc :value
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
150 '("t")))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
151 (no_default_prec_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
152 ((NO-DEFAULT-PREC)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
153 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
154 (semantic-tag "default-prec" 'assoc :value
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
155 '("nil")))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
156 (languagemode_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
157 ((LANGUAGEMODE symbols)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
158 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
159 (semantic-tag ',(car $2)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
160 'languagemode :rest ',(cdr $2)))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
161 (package_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
162 ((PACKAGE SYMBOL)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
163 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
164 (semantic-tag-new-package ',$2 nil))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
165 (precedence_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
166 ((associativity token_type_opt items)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
167 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
168 (semantic-tag ',$1 'assoc :type ',$2 :value ',$3))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
169 (associativity
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
170 ((LEFT)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
171 (progn "left"))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
172 ((RIGHT)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
173 (progn "right"))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
174 ((NONASSOC)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
175 (progn "nonassoc")))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
176 (put_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
177 ((PUT put_name put_value)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
178 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
179 (semantic-tag ',$2 'put :value ',(list $3))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
180 ((PUT put_name put_value_list)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
181 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
182 (semantic-tag ',$2 'put :value ',$3)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
183 ((PUT put_name_list put_value)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
184 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
185 (semantic-tag ',(car $2)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
186 'put :rest ',(cdr $2)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
187 :value ',(list $3))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
188 ((PUT put_name_list put_value_list)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
189 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
190 (semantic-tag ',(car $2)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
191 'put :rest ',(cdr $2)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
192 :value ',$3))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
193 (put_name_list
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
194 ((BRACE_BLOCK)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
195 (mapcar 'semantic-tag-name
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
196 (semantic-parse-region
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
197 (car $region1)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
198 (cdr $region1)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
199 'put_names 1))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
200 (put_names
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
201 ((LBRACE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
202 nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
203 ((RBRACE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
204 nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
205 ((put_name)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
206 (wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
207 (semantic-tag $1 'put-name))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
208 (put_name
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
209 ((SYMBOL))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
210 ((token_type)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
211 (put_value_list
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
212 ((BRACE_BLOCK)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
213 (mapcar 'semantic-tag-code-detail
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
214 (semantic-parse-region
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
215 (car $region1)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
216 (cdr $region1)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
217 'put_values 1))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
218 (put_values
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
219 ((LBRACE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
220 nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
221 ((RBRACE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
222 nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
223 ((put_value)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
224 (wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
225 (semantic-tag-new-code "put-value" $1))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
226 (put_value
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
227 ((SYMBOL any_value)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
228 (cons $1 $2)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
229 (scopestart_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
230 ((SCOPESTART SYMBOL)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
231 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
232 (semantic-tag ',$2 'scopestart))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
233 (quotemode_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
234 ((QUOTEMODE SYMBOL)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
235 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
236 (semantic-tag ',$2 'quotemode))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
237 (start_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
238 ((START symbols)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
239 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
240 (semantic-tag ',(car $2)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
241 'start :rest ',(cdr $2)))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
242 (keyword_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
243 ((KEYWORD SYMBOL string_value)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
244 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
245 (semantic-tag ',$2 'keyword :value ',$3))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
246 (token_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
247 ((TOKEN token_type_opt SYMBOL string_value)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
248 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
249 (semantic-tag ',$3 ',(if $2 'token 'keyword)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
250 :type ',$2 :value ',$4)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
251 ((TOKEN token_type_opt symbols)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
252 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
253 (semantic-tag ',(car $3)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
254 'token :type ',$2 :rest ',(cdr $3)))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
255 (token_type_opt
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
256 (nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
257 ((token_type)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
258 (token_type
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
259 ((LT SYMBOL GT)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
260 (progn $2)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
261 (type_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
262 ((TYPE token_type plist_opt)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
263 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
264 (semantic-tag ',$2 'type :value ',$3))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
265 (plist_opt
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
266 (nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
267 ((plist)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
268 (plist
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
269 ((plist put_value)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
270 (append
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
271 (list $2)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
272 $1))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
273 ((put_value)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
274 (list $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
275 (use_name_list
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
276 ((BRACE_BLOCK)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
277 (mapcar 'semantic-tag-name
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
278 (semantic-parse-region
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
279 (car $region1)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
280 (cdr $region1)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
281 'use_names 1))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
282 (use_names
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
283 ((LBRACE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
284 nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
285 ((RBRACE)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
286 nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
287 ((SYMBOL)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
288 (wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
289 (semantic-tag $1 'use-name))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
290 (use_macros_decl
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
291 ((USE-MACROS SYMBOL use_name_list)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
292 `(wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
293 (semantic-tag "macro" 'macro :type ',$2 :value ',$3))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
294 (string_value
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
295 ((STRING)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
296 (read $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
297 (any_value
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
298 ((SYMBOL))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
299 ((STRING))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
300 ((PAREN_BLOCK))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
301 ((PREFIXED_LIST))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
302 ((SEXP)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
303 (symbols
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
304 ((lifo_symbols)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
305 (nreverse $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
306 (lifo_symbols
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
307 ((lifo_symbols SYMBOL)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
308 (cons $2 $1))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
309 ((SYMBOL)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
310 (list $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
311 (nonterminal
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
312 ((SYMBOL
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
313 (setq semantic-grammar-wy--nterm $1 semantic-grammar-wy--rindx 0)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
314 COLON rules SEMI)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
315 (wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
316 (semantic-tag $1 'nonterminal :children $4))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
317 (rules
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
318 ((lifo_rules)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
319 (apply 'nconc
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
320 (nreverse $1))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
321 (lifo_rules
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
322 ((lifo_rules OR rule)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
323 (cons $3 $1))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
324 ((rule)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
325 (list $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
326 (rule
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
327 ((rhs)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
328 (let*
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
329 ((nterm semantic-grammar-wy--nterm)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
330 (rindx semantic-grammar-wy--rindx)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
331 (rhs $1)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
332 comps prec action elt)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
333 (setq semantic-grammar-wy--rindx
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
334 (1+ semantic-grammar-wy--rindx))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
335 (while rhs
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
336 (setq elt
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
337 (car rhs)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
338 rhs
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
339 (cdr rhs))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
340 (cond
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
341 ((vectorp elt)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
342 (if prec
105340
118ad0cdd9a8 Doc/message fixes.
Glenn Morris <rgm@gnu.org>
parents: 105285
diff changeset
343 (error "Duplicate %%prec in `%s:%d' rule" nterm rindx))
104524
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
344 (setq prec
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
345 (aref elt 0)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
346 ((consp elt)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
347 (if
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
348 (or action comps)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
349 (setq comps
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
350 (cons elt comps)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
351 semantic-grammar-wy--rindx
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
352 (1+ semantic-grammar-wy--rindx))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
353 (setq action
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
354 (car elt))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
355 (t
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
356 (setq comps
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
357 (cons elt comps)))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
358 (wisent-cook-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
359 (wisent-raw-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
360 (semantic-tag
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
361 (format "%s:%d" nterm rindx)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
362 'rule :type
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
363 (if comps "group" "empty")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
364 :value comps :prec prec :expr action))))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
365 (rhs
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
366 (nil)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
367 ((rhs item)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
368 (cons $2 $1))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
369 ((rhs action)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
370 (cons
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
371 (list $2)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
372 $1))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
373 ((rhs PREC item)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
374 (cons
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
375 (vector $3)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
376 $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
377 (action
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
378 ((PAREN_BLOCK))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
379 ((PREFIXED_LIST))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
380 ((BRACE_BLOCK)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
381 (format "(progn\n%s)"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
382 (let
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
383 ((s $1))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
384 (if
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
385 (string-match "^{[ \n ]*" s)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
386 (setq s
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
387 (substring s
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
388 (match-end 0))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
389 (if
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
390 (string-match "[ \n ]*}$" s)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
391 (setq s
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
392 (substring s 0
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
393 (match-beginning 0))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
394 s))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
395 (items
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
396 ((lifo_items)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
397 (nreverse $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
398 (lifo_items
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
399 ((lifo_items item)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
400 (cons $2 $1))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
401 ((item)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
402 (list $1)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
403 (item
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
404 ((SYMBOL))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
405 ((CHARACTER))))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
406 '(grammar prologue epilogue declaration nonterminal rule put_names put_values use_names)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
407 "Parser table.")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
408
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
409 (defun semantic-grammar-wy--install-parser ()
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
410 "Setup the Semantic Parser."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
411 (semantic-install-function-overrides
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
412 '((parse-stream . wisent-parse-stream)))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
413 (setq semantic-parser-name "LALR"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
414 semantic--parse-table semantic-grammar-wy--parse-table
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
415 semantic-debug-parser-source "semantic-grammar.wy"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
416 semantic-flex-keywords-obarray semantic-grammar-wy--keyword-table
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
417 semantic-lex-types-obarray semantic-grammar-wy--token-table)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
418 ;; Collect unmatched syntax lexical tokens
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
419 (semantic-make-local-hook 'wisent-discarding-token-functions)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
420 (add-hook 'wisent-discarding-token-functions
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
421 'wisent-collect-unmatched-syntax nil t))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
422
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
423
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
424 ;;; Analyzers
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
425
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
426 (define-lex-sexp-type-analyzer semantic-grammar-wy--<sexp>-sexp-analyzer
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
427 "sexp analyzer for <sexp> tokens."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
428 "\\="
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
429 'SEXP)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
430
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
431 (define-lex-sexp-type-analyzer semantic-grammar-wy--<qlist>-sexp-analyzer
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
432 "sexp analyzer for <qlist> tokens."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
433 "\\s'\\s-*("
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
434 'PREFIXED_LIST)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
435
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
436 (define-lex-keyword-type-analyzer semantic-grammar-wy--<keyword>-keyword-analyzer
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
437 "keyword analyzer for <keyword> tokens."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
438 "\\(\\sw\\|\\s_\\)+")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
439
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
440 (define-lex-block-type-analyzer semantic-grammar-wy--<block>-block-analyzer
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
441 "block analyzer for <block> tokens."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
442 "\\s(\\|\\s)"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
443 '((("(" LPAREN PAREN_BLOCK)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
444 ("{" LBRACE BRACE_BLOCK))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
445 (")" RPAREN)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
446 ("}" RBRACE))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
447 )
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
448
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
449 (define-lex-regex-type-analyzer semantic-grammar-wy--<char>-regexp-analyzer
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
450 "regexp analyzer for <char> tokens."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
451 semantic-grammar-lex-c-char-re
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
452 nil
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
453 'CHARACTER)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
454
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
455 (define-lex-sexp-type-analyzer semantic-grammar-wy--<string>-sexp-analyzer
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
456 "sexp analyzer for <string> tokens."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
457 "\\s\""
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
458 'STRING)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
459
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
460 (define-lex-regex-type-analyzer semantic-grammar-wy--<symbol>-regexp-analyzer
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
461 "regexp analyzer for <symbol> tokens."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
462 ":?\\(\\sw\\|\\s_\\)+"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
463 '((PERCENT_PERCENT . "\\`%%\\'"))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
464 'SYMBOL)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
465
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
466 (define-lex-string-type-analyzer semantic-grammar-wy--<punctuation>-string-analyzer
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
467 "string analyzer for <punctuation> tokens."
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
468 "\\(\\s.\\|\\s$\\|\\s'\\)+"
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
469 '((GT . ">")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
470 (LT . "<")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
471 (OR . "|")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
472 (SEMI . ";")
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
473 (COLON . ":"))
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
474 'punctuation)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
475
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
476 (provide 'semantic/grammar-wy)
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
477
fbd55cc47b77 * cedet/ede/system.el (ede-upload-html-documentation)
Chong Yidong <cyd@stupidchicken.com>
parents:
diff changeset
478 ;;; semantic/grammar-wy.el ends here