;;; javascript-jv.wy -- LALR grammar for Javascript
-;; Copyright (C) 2005-2011 Free Software Foundation, Inc.
+;; Copyright (C) 2005-2016 Free Software Foundation, Inc.
;; Copyright (C) 1998-2011 Ecma International.
;; Author: Joakim Verona
;; DAMAGE.
%package wisent-javascript-jv-wy
-;; JAVE I prefere ecmascript-mode
+%provide semantic/wisent/js-wy
+
+%{
+(declare-function semantic-parse-region "semantic"
+ (start end &optional nonterminal depth returnonerror))
+}
+
+;; JAVE I preferred ecmascript-mode.
%languagemode ecmascript-mode javascript-mode
;; The default goal
;; Other Goals
%start FormalParameterList
-;; with the terminals stuff, I used the javacript.y names,
+;; with the terminals stuff, I used the javascript.y names,
;; but the semantic/wisent/java-tags.wy types
;; when possible
;; ------------------
| BreakStatement
| ReturnStatement
| WithStatement
- ;
-
+ ;
+
FunctionDeclaration : FUNCTION VARIABLE FormalParameterListBlock Block
(FUNCTION-TAG $2 nil $3)
;
ContinueStatement : CONTINUE SEMICOLON
;
-;;JAVE break needs labels
+;;JAVE break needs labels
BreakStatement : BREAK SEMICOLON
;; | BREAK identifier SEMICOLON
;