qscript 0.6.11

a tiny, small, & fast scripting lang.

To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


this version (0.6.9) is pre-release, only use this for testing A fast, static typed, scripting language, with a syntax similar to D Language.

Setting it up

To add QScript to your dub package or project, run this in your dub package's directory:

dub add qscript

After adding that, look at the source/demo.d to see how to use the QScript class to execute scripts.

Getting Started:

To get started on using QScript, see the following documents:

  • spec/syntax.md - Contains the specification for QScript's syntax.
  • spec/functions.md - Contains a list of predefined QScript functions.
  • source/demo.d - A demo usage of QScript in D langauage. Shows how to add new functions

The code is thoroughly documented (a bit less documentation in compiler, but you probably wont touch that). Separate documentation can be found here.

Building Demo:

To be able to run basic scripts, you can build the demo using: dub build -c=demo -b=release This will create an executable named demo in the directory. To run a script through it, do: ./demo path/to/script You can also use the demo build to see the generated byte code for your scripts using: ./demo "path/to/script" "output/bytecode/file/path"


  1. Syntax similar to D
  2. Dynamic arrays
  3. Very fast execution speed. QScript has a virtual machine for this purpose, no interpretation is done at run time.
  4. Static typed. This eliminates a lot of errors.
  5. Function overloading
  6. References (similar to pointers, but simpler)

TODO For Upcoming Versions

  1. Add structs, and new keyword to be used with references - Yet to do (planned for sometime later in 0.8.x, or maybe even 0.7.x if I figure it out early)
  2. Add library support using import keyword - Planned for 0.8.0

Example Scripts:

These scripts can be run through the demo configuration.

Hello World:

function void main(){
	writeln ("Hello World!");

Array & For loop:

function void main{
	int[] array = [1, 2, 3, 4];
	for (int i = 0; i < length(array); i = i + 1;){
		writeln (toStr(array[i]));
  • nafees
utils, navm
0.8.0-alpha 2021-Mar-22
0.7.4 2021-Feb-02
0.7.3 2020-Dec-17
0.7.2 2020-Oct-27
0.7.1 2020-Mar-14
Show all 23 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 192 downloads total

Short URL: