Jump to content
Wikipedia The Free Encyclopedia

Pidgin code

From Wikipedia, the free encyclopedia
Mixture of several programming languages in the same program
This article needs additional citations for verification . Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Pidgin code" – news · newspapers · books · scholar · JSTOR
(March 2025) (Learn how and when to remove this message)
The topic of this article may not meet Wikipedia's general notability guideline . Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.
Find sources: "Pidgin code" – news · newspapers · books · scholar · JSTOR
(March 2025) (Learn how and when to remove this message)

In computer programming, pidgin code is a mixture of several programming languages in the same program, or mathematical pseudocode that is a mixture of a programming language with natural language descriptions.[1] [2] Hence the name: the mixture is a programming language analogous to a pidgin in natural languages.

Examples

[edit ]

In numerical computation, mathematical style pseudocode is sometimes called pidgin code, for example pidgin ALGOL (the origin of the concept), pidgin Fortran , pidgin BASIC , pidgin Pascal , and pidgin C . It is a compact and often informal notation that blends syntax taken from a conventional programming language with mathematical notation, typically using set theory and matrix operations, and perhaps also natural language descriptions.

It can be understood by a wide range of mathematically trained people, and is used as a way to describe algorithms where the control structure is made explicit at a rather high level of detail, while some data structures are still left at an abstract level, independent of any specific programming language.

Normally non-ASCII typesetting is used for the mathematical equations, for example by means of TeX or MathML markup, or proprietary Formula editor formats.

These are examples of articles that contain mathematical style pseudocode:

References

[edit ]
  1. ^ DAT10603 Programming Principle. Center for Diploma Studies, Hannes Masandig. p. 125.
  2. ^ "Pseudocode". CodeDocs. 2021年06月18日. Retrieved 2025年03月01日.

AltStyle によって変換されたページ (->オリジナル) /