]> code.delx.au - gnu-emacs/blob - lisp/cedet/semantic/wisent/js-wy.el
a974a28bcd909d092e3f5e1f35e987ccbd707dfa
[gnu-emacs] / lisp / cedet / semantic / wisent / js-wy.el
1 ;;; semantic/wisent/js-wy.el --- Generated parser support file
2
3 ;; Copyright (C) 2005, 2009, 2010, 2011 Free Software Foundation, Inc.
4
5 ;; This file is part of GNU Emacs.
6
7 ;; GNU Emacs is free software: you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation, either version 3 of the License, or
10 ;; (at your option) any later version.
11
12 ;; GNU Emacs is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;; GNU General Public License for more details.
16
17 ;; You should have received a copy of the GNU General Public License
18 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
20 ;;; Commentary:
21 ;;
22 ;; This file was generated from etc/grammars/js.wy.
23 ;;
24 ;; It is derived from the grammar in the ECMAScript Language
25 ;; Specification published at
26 ;;
27 ;; http://www.ecma-international.org/publications/standards/Ecma-262.htm
28 ;;
29 ;; and redistributed under the following license:
30 ;;
31 ;; Redistribution and use in source and binary forms, with or without
32 ;; modification, are permitted provided that the following conditions
33 ;; are met:
34 ;;
35 ;; 1. Redistributions of source code must retain the above copyright
36 ;; notice, this list of conditions and the following disclaimer.
37 ;;
38 ;; 2. Redistributions in binary form must reproduce the above
39 ;; copyright notice, this list of conditions and the following
40 ;; disclaimer in the documentation and/or other materials provided
41 ;; with the distribution.
42 ;;
43 ;; 3. Neither the name of the authors nor Ecma International may be
44 ;; used to endorse or promote products derived from this software
45 ;; without specific prior written permission. THIS SOFTWARE IS
46 ;; PROVIDED BY THE ECMA INTERNATIONAL "AS IS" AND ANY EXPRESS OR
47 ;; IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
48 ;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
49 ;; ARE DISCLAIMED. IN NO EVENT SHALL ECMA INTERNATIONAL BE LIABLE FOR
50 ;; ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
51 ;; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
52 ;; OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
53 ;; BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
54 ;; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
55 ;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
56 ;; USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
57 ;; DAMAGE.
58
59 ;;; Code:
60 (require 'semantic/lex)
61 \f
62 ;;; Prologue
63 ;;
64 \f
65 ;;; Declarations
66 ;;
67 (defconst wisent-javascript-jv-wy--keyword-table
68 (semantic-lex-make-keyword-table
69 '(("if" . IF)
70 ("break" . BREAK)
71 ("continue" . CONTINUE)
72 ("else" . ELSE)
73 ("for" . FOR)
74 ("function" . FUNCTION)
75 ("this" . THIS)
76 ("return" . RETURN)
77 ("while" . WHILE)
78 ("void" . VOID_SYMBOL)
79 ("new" . NEW)
80 ("delete" . DELETE)
81 ("var" . VAR)
82 ("with" . WITH)
83 ("typeof" . TYPEOF)
84 ("in" . IN))
85 '(("in" summary "in something")
86 ("typeof" summary "typeof ")
87 ("with" summary "with ")
88 ("var" summary "var <variablename> [= value];")
89 ("delete" summary "delete(<objectreference>) - Deletes the object.")
90 ("new" summary "new <objecttype> - Creates a new object.")
91 ("void" summary "Method return type: void <name> ...")
92 ("while" summary "while (<expr>) <stmt> | do <stmt> while (<expr>);")
93 ("return" summary "return [<expr>] ;")
94 ("this" summary "this")
95 ("function" summary "function declaration blah blah")
96 ("for" summary "for ([<init-expr>]; [<expr>]; [<update-expr>]) <stmt>")
97 ("else" summary "if (<expr>) <stmt> else <stmt>")
98 ("continue" summary "continue [<label>] ;")
99 ("break" summary "break [<label>] ;")
100 ("if" summary "if (<expr>) <stmt> [else <stmt>] (jv)")))
101 "Table of language keywords.")
102
103 (defconst wisent-javascript-jv-wy--token-table
104 (semantic-lex-make-type-table
105 '(("<no-type>"
106 (NULL_TOKEN)
107 (QUERY)
108 (TRUE)
109 (FALSE))
110 ("number"
111 (NUMBER))
112 ("string"
113 (STRING))
114 ("symbol"
115 (VARIABLE))
116 ("close-paren"
117 (CLOSE_SQ_BRACKETS . "]")
118 (END_BLOCK . "}")
119 (CLOSE_PARENTHESIS . ")"))
120 ("open-paren"
121 (OPEN_SQ_BRACKETS . "[")
122 (START_BLOCK . "{")
123 (OPEN_PARENTHESIS . "("))
124 ("block"
125 (BRACK_BLOCK . "(OPEN_SQ_BRACKETS CLOSE_SQ_BRACKETS)")
126 (BRACE_BLOCK . "(START_BLOCK END_BLOCK)")
127 (PAREN_BLOCK . "(OPEN_PARENTHESIS CLOSE_PARENTHESIS)"))
128 ("punctuation"
129 (ONES_COMPLIMENT . "~")
130 (SEMICOLON . ";")
131 (LINE_TERMINATOR . "\n")
132 (LESS_THAN . "<")
133 (DOT . ".")
134 (COMMA . ",")
135 (COLON . ":")
136 (DIV . "/")
137 (DECREMENT . "--")
138 (INCREMENT . "++")
139 (PLUS_EQUALS . "+=")
140 (PLUS . "+")
141 (MULTIPLY_EQUALS . "*=")
142 (MULTIPLY . "*")
143 (MOD_EQUALS . "%=")
144 (MOD . "%")
145 (MINUS_EQUALS . "-=")
146 (MINUS . "-")
147 (LS_EQUAL . "<=")
148 (LOGICAL_NOT . "!!")
149 (LOGICAL_OR . "||")
150 (LOGICAL_AND . "&&")
151 (GT_EQUAL . ">=")
152 (GREATER_THAN . ">")
153 (EQUALS . "==")
154 (DIV_EQUALS . "/=")
155 (NOT_EQUAL . "!=")
156 (BITWISE_SHIFT_RIGHT_ZERO_FILL_EQUALS . ">>>=")
157 (BITWISE_SHIFT_RIGHT_ZERO_FILL . ">>>")
158 (BITWISE_SHIFT_RIGHT_EQUALS . ">>=")
159 (BITWISE_SHIFT_RIGHT . ">>")
160 (BITWISE_SHIFT_LEFT_EQUALS . "<<=")
161 (BITWISE_SHIFT_LEFT . "<<")
162 (BITWISE_OR_EQUALS . "|=")
163 (BITWISE_OR . "|")
164 (BITWISE_EXCLUSIVE_OR_EQUALS . "^=")
165 (BITWISE_EXCLUSIVE_OR . "^")
166 (BITWISE_AND_EQUALS . "&=")
167 (BITWISE_AND . "&")
168 (ASSIGN_SYMBOL . "=")))
169 '(("number" :declared t)
170 ("string" :declared t)
171 ("symbol" :declared t)
172 ("keyword" :declared t)
173 ("block" :declared t)
174 ("punctuation" :declared t)))
175 "Table of lexical tokens.")
176
177 (defconst wisent-javascript-jv-wy--parse-table
178 (progn
179 (eval-when-compile
180 (require 'semantic/wisent/comp))
181 (wisent-compile-grammar
182 '((ASSIGN_SYMBOL BITWISE_AND BITWISE_AND_EQUALS BITWISE_EXCLUSIVE_OR BITWISE_EXCLUSIVE_OR_EQUALS BITWISE_OR BITWISE_OR_EQUALS BITWISE_SHIFT_LEFT BITWISE_SHIFT_LEFT_EQUALS BITWISE_SHIFT_RIGHT BITWISE_SHIFT_RIGHT_EQUALS BITWISE_SHIFT_RIGHT_ZERO_FILL BITWISE_SHIFT_RIGHT_ZERO_FILL_EQUALS NOT_EQUAL DIV_EQUALS EQUALS GREATER_THAN GT_EQUAL LOGICAL_AND LOGICAL_OR LOGICAL_NOT LS_EQUAL MINUS MINUS_EQUALS MOD MOD_EQUALS MULTIPLY MULTIPLY_EQUALS PLUS PLUS_EQUALS INCREMENT DECREMENT DIV COLON COMMA DOT LESS_THAN LINE_TERMINATOR SEMICOLON ONES_COMPLIMENT PAREN_BLOCK BRACE_BLOCK BRACK_BLOCK OPEN_PARENTHESIS CLOSE_PARENTHESIS START_BLOCK END_BLOCK OPEN_SQ_BRACKETS CLOSE_SQ_BRACKETS IF BREAK CONTINUE ELSE FOR FUNCTION THIS RETURN WHILE VOID_SYMBOL NEW DELETE VAR WITH TYPEOF IN VARIABLE STRING NUMBER FALSE TRUE QUERY NULL_TOKEN)
183 ((left PLUS MINUS)
184 (left MULTIPLY DIV MOD)
185 (nonassoc FALSE)
186 (nonassoc HIGHER_THAN_FALSE)
187 (nonassoc ELSE)
188 (nonassoc LOWER_THAN_CLOSE_PARENTHESIS)
189 (nonassoc CLOSE_PARENTHESIS))
190 (Program
191 ((SourceElement)))
192 (SourceElement
193 ((Statement))
194 ((FunctionDeclaration)))
195 (Statement
196 ((Block))
197 ((VariableStatement))
198 ((EmptyStatement))
199 ((ExpressionStatement))
200 ((IfStatement))
201 ((IterationExpression))
202 ((ContinueStatement))
203 ((BreakStatement))
204 ((ReturnStatement))
205 ((WithStatement)))
206 (FunctionDeclaration
207 ((FUNCTION VARIABLE FormalParameterListBlock Block)
208 (wisent-raw-tag
209 (semantic-tag-new-function $2 nil $3))))
210 (FormalParameterListBlock
211 ((PAREN_BLOCK)
212 (semantic-parse-region
213 (car $region1)
214 (cdr $region1)
215 'FormalParameterList 1)))
216 (FormalParameterList
217 ((OPEN_PARENTHESIS)
218 nil)
219 ((VARIABLE)
220 (wisent-raw-tag
221 (semantic-tag-new-variable $1 nil nil)))
222 ((CLOSE_PARENTHESIS)
223 nil)
224 ((COMMA)
225 nil))
226 (StatementList
227 ((Statement))
228 ((StatementList Statement)))
229 (Block
230 ((BRACE_BLOCK)))
231 (BlockExpand
232 ((START_BLOCK StatementList END_BLOCK))
233 ((START_BLOCK END_BLOCK)))
234 (VariableStatement
235 ((VAR VariableDeclarationList SEMICOLON)
236 (wisent-raw-tag
237 (semantic-tag-new-variable $2 nil nil))))
238 (VariableDeclarationList
239 ((VariableDeclaration)
240 (list $1))
241 ((VariableDeclarationList COMMA VariableDeclaration)
242 (append $1
243 (list $3))))
244 (VariableDeclaration
245 ((VARIABLE)
246 (append
247 (list $1 nil)
248 $region))
249 ((VARIABLE Initializer)
250 (append
251 (cons $1 $2)
252 $region)))
253 (Initializer
254 ((ASSIGN_SYMBOL AssignmentExpression)
255 (list $2)))
256 (EmptyStatement
257 ((SEMICOLON)))
258 (ExpressionStatement
259 ((Expression SEMICOLON)))
260 (IfStatement
261 ((IF OPEN_PARENTHESIS Expression CLOSE_PARENTHESIS Statement)
262 [HIGHER_THAN_FALSE])
263 ((IF OPEN_PARENTHESIS Expression CLOSE_PARENTHESIS Statement ELSE Statement))
264 ((IF OPEN_PARENTHESIS FALSE CLOSE_PARENTHESIS Statement))
265 ((IF OPEN_PARENTHESIS LeftHandSideExpression AssignmentOperator AssignmentExpression CLOSE_PARENTHESIS Statement)))
266 (IterationExpression
267 ((WHILE OPEN_PARENTHESIS Expression CLOSE_PARENTHESIS Statement)
268 [HIGHER_THAN_FALSE])
269 ((WHILE OPEN_PARENTHESIS FALSE CLOSE_PARENTHESIS Statement))
270 ((WHILE OPEN_PARENTHESIS LeftHandSideExpression AssignmentOperator AssignmentExpression CLOSE_PARENTHESIS Statement))
271 ((FOR OPEN_PARENTHESIS OptionalExpression SEMICOLON OptionalExpression SEMICOLON OptionalExpression CLOSE_PARENTHESIS Statement))
272 ((FOR OPEN_PARENTHESIS VAR VariableDeclarationList SEMICOLON OptionalExpression SEMICOLON OptionalExpression CLOSE_PARENTHESIS Statement))
273 ((FOR OPEN_PARENTHESIS LeftHandSideExpression IN Expression CLOSE_PARENTHESIS Statement))
274 ((FOR OPEN_PARENTHESIS VAR VARIABLE OptionalInitializer IN Expression CLOSE_PARENTHESIS Statement)))
275 (ContinueStatement
276 ((CONTINUE SEMICOLON)))
277 (BreakStatement
278 ((BREAK SEMICOLON)))
279 (ReturnStatement
280 ((RETURN Expression SEMICOLON))
281 ((RETURN SEMICOLON)))
282 (WithStatement
283 ((WITH OPEN_PARENTHESIS Expression CLOSE_PARENTHESIS Statement)))
284 (OptionalInitializer
285 ((Initializer))
286 (nil))
287 (PrimaryExpression
288 ((THIS))
289 ((VARIABLE))
290 ((NUMBER))
291 ((STRING))
292 ((NULL_TOKEN))
293 ((TRUE))
294 ((FALSE))
295 ((OPEN_PARENTHESIS Expression CLOSE_PARENTHESIS)))
296 (MemberExpression
297 ((PrimaryExpression))
298 ((MemberExpression OPEN_SQ_BRACKETS Expression CLOSE_SQ_BRACKETS))
299 ((MemberExpression DOT VARIABLE))
300 ((NEW MemberExpression Arguments)))
301 (NewExpression
302 ((MemberExpression))
303 ((NEW NewExpression)))
304 (CallExpression
305 ((MemberExpression Arguments))
306 ((CallExpression Arguments))
307 ((CallExpression OPEN_SQ_BRACKETS Expression CLOSE_SQ_BRACKETS))
308 ((CallExpression DOT VARIABLE)))
309 (Arguments
310 ((OPEN_PARENTHESIS CLOSE_PARENTHESIS))
311 ((OPEN_PARENTHESIS ArgumentList CLOSE_PARENTHESIS)))
312 (ArgumentList
313 ((AssignmentExpression))
314 ((ArgumentList COMMA AssignmentExpression)))
315 (LeftHandSideExpression
316 ((NewExpression))
317 ((CallExpression)))
318 (PostfixExpression
319 ((LeftHandSideExpression))
320 ((LeftHandSideExpression INCREMENT))
321 ((LeftHandSideExpression DECREMENT)))
322 (UnaryExpression
323 ((PostfixExpression))
324 ((DELETE UnaryExpression))
325 ((VOID_SYMBOL UnaryExpression))
326 ((TYPEOF UnaryExpression))
327 ((INCREMENT UnaryExpression))
328 ((DECREMENT UnaryExpression))
329 ((PLUS UnaryExpression))
330 ((MINUS UnaryExpression))
331 ((ONES_COMPLIMENT UnaryExpression))
332 ((LOGICAL_NOT UnaryExpression)))
333 (MultiplicativeExpression
334 ((UnaryExpression))
335 ((MultiplicativeExpression MULTIPLY UnaryExpression))
336 ((MultiplicativeExpression DIV UnaryExpression))
337 ((MultiplicativeExpression MOD UnaryExpression)))
338 (AdditiveExpression
339 ((MultiplicativeExpression))
340 ((AdditiveExpression PLUS MultiplicativeExpression))
341 ((AdditiveExpression MINUS MultiplicativeExpression)))
342 (ShiftExpression
343 ((AdditiveExpression))
344 ((ShiftExpression BITWISE_SHIFT_LEFT AdditiveExpression))
345 ((ShiftExpression BITWISE_SHIFT_RIGHT AdditiveExpression))
346 ((ShiftExpression BITWISE_SHIFT_RIGHT_ZERO_FILL AdditiveExpression)))
347 (RelationalExpression
348 ((ShiftExpression))
349 ((RelationalExpression LESS_THAN ShiftExpression))
350 ((RelationalExpression GREATER_THAN ShiftExpression))
351 ((RelationalExpression LS_EQUAL ShiftExpression))
352 ((RelationalExpression GT_EQUAL ShiftExpression)))
353 (EqualityExpression
354 ((RelationalExpression))
355 ((EqualityExpression EQUALS RelationalExpression))
356 ((EqualityExpression NOT_EQUAL RelationalExpression)))
357 (BitwiseANDExpression
358 ((EqualityExpression))
359 ((BitwiseANDExpression BITWISE_AND EqualityExpression)))
360 (BitwiseXORExpression
361 ((BitwiseANDExpression))
362 ((BitwiseXORExpression BITWISE_EXCLUSIVE_OR BitwiseANDExpression)))
363 (BitwiseORExpression
364 ((BitwiseXORExpression))
365 ((BitwiseORExpression BITWISE_OR BitwiseXORExpression)))
366 (LogicalANDExpression
367 ((BitwiseORExpression))
368 ((LogicalANDExpression LOGICAL_AND BitwiseORExpression)))
369 (LogicalORExpression
370 ((LogicalANDExpression))
371 ((LogicalORExpression LOGICAL_OR LogicalANDExpression)))
372 (ConditionalExpression
373 ((LogicalORExpression))
374 ((LogicalORExpression QUERY AssignmentExpression COLON AssignmentExpression)))
375 (AssignmentExpression
376 ((ConditionalExpression))
377 ((LeftHandSideExpression AssignmentOperator AssignmentExpression)
378 [LOWER_THAN_CLOSE_PARENTHESIS]))
379 (AssignmentOperator
380 ((ASSIGN_SYMBOL))
381 ((MULTIPLY_EQUALS))
382 ((DIV_EQUALS))
383 ((MOD_EQUALS))
384 ((PLUS_EQUALS))
385 ((MINUS_EQUALS))
386 ((BITWISE_SHIFT_LEFT_EQUALS))
387 ((BITWISE_SHIFT_RIGHT_EQUALS))
388 ((BITWISE_SHIFT_RIGHT_ZERO_FILL_EQUALS))
389 ((BITWISE_AND_EQUALS))
390 ((BITWISE_EXCLUSIVE_OR_EQUALS))
391 ((BITWISE_OR_EQUALS)))
392 (Expression
393 ((AssignmentExpression))
394 ((Expression COMMA AssignmentExpression)))
395 (OptionalExpression
396 ((Expression))
397 (nil)))
398 '(Program FormalParameterList)))
399 "Parser table.")
400
401 (defun wisent-javascript-jv-wy--install-parser ()
402 "Setup the Semantic Parser."
403 (semantic-install-function-overrides
404 '((parse-stream . wisent-parse-stream)))
405 (setq semantic-parser-name "LALR"
406 semantic--parse-table wisent-javascript-jv-wy--parse-table
407 semantic-debug-parser-source "wisent-javascript-jv.wy"
408 semantic-flex-keywords-obarray wisent-javascript-jv-wy--keyword-table
409 semantic-lex-types-obarray wisent-javascript-jv-wy--token-table)
410 ;; Collect unmatched syntax lexical tokens
411 (semantic-make-local-hook 'wisent-discarding-token-functions)
412 (add-hook 'wisent-discarding-token-functions
413 'wisent-collect-unmatched-syntax nil t))
414
415 \f
416 ;;; Analyzers
417 ;;
418 (define-lex-keyword-type-analyzer wisent-javascript-jv-wy--<keyword>-keyword-analyzer
419 "keyword analyzer for <keyword> tokens."
420 "\\(\\sw\\|\\s_\\)+")
421
422 (define-lex-block-type-analyzer wisent-javascript-jv-wy--<block>-block-analyzer
423 "block analyzer for <block> tokens."
424 "\\s(\\|\\s)"
425 '((("(" OPEN_PARENTHESIS PAREN_BLOCK)
426 ("{" START_BLOCK BRACE_BLOCK)
427 ("[" OPEN_SQ_BRACKETS BRACK_BLOCK))
428 (")" CLOSE_PARENTHESIS)
429 ("}" END_BLOCK)
430 ("]" CLOSE_SQ_BRACKETS))
431 )
432
433 (define-lex-regex-type-analyzer wisent-javascript-jv-wy--<symbol>-regexp-analyzer
434 "regexp analyzer for <symbol> tokens."
435 "\\(\\sw\\|\\s_\\)+"
436 nil
437 'VARIABLE)
438
439 (define-lex-sexp-type-analyzer wisent-javascript-jv-wy--<string>-sexp-analyzer
440 "sexp analyzer for <string> tokens."
441 "\\s\""
442 'STRING)
443
444 (define-lex-regex-type-analyzer wisent-javascript-jv-wy--<number>-regexp-analyzer
445 "regexp analyzer for <number> tokens."
446 semantic-lex-number-expression
447 nil
448 'NUMBER)
449
450 (define-lex-string-type-analyzer wisent-javascript-jv-wy--<punctuation>-string-analyzer
451 "string analyzer for <punctuation> tokens."
452 "\\(\\s.\\|\\s$\\|\\s'\\)+"
453 '((ONES_COMPLIMENT . "~")
454 (SEMICOLON . ";")
455 (LINE_TERMINATOR . "\n")
456 (LESS_THAN . "<")
457 (DOT . ".")
458 (COMMA . ",")
459 (COLON . ":")
460 (DIV . "/")
461 (DECREMENT . "--")
462 (INCREMENT . "++")
463 (PLUS_EQUALS . "+=")
464 (PLUS . "+")
465 (MULTIPLY_EQUALS . "*=")
466 (MULTIPLY . "*")
467 (MOD_EQUALS . "%=")
468 (MOD . "%")
469 (MINUS_EQUALS . "-=")
470 (MINUS . "-")
471 (LS_EQUAL . "<=")
472 (LOGICAL_NOT . "!!")
473 (LOGICAL_OR . "||")
474 (LOGICAL_AND . "&&")
475 (GT_EQUAL . ">=")
476 (GREATER_THAN . ">")
477 (EQUALS . "==")
478 (DIV_EQUALS . "/=")
479 (NOT_EQUAL . "!=")
480 (BITWISE_SHIFT_RIGHT_ZERO_FILL_EQUALS . ">>>=")
481 (BITWISE_SHIFT_RIGHT_ZERO_FILL . ">>>")
482 (BITWISE_SHIFT_RIGHT_EQUALS . ">>=")
483 (BITWISE_SHIFT_RIGHT . ">>")
484 (BITWISE_SHIFT_LEFT_EQUALS . "<<=")
485 (BITWISE_SHIFT_LEFT . "<<")
486 (BITWISE_OR_EQUALS . "|=")
487 (BITWISE_OR . "|")
488 (BITWISE_EXCLUSIVE_OR_EQUALS . "^=")
489 (BITWISE_EXCLUSIVE_OR . "^")
490 (BITWISE_AND_EQUALS . "&=")
491 (BITWISE_AND . "&")
492 (ASSIGN_SYMBOL . "="))
493 'punctuation)
494
495 \f
496 ;;; Epilogue
497 ;;
498 ;;here something like:
499 ;;(define-lex wisent-java-tags-lexer
500 ;; should go
501 (define-lex javascript-lexer-jv
502 "javascript thingy"
503 ;;std stuff
504 semantic-lex-ignore-whitespace
505 semantic-lex-ignore-newline
506 semantic-lex-ignore-comments
507
508 ;;stuff generated from the wy file(one for each "type" declaration)
509 wisent-javascript-jv-wy--<number>-regexp-analyzer
510 wisent-javascript-jv-wy--<string>-sexp-analyzer
511
512 wisent-javascript-jv-wy--<keyword>-keyword-analyzer
513
514 wisent-javascript-jv-wy--<symbol>-regexp-analyzer
515 wisent-javascript-jv-wy--<punctuation>-string-analyzer
516 wisent-javascript-jv-wy--<block>-block-analyzer
517
518
519 ;;;;more std stuff
520 semantic-lex-default-action
521 )
522
523 (provide 'semantic/wisent/js-wy)
524
525 ;; arch-tag: ff9ecf05-18e6-46a6-a3bb-e7f43f04640f
526 ;;; semantic/wisent/js-wy.el ends here