Stack-oriented programming language

From Wiki @ Karl Jones dot com
Revision as of 06:55, 22 September 2016 by Karl Jones (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In computer science, stack-oriented programming language is a programming language that relies on a stack machine model for passing parameters.

Description

Several programming languages fit this description, notably Forth, RPL, PostScript, BibTeX style design language and also many assembly languages (but on a much lower level).

Stack-oriented programming languages operate upon one or more stacks, each of which may serve different purposes. Because of this, programming constructs in other programming languages may need to be modified for use in a stack-oriented programming language.

Adding to this, some stack-oriented programming languages operate in Reverse Polish or postfix notation – that is, the arguments or parameters for some command are stated before the actual command itself. For example, in Reverse Polish notation, one would say "2, 3, multiply" instead of "multiply, 2, 3" (prefix or Polish notation) or "2 multiply 3" (infix notation).

See also

External links