From TheBestLinks.com
S-Lang is an interpreted programming language designed to provide extensibility to applications written in other programming languages via language embedding. Created in 1992, its original syntax reflected its origins as a Stack-based programming language, but the current syntax is very much like that of C.
S-lang has been embedded in slrn, jed and mutt.
Example code
Here is how to implement the factorial function using S-Lang:
define factorial (); % declare it for recursion
define factorial (n)
{
if (n < 2) return 1;
return n * factorial (n - 1);
}
External link
pl:S-Lang
Related links
Top visited
0 of
0 links
[no links posted yet]
>> place link >>
Discussion
Last posted
0 of
0 messages
[no messages posted yet]
>> post message >>
Watch
You can
add this article to your own "watchlist" and receive e-mail notification about all changes in this page.