Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 40 lines (23 sloc) 1.122 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Things to do

Useful resource: http://sideshowbarker.github.com/es5-spec
                 http://test262.ecmascript.org
                 http://www.ecma-international.org/publications/standards/Ecma-262.htm

2. Separate out the different versions of JavaScript.

Necessary? Depends what this tool is used for. Current assumption is
that it is fed well-formed JS, and generates an AST for further
manipulation.

3. Simplify the AST. *JSElement at the very least is redundant.

4. Clarify the external interfaces required.

5. Process comments. Some kinds of hooks exist, but they are essentially discarded.

8. String literals for ed 5 - continuation chars etc.

10. Sort out [no line terminator here] in PostfixExpression

11. Export AST as JSON or XML

  nicferrier Nic Ferrier
  @paul_houle better tools come from the languages making their ast available,
  as json or xml: gcc --astxml a.c

12. Look at using the AST in WebBits
    http://hackage.haskell.org/package/WebBits-0.15

13. Numeric literals Infinity, NaN

14. Look at http://jsshaper.org/

15. Store number of rows/cols in a comment, to speed output

EOF

Something went wrong with that request. Please try again.