ZetScript Programming Language

1 points by jespa007 ↗ HN
ZetScript is a programming language with an API that allows bind C++ code in script side. ZetScript includes the following features:

-Virtual Machine -Language syntax close to Javascript -MSVC++ 32/64 bits MSVC 2015/2017 or build tools v141 -Linux/MinGW 32/64 bits, g++ 4.8 or above -Save/Load state support -Dynamic Garbage collector -Straightforward way to bind C++ variables, functions, classes and its members -The library size is 1Mb on gnu toolchain and 372KB on MSVC++ -Override operators through metamethods

A helloworld in shown in the following code,

#include "CZetScript.h"

using namespace zetscript;

void say_helloworld(){ printf("Hello World!"); }

int main(){

CZetScript *zs = CZetScript::getInstance(); // instance zetscript

register_C_Function("say_helloworld",say_helloworld);

zs->eval("say_helloworld();"); // Call c function and prints hello world! return 0; }

If someone finds interesting this project it can go to these sites for further information:

-ZetScript webpage (https://zetscript.org/) -ZetScript Forum (https://zetscript.org/forum/) -ZetScript Github (https://github.com/jespa007/zetscript)

Also there's an example of using ZetScript,

-Game Engine with SDL2 and ZetScript (https://www.codeproject.com/Tips/1215529/Game-engine-using-SDL-and-ZetScript)

0 comments

[ 5.2 ms ] story [ 47.3 ms ] thread

No comments yet.