qscript 0.5.2
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:
QScript is a fast, and simple scripting language.
Features:
- Easy and unique (a bit like C) syntax
- Arrays - Dynamic Arrays, length can be changed at runtime
- Fast execution - or should I say, very fast. The
demo.qscript
takes just 0.05 seconds more than it's D (compiled) equaivalent! - More features on the way, qscript is still in beta
- One script can have several functions, making it usable for 'event-based scripting' - and those functions can call each other.
- Dynamic typed, yet very fast.
Where to report bugs?
Use the issues tab at the top!
Where to learn QScript from (Since QScript is a language itself)?
Use the wiki!
Example scripts:
Hello World
main{
qwrite("Hello World!");
}
Just a note: The qwrite
function is not in QScript by default.
Arrays(plus a bit more)
main{
new (someArray, i, end);
someArray = array();
someArray = setLength(someArray,10);
i = 0;
end = getLength(someArray);
//put values in array
while (i<end){
someArray[i] = string(i+1);
i = i + 1;
}
//output
i = 0;
while (i<end){
qwrite("someArray[",string(i),"]=",someArray[i],"\n");
i = i + 1;
}
}
P.S: Updates have slowed down, a lot, because I am nowadays very busy with my studies.
- Registered by Nafees Hassan
- 0.5.2 released 7 years ago
- Nafees10/qscript
- MIT
- Copyright © 2016, nafees
- Authors:
- Dependencies:
- none
- Versions:
-
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 - Download Stats:
-
-
0 downloads today
-
1 downloads this week
-
1 downloads this month
-
192 downloads total
-
- Score:
- 2.2
- Short URL:
- qscript.dub.pm