词条 | P′′ |
释义 |
| name = P′′ | paradigm = Imperative, structured | released = 1964 | designer = Corrado Böhm | typing = untyped | dialects = Brainfuck | influenced = Brainfuck }} P′′ (P double prime[1]) is a primitive computer programming language created by Corrado Böhm[2][3] in 1964 to describe a family of Turing machines. Definition(hereinafter written P′′) is formally defined as a set of words on the four-instruction alphabet , as follows: Syntax
Semantics
Relation to other programming languages
Example programBöhm[2] gives the following program to compute the predecessor (x-1) of an integer x > 0: which translates directly to the equivalent Brainfuck program: The program expects an integer to be represented in bijective base-k notation, with encoding the digits respectively, and to have before and after the digit-string. (E.g., in bijective base-2, the number eight would be encoded as , because 8 in bijective base-2 is 112.) At the beginning and end of the computation, the tape-head is on the preceding the digit-string. References1. ^https://github.com/Pbtflakes/pdbl {{DEFAULTSORT:P}}2. ^1 2 Böhm, C.: "On a family of Turing machines and the related programming language", ICC Bull. 3, 185-194, July 1964. 3. ^1 Böhm, C. and Jacopini, G.: "Flow diagrams, Turing machines and languages with only two formation rules", CACM 9(5), 1966. (Note: This is the most-cited paper on the structured program theorem.) 3 : Models of computation|Academic programming languages|Experimental programming languages |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。