Fix builtins table in policy.rst

In RST doc congress/doc/source/policy.rst

The builtins table lack important method, like equal(x,y),
and the 'arithmetic' table contain two catalogs: arithmetic
and comparison, spliting it to separate tables looks like
make sense.

Change-Id: Ib49b0bb9500712bb12949ecaf76509eb31e121e5
Closes-Bug: #1510762
This commit is contained in:
Rui Chen 2015-10-28 11:07:28 +08:00
parent 959d7eb4a1
commit 7bb5bc29b3
1 changed files with 17 additions and 8 deletions

View File

@ -389,17 +389,26 @@ or the wrong column names.
Here is a list of the currently supported builtins. A builtin that has
N inputs means that the leftmost N columns are the inputs, and the
remaining columns (if any) are the outputs. If a builtin has no outputs,
, starting with arithmetic.
remaining columns (if any) are the outputs. If a builtin has no outputs, it
return boolean value True or False, starting with comparison.
====================================== ======= =============================
Comparison Builtin Inputs Description
====================================== ======= =============================
lt(x, y) 2 True if x < y
lteq(x, y) 2 True if x <= y
equal(x, y) 2 True if x == y
gt(x, y) 2 True if x > y
gteq(x, y) 2 True if x >= y
max(x, y, z) 2 z = max(x, y)
====================================== ======= =============================
Next are the arithmetic builtins.
====================================== ======= =============================
Arithmetic Builtin Inputs Description
====================================== ======= =============================
lt(x, y) 2 True if x < y
lteq(x, y) 2 True if x <= y
gt(x, y) 2 True if x > y
gteq(x, y) 2 True if x >= y
max(x, y, z) 2 z = max(x, y)
plus(x, y, z) 2 z = x + y
minus(x, y, z) 2 z = x - y
mul(x, y, z) 2 z = x * y
@ -409,7 +418,7 @@ int(x, y) 1 y = int(x)
====================================== ======= =============================
Next are the string builtins.
Then are the string builtins.
====================================== ======= =============================
String Builtin Inputs Description