-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
cali-lang.scroll
67 lines (63 loc) · 1.8 KB
/
cali-lang.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import ../code/conceptPage.scroll
id cali-lang
name Cali-Lang
appeared 2015
tags pl
website https://web.archive.org/web/20160820093952/http://cali-lang.com/
conceptDescription Cali is an object oriented interpreted programming language written in Java. It is an efficiency (glue) language that is loosely typed. Cali has it's own standard library but anyone can create external Java modules to extend Cali. In fact, the entire standard library was written by wrapping Java code.
writtenIn java xml markdown
repoStats
firstCommit 2017
commits 39
committers 5
files 104
newestCommit 2021
country Unknown
originCommunity https://github.com/cali-lang
example
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;
}
}
githubRepo https://github.com/cali-lang/cali.lang.base
stars 1
forks 0
subscribers 2
created 2017
updated 2021
description Base implementation of Cali interpreter.