factor/extra/peg/javascript/javascript-docs.factor

15 lines
476 B
Factor
Raw Normal View History

2008-06-18 08:42:11 -04:00
! Copyright (C) 2007 Chris Double.
! See http://factorcode.org/license.txt for BSD license.
2014-05-24 20:16:26 -04:00
USING: help.markup help.syntax strings ;
2008-06-18 08:42:11 -04:00
IN: peg.javascript
HELP: parse-javascript
2014-05-24 20:16:26 -04:00
{ $values
{ "string" string }
{ "ast" "a JavaScript abstract syntax tree" }
2008-06-18 08:42:11 -04:00
}
2014-05-24 20:16:26 -04:00
{ $description
2008-06-18 08:42:11 -04:00
"Parse the input string using the JavaScript parser. Throws an error if "
"the string does not contain valid JavaScript. Returns the abstract syntax tree "
"if successful." } ;