XScript
A c-like script language
This is a script compiler and runtime environment. Please read this document for more information about this language grammar.
The language has a c-like way to prommgram, and if you have exprience in C/C++, Java or C#, you will be familiar to it.
XScript is:
- a strongly-typed language. It has a very complete type check and conversion ruler.
- a simple language.
- an extensible language. You can extend the functions by using extending Java functions, which means you can call the native Java functions.
- a powerful language. You can finish almost everything by using it. This language supports for
function
and struct
.
- a convenient language. It has a lot of built-in types:
int
, char
, bool
, string
, real
, and even bigint
, bigreal
.
- an object oriented language. It supports for inheriting. You can write RTTI codes-because it supports operator
instanceof
.
- a script language. And this means its GC system is based on JVM.
- a language supporting for multi-thread, anonymous nested struct and lambda expression
Dependency :
- JDK 8.0+(Lambda expression required.If you need run it on older java version(without lambda supported), please check out v1.5 of this repo.)
- All
.cmd
files is for Windows,but you can write similar script on other OS.
If you have any advices, you can fork it and raise a pull request.And also, extension to other language is welcome.