Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Plankalkül
(section)
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}} |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)