1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

introduce keyed tables (?var syntax; WIP)

This cannot be set/changed through the GUI yet.
This commit is contained in:
Werner Almesberger
2012-05-27 16:10:59 -03:00
parent 3c39600c1c
commit 3488cf80ec
8 changed files with 276 additions and 26 deletions

15
README
View File

@@ -503,6 +503,21 @@ table
(x, y) assume the values (1, 2) and (3, 4).
Tables can also be used to provide information that depends on
other variables. The value of such a variable acts as a key, and a
row is only selected if all the keys in that row match the
respective variables. To mark a variable as being used as key, its
name it prefixed with a question mark.
Example:
loop n = 1, 2, 3
table
{ ?n, name }
{ 1, "one" }
{ 2, "two" }
{ 3, "three" }
Expressions
-----------