]> gitweb.factorcode.org Git - factor.git/blob - extra/peg/javascript/javascript-docs.factor
Update actions, because Node.js 16 actions are deprecated, to Node.js 20
[factor.git] / extra / peg / javascript / javascript-docs.factor
1 ! Copyright (C) 2007 Chris Double.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax strings ;
4 IN: peg.javascript
5
6 HELP: parse-javascript
7 { $values
8   { "input" string }
9   { "ast" "a JavaScript abstract syntax tree" }
10 }
11 { $description
12     "Parse the input string using the JavaScript parser. Throws an error if "
13     "the string does not contain valid JavaScript. Returns the abstract syntax tree "
14     "if successful." } ;