ZeroC project

来源:互联网 发布:淘宝网购物女装运动服套装 编辑:程序博客网 时间:2024/05/18 01:37

ZeroC project status

Zero C project provide another C-script platform for c/c++ developer, it includes compiler and virtual machine package.

Zero C compiler can parse the C-script file and compiler into ascii ASM file (a instruction set will be provided). VM (virutal machine) will read the ASM code and run program.

The current project have implemented most of features:

1) Data Type/basic C-language

Basic C-lanauage data types are implemented (bool, int, float, string, user-defined).

2) Function/Param pass-by-value/Param pass-by-reference

Two parameter-pass methods are implemented, pass-by-value and pass-by-reference.

3) Array

Dynamic-array is implemented (static array is not supported).

4) Communication between script and application

The host application can call the script function in standard protocol, as the same the, host application can provide the function, which can be called from Script scratch code.

5) standard library support.

The standard libary is very important to end-user, current Zero C provide some standard libraries (Math, STRING, IO). Some advance libray will be considered later. Maybe it will include XML, GUI.

Most of inspiration is from www.lua.org, Lua language provide the excellent mechanism and samples to clearify what and how to use script.