JavaScript parser API

Brendan Eich brendan at
Wed Jul 6 12:57:55 PDT 2011

On Jul 6, 2011, at 12:55 PM, Oliver Hunt wrote:

> I have a vague recollection that the SM parser strips out some characters prior to
> parsing (brendan?)

Nothing is stripped other than space (including comments).

> and generates bytecode into the ast (though based on dherman's
> comments maybe that's no longer the case)

Not for many, many years.

Your points are well-taken. A standard AST reflection library is a very dark horse at this point. Better to build parsers that suit tools' needs, including comment preservation, etc.


More information about the es-discuss mailing list