Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Cali-Lang

< >

Cali-Lang is a programming language created in 2015.

#2180on PLDB 9Years Old
Download source code:
git clone https://github.com/cali-lang/cali.lang.base

Base implementation of Cali interpreter.


Example from the web:
include console; include net.rpc; include rpcDemoObj; // Include demo object. class rpcDemoServer : rpcServer { public main(args) { rd = new rpcDemoServer(); console .println('Starting up rpcDemoServer on localhost:9090') .println('Hit ctrl-c to kill the server.') .println('Waiting for calls ...\n') ; rd.start(); } cart = []; public rpcDemoServer() { this // Hosted methods .add('addToCart') .add('getCart') ; } public addToCart(object Item) { if(Item instanceof 'rpcDemoObj') { console.println("Adding item '" + Item.getModelName() + "' to cart."); this.cart @= Item; return true; } else { throw "Unexpected object found."; } } public getCart() { console.println('Returning shopping cart.'); return this.cart; } }

View source

- Build the next great programming language About Acknowledgements Extensions Day 630 Donate feedback@pldb.io