July 2000 Draft
JavaScript 2.0
Formal Description
Lexer Grammar
|
Monday, December 6, 1999
This LALR(1) grammar describes the lexer syntax of the JavaScript 2.0 proposal. See also the description of the grammar notation.
This document is also available as a Word 98 rtf file.
The start symbols are:
NextTokenunit
if the previous token was a number;
NextTokenre
if the previous token was not a number and a /
should be interpreted as a regular
expression; and
NextTokendiv
if the previous token was not a number and a /
should be interpreted as a division or
division-assignment operator.
«TAB»
| «VT»
| «FF»
| «SP»
| «u00A0»
«u2000»
| «u2001»
| «u2002»
| «u2003»
| «u2004»
| «u2005»
| «u2006»
| «u2007»
«u2008»
| «u2009»
| «u200A»
| «u200B»
«u3000»
!
!
=
!
=
=
#
%
%
=
&
&
&
&
&
=
&
=
(
)
*
*
=
+
+
+
+
=
,
-
-
-
-
=
-
>
.
.
.
.
.
.
:
:
:
;
<
<
<
<
<
=
<
=
=
=
=
=
=
=
>
>
=
>
>
>
>
=
>
>
>
>
>
>
=
?
@
[
]
^
^
=
^
^
^
^
=
{
|
|
=
|
|
|
|
=
}
~
.
Fraction
Waldemar Horwat Last modified Monday, December 6, 1999 |