S-Lang (programming language)
- S-Lang (programming language)
S-Lang is an interpreted programming language designed by John E. Davis to provide extensibility to C-based applications in the form of an embedded interpreter. Created in 1992, its original syntax reflected its origins as a stack-oriented language, but the current syntax has evolved to more closely resemble that of C. S-Lang is small, simple, and dynamically typed, with strongsupport for numerical array-based operations. Because of its size and ease-of-embedding, S-Lang has been embedded in non-numerical programs such as the slrn newsreader and the JED text editor.
Example
Several aspects of the language are illustrated by the following example. These include support for array-based arithmetic, function qualifiers, and object-oriented style method calls. The example makes use of the Grace plotting module to plot an exponentially damped sine curve with overplotted points from a file: slsh> require ("grace"); % load the grace module slsh> g = grace_new (); % create an instance of grace slsh> x = [0.01:10*PI:#1000] ; slsh> y = exp(-x)*sin(x); slsh> g.plot (x,y; logx); slsh> readascii("file.dat", &x, &y; cols= [1,3] ); slsh> g.oplot (x,y; color="red");
ee also
* S-Lang (programming library)
* Comparison of numerical analysis software
External links
* http://www.jedsoft.org/slang/
Wikimedia Foundation.
2010.
Look at other dictionaries:
Programming language — lists Alphabetical Categorical Chronological Generational A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that… … Wikipedia
Programming language theory — (commonly known as PLT) is a branch of computer science that deals with the design, implementation, analysis, characterization, and classification of programming languages and programming language features. It is a multi disciplinary field, both… … Wikipedia
Programming Language Design and Implementation — (PLDI) is one of the ACM SIGPLAN s most important conferences. The precursor of PLDI was the Symposium on Compiler Optimization, held July 27–28, 1970 at the University of Illinois at Urbana Champaign and chaired by Robert S. Northcote. That… … Wikipedia
Programming Language One — Programming Language One, oft als PL/I (auch PL/1, PL1 oder PLI) abgekürzt ist eine Programmiersprache, die in den 1960er Jahren von IBM entwickelt wurde. Die Bezeichnung PL/1 ist vor allem in Deutschland gebräuchlich. Ursprünglich wurde PL/I… … Deutsch Wikipedia
S-Lang (programming library) — The S Lang programming library is a software library for Unix, Windows, VMS, OS/2, and Mac OS X. It provides routines for embeddingan interpreter for the S Lang scripting language, andcomponents to facilitate the creation of text… … Wikipedia
Strongly-typed programming language — In computer science and computer programming, the term strong typing is used to describe those situations where programming languages specify one or more restrictions on how operations involving values having different data types can be… … Wikipedia
Racket (programming language) — Racket Paradigm(s) Multi paradigm: Functional, Procedural, Modular, Object oriented, Reflective, Meta Appeared in 1994 Developer … Wikipedia
Java (programming language) — infobox programming language name = Java paradigm = Object oriented, structured, imperative year = 1995 designer = Sun Microsystems latest release version = Java Standard Edition 6 (1.6.0) latest release date = latest test version = latest test… … Wikipedia
Lisp (programming language) — Infobox programming language name = Lisp paradigm = multi paradigm: functional, procedural, reflective generation = 3GL year = 1958 designer = John McCarthy developer = Steve Russell, Timothy P. Hart, and Mike Levin latest release version =… … Wikipedia
Scala (programming language) — Infobox programming language name = Scala paradigm = Multi paradigm: functional, object oriented year = 2003 designer = Martin Odersky developer = Programming Methods Laboratory of EPFL latest release version = 2.7.1 latest release date = May 5,… … Wikipedia