Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Plankalkül
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Two-dimensional syntax=== Because indexes of variables are written vertically, each Plankalkül instruction requires multiple rows to write down.{{citation needed|date=November 2016}} First row contains variable kind, then variable number marked with letter V ({{langx|de|Variablen-Index}}), then indexes of variable subcomponents marked with K ({{langx|de|Komponenten-Index}}), and then ({{langx|de|Struktur-Index}}) marked with S, which describes variable type. Type is not required, but Zuse notes that this helps with reading and understanding the program.<ref name="Bauer-Wössner_1972"/>{{rp|page=681}} In the line <math>S</math> types <math>S0</math> and <math>S1</math> could be shortened to <math>0</math> and <math>1</math>.<ref name="Bauer-Wössner_1972"/>{{rp|page=681}} Examples: {|cellpadding=5 style="border:1px solid #BBB; width:600px;" |- | <math>\begin{array}{r|l} & V \\ V & 3 \\ K & \\ S & m \times 2 \times 1 \cdot n \end{array}</math> | variable V3 — list of <math>m</math> pairs of values of type <math>S1 \cdot n</math> |- | <math>\begin{array}{r|l} & V \\ V & 3 \\ S & m \times 2 \times 1 \cdot n \end{array}</math> | Row K could be skipped when it is empty. Therefore, this expression means the same as above. |- | <math>\begin{array}{r|l} & V \\ V & 3 \\ K & i \cdot 0 \cdot 7 \\ S & 0 \end{array}</math> | Value of eights bit (index 7), of first (index 0) pair, of і-th element of variable V3, has Boolean type (<math>S0</math>). |} Indexes could be not only constants. Variables could be used as indexes for other variables, and that is marked with a line, which shows in which component index would value of variable be used: {|cellpadding=5 style="border:1px solid #BBB; width:600px;" |- | [[File:Plankalkül variable index.png|Using variable as index for other variable, in 2d Plankalül notation]] | Z5-th element of variable V3. Equivalent to expression <code>V3[Z5]</code> in many modern programming languages.<ref name="Bauer-Wössner_1972"/>{{rp|page=681}} |}
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Plankalkül
(section)
Add topic