Giter Site home page Giter Site logo

liufeigit / van-lang Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 3.0 61 KB

Van programming language. Embeddable and extendable script language in C. Simple and efficient.Inspired by C, Simula and JavaScript

License: MIT License

C 99.06% Shell 0.04% JavaScript 0.90%
programming-language dsl-interpreter scripting-language interpreter van virtual-machine bytecode emebeded compliler functional-programming

van-lang's Introduction

Van

Embeddable and extend script language in C.

A functional-programming and object-oriented-programming script language.

A simple and efficient script language.

Overview


Van is a script language, implement in ANSI C.

Van as a script language, it can be used as glue to decoupling complex business logic.

Van language features include A concise type system,Object-oriented,Function Closure,Coroutine,etc.

Van language design purpose is to facilitate embedding and extend, to facilitate interaction with C, and to decouple complex business.

Notice

Currently in the state of development and testing,documentation and functionality are still being refined and the release version will be released in the near future.

Test Use

If you are interested, you can now test and use,submit suggestions and bugs.

usage

$ cd Van
$ chmod +x ./build.sh 
$ ./build.sh

now genrate van and libvan.so file.

you can use van interpreter .van file in vanTest directory, for example

$ ./van ./vanTest/van_assign.van
$ ./van ./vanTest/van_class.van
$ ./van ./vanTest/van_exp.van
$ ./van ./vanTest/van_function.van
$ ./van ./vanTest/van_if.van
...

you can use libvan.so write language extend, if you interpreter van_extend.van,for example

$ clang -g -fPIC -shared  -L. -lvan ./External/extendTest1.c -o ./External/libextendTest1.so
$ clang -g -fPIC -shared  -L. -lvan ./External/extendTest2.c -o ./External/libextendTest2.so

now you can use extend sub and sub2 in .van file

Welcome to join

I look forward to your participation in Van language design and development.

____    ____  ___      .__   __. 
\   \  /   / /   \     |  \ |  | 
 \   \/   / /  ^  \    |   \|  | 
  \      / /  /_\  \   |  . `  | 
   \    / /  _____  \  |  |\   | 
    \__/ /__/     \__\ |__| \__| 
    
   Welcome to join Van project                                                  

If you have good ideas and suggestions,contact me , welcome to improve and transform Van language.

Contributing

License


Van project is available MIT License.

van-lang's People

Contributors

liufeigit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ycllz moneytech

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.