Bad Script is an Interpreted Scripting Language written in pure C#. It has a similar syntax to javascript and written to be easily extensible.
This Repository contains a complete rewrite of BadScript
At this point in time, there is a single dependency that is not available from the public nuget.org repository.
To be able to restore the solution, the project BadScript2.IO.OpenKM
needs to be unloaded.
Follow these steps to get started.
Currently it is only possible to build the project from source. Binaries will be available on the first release.
Tested on:
- Windows 10 64-bit
- Debian 11 (Bullseye)
Requirements:
- git
- net6.0 SDK
- Powershell 7.0 or greater
- Open a Powershell Session
- On Windows:
powershell
- On Linux:
pwsh
- On Windows:
- Clone this Repository
- Change Directory to
./BadScript2
- Run
./build.ps1
use
build.ps1 -config Release
to build with optimizations.
use
build.ps1 -writeLog
to get debug logs
build.ps1
compiles the language project and builds all common libraries for the runtime.
The Compiled output will be generated in ./build
.
Create a file helloworld.bs
with the following content:
Console.WriteLine("Hello World!");
Run the script with the command
bs run -f helloworld.bs
Output:
Hello World!
- Getting Started
- Common Extension Reference
- Common Libraries Reference(coming soon)
- Further Reading