Slide 7
Slide 7 text
E4X,
それは世界を曝くシステム
-‐
E4X,
that
is,
the
system
that
unveils
the
world
Scanning
E4X
-‐
Whitespace
• Unlike
ECMAScript
scanner,
E4X
scanner
scan
Whitespace
as
1
token
• Need
to
recognize
there
are
whitespaces
or
not
(Between
<
and
XMLTagContent,
whitespace
is
not
allowed)
• And
whitespace
defini8on
is
different
from
ECMA262
– Ver8cal
tab,
\u2028,
\u2029,
BOM
etc.
are
not
included
in
ECMA357
– So
special
scanner
for
E4X
is
needed
XMLElement:
<
XMLTagContent
XMLWhitespaceopt
/>
<
XMLTagContent
XMLWhitespaceopt
>
XMLElementContentopt
XMLTagName
XMLWhitespaceopt
>