Skip to main content
Version: Next

Advanced

You can now write FScript and choose how it runs. Use this section when your program needs capabilities beyond a simple script: application-specific APIs, concurrent work, or a deliberate security policy.

Choose a topic for the problem you have; these are not prerequisites for ordinary scripting.

GoalStart hereWhat you should know first
Call .NET libraries or expose domain APIsExtend FScriptFunctions, records, and your chosen execution mode.
Coordinate work and wait for resultsTasks and ConcurrencyFunctions, closures, and interpreter configuration.
Set an access policyPermissions and SafetyWhether code runs through the CLI, a compiled program, or an application host.
Make configured APIs visible in VS CodeExtension EnvironmentsA working provider and its manifest.
Debug callbacks, imports, or multiple tasksDebugging Larger ProgramsThe basic VS Code debugger walkthrough.

The detailed guides below cover typed extern registration, asynchronous libraries, host-managed values, import resolvers, task-sharing analysis, and sandbox boundaries. JavaScript hosts use their own extern registration surface; follow the JavaScript host guide for that environment.

After adding a capability, use Samples to see it in a complete program.