1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00
serenity/Base/home/anon/js
Andreas Kling 4d942cc1d0 js: Take the script file as a command-line argument
Now that we have the beginnings of a parser, let's take the script to
run as a command-line argument and move all the test scripts into
/home/anon/js :^)

To run a script, simply use "js":

$ js my-script.js

To get an AST dump before execution, you can use "js -A"
2020-03-12 10:52:47 +01:00
..
forced-gc.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-function.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-parse.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-scopes.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-variables.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
string-length.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00