Control table: Difference between revisions

Content deleted Content added
See also: Remove link that is kinda duplicate
This is about a 2-dimensional table (array); saying multi-dimension is not wrong but confusing as heck
Line 63:
Often, a control table is a [[truth table]] or an implementation of a [[decision table]] or a [[tree (data structure)|tree]] of decision tables. The tables contains (often implied) [[propositional formula |propositions]], together with one or more associated actions. The actions are usually performed by generic or custom-built [[subroutine]]s that are called by an [[interpreter (computing)|interpreter]] program. The interpreter, a [[virtual machine]], executes the control table entries and thus provides a higher level of [[abstraction (computer science)|abstraction]] than the interpreter.
 
A control table can act like a [[switch statement]] or more generally as a nested [[if-then-else]] construct that includes [[logical predicate]]s (using [[Boolean algebra (logic)|boolean]] style [[logical conjunction |AND]]/[[logical disjunction |OR]] conditions) for each case. Such as control table provides for a language-independent implementation of what otherwise is a language-dependent construct. The table embodies the [[essence]] of a program; stripped of programming language syntax and platform dependent aspects; condensed to data and implied logic. The meaning of the table includes implied operations instead of being explicit as in a more typical a [[programming paradigm]].
 
Typically, a multitwo-dimensional control table contains value/action pairs and may additionally contain operators and [[type system |type]] information such as the ___location, size and format of input or output data, whether [[data conversion]] (or other [[run time (program lifecycle phase)|run-time]] processing nuances) is required before or after processing (if not already implicit in the function itself). The table may contain [[array index |indexes]] or relative or absolute [[pointer (computer programming)|pointer]]s to generic or customized primitives or [[subroutine]]s to be executed depending upon other values in the row.
==Content==
A control table essentially embodies the [[essence]] of a program; stripped of programming language syntax and platform dependent aspects; condensed to data and implied logic. The meaning of the table includes implied operations instead of being explicit as in a more typical a [[programming paradigm]].
 
The table below impiles an action based on a single input value.
Typically, a multi-dimensional control table contains value/action pairs and may additionally contain operators and [[type system |type]] information such as the ___location, size and format of input or output data, whether [[data conversion]] (or other [[run time (program lifecycle phase)|run-time]] processing nuances) is required before or after processing (if not already implicit in the function itself). The table may contain [[array index |indexes]] or relative or absolute [[pointer (computer programming)|pointer]]s to generic or customized primitives or [[subroutine]]s to be executed depending upon other values in the row.
 
The table below applies only to 'input1' since no specific input is specified in the table.
 
{| class="wikitable"