1 ! Copyright (C) 2007 Chris Double.
\r
2 ! See http://factorcode.org/license.txt for BSD license.
\r
3 USING: help.markup help.syntax ;
\r
6 HELP: parse-javascript
\r
8 { "string" "a string" }
\r
9 { "ast" "a JavaScript abstract syntax tree" }
\r
12 "Parse the input string using the JavaScript parser. Throws an error if "
\r
13 "the string does not contain valid JavaScript. Returns the abstract syntax tree "
\r
14 "if successful." } ;
\r