VLOGen uses a simple comment based markup to generate a template vlo from a (properly marked-up) slo
To run: "QScriptHost.exe Main.js InputFile.slo"
The markup is sorta explained in test.slo (included in the 7z) but here's a quick over view
Code: Select all
//? This is the vlo file header
//? as is this
//+
//? This is the header for the variable block
public int test; // This is copied into the vlo as an end of line comment
public bool testSet1; //S This marks the var as part of a set that should be interleaved
public int testSet2; //S also this text is copied into the vlo as an end of line comment
//-
Code: Select all
public string test; //I["Inital Value"]Code: Select all
public string test; //SI["Inital Value"] A simple string valueQScriptHost is a made-for-this-project script host that I wrote because I wanted to learn JavaScript and needed a project but couldn't find a JavaScript script host that would allow file io
Edit:
For the five people who downloaded the the old version, sorry I wrote the vlo generation code at 4 in the morning and I still don't know what I was thinking
Also in the new package is WZScript Extender which uses a VLOGen like generator to add simple object oriented features to WZScript.
Both tools come with a test file that has examples of all valid syntax.
Edit:
New version of the script host that has various changes not important to the operation of the tools. The only change that maters is that as long as you follow the directions in EditMe.pri you should be able to compile the host from source on Linux/Mac. This is a workaround for a hack I have to use to get the .rc file to compile on my system

