{"id":14040,"date":"2024-10-20T15:48:48","date_gmt":"2024-10-20T19:48:48","guid":{"rendered":"https:\/\/www.sceneri.com\/?post_type=sceneri-pro-docs&p=14040"},"modified":"2024-11-01T23:42:56","modified_gmt":"2024-11-02T03:42:56","slug":"scripting-console","status":"publish","type":"sceneri-pro-docs","link":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/logic-graph\/scripting-console\/","title":{"rendered":"Scripting Console"},"content":{"rendered":"
+file <\/code><\/li>\n<\/ul>\n\n- Provides the file path for the input file that is used with other commands<\/li>\n<\/ul>\n
\n-verbose<\/code><\/li>\n<\/ul>\n\n- Provides additional output and annotation for running other commands<\/li>\n<\/ul>\n
\n-compile<\/code><\/li>\n<\/ul>\n\n- Compiles the provided script (sourced) file into a binary script file<\/li>\n
- The result will be written next to the input file with a
.script.binary<\/code> extension<\/li>\n<\/ul>\n\n-disassemble<\/code><\/li>\n<\/ul>\n\n- Disassembles the compiled file (provided or previously compiled) into a text file<\/li>\n
- The result will be written next to the input file with a
.script.disasm<\/code> extension<\/li>\n<\/ul>\n\n-interpret<\/code><\/li>\n<\/ul>\n\n- Interprets (executes) the parsed input file with the AST interpreter and prints the result<\/li>\n<\/ul>\n
\n-run<\/code><\/li>\n<\/ul>\n\n- Runs (executes) the compiled input file with the virtual machine and prints the result<\/li>\n<\/ul>\n<\/div>\n<\/div>\n
Example<\/h3>\n\nWith a simple setup in Visual Studio the script console can be used interactively to develop and test (standalone) Sceneri scripts:<\/div>\nView<\/code> \u279d Command Palette...<\/code> (ctrl + shift + p) \u279d Tasks: Open User Tasks<\/code> ( tasks.json<\/code> )<\/div>\nand add follow task:<\/div>\n<\/div>\n<\/div>\n<\/div>