-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
salsa.scroll
60 lines (49 loc) · 1.81 KB
/
salsa.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
import ../code/conceptPage.scroll
id salsa
name Simple Actor Language System and Architecture
appeared 2001
tags pl
website http://wcl.cs.rpi.edu/salsa/
standsFor Simple Actor Language System and Architecture
fileType text
centralPackageRepositoryCount 0
country United States
originCommunity Rensselaer Polytechnic Institute and University of Illinois at Urbana-Champaign
multiLineCommentTokens /* */
hasMultiLineComments true
/* A comment
*/
hasComments true
/* A comment
*/
hasSemanticIndentation false
wikipedia https://en.wikipedia.org/wiki/SALSA_(programming_language)
example
module demo;
/*
This behavior simply prints out a string,
reads a line from the Standard Input,
combines the return value of the Standard Input with other strings,
and then prints out the combined string.
*/
behavior StandardInputTest{
public StandardInputTest() {}
String mergeString(String str1, String str2, String str3) {
return str1+str2+str3;
}
void act(String[] args) {
standardOutput<-println("What's your name?")@
standardInput<-readLine()@
self<-mergeString("Hi, ",token, ". Nice to meet you!" )@
standardOutput<-println(token);
}
}
related java
summary The SALSA programming language (Simple Actor Language System and Architecture) is an actor-oriented programming language that uses concurrency primitives beyond asynchronous message passing, including token-passing, join, and first-class continuations. It also supports distributed computing over the Internet with universal naming, remote communication, and migration linguistic abstractions and associated middleware. For portability, it produces Java code.
pageId 2344513
dailyPageViews 14
created 2005
backlinksCount 11
revisionCount 16
appeared 2001
fileExtensions salsa