+Examples
+>>>
{1:"one", 2:"two"}
+{1: "one", 2: "two"}
+
+
+
>>>
{"one":1, "two": 2}
+{"one": 1, "two": 2}
+
+
+
>>>
{"sum":1+2+3, "prod":1*2*3}
+{"sum": 6, "prod": 6}
+
+
+
>>>
{"one":1, "two":2}["two"]
+2
+
+
+
>>>
d={"one":1, "two":2}; d["six"]=6; d
+{"two": 2, "one": 1, "six": 6}
+
@@ -1474,7 +1544,7 @@ dev-expr -- Expressions calculator v1.10.0
-Example 10. Variable literal syntax
+Example 11. Variable literal syntax
variable = identifier "=" any-value
@@ -1498,18 +1568,30 @@ The assign operator =
returns the value assigned to th
Examples
>>>
a=1
-1
->>>
a_b=1+2
-1+2
->>>
a_b
-3
->>>
x = 5.2 * (9-3)
// The assigned value has the approximation error typical of the float data-type
-31.200000000000003
->>>
x = 1; y = 2*x
-2
->>>
a=2
-Parse Error: [1:2] unexpected token ""
->>>
1=2
+1
+
+
+
+
+
>>>
x = 5.2 * (9-3)
// The assigned value has the approximation error typical of the float data-type
+31.200000000000003
+
+
+
+
>>>
a=2
+Parse Error: [1:2] unexpected token ""
+
+
+
>>>
1=2
Parse Error: assign operator ("=") must be preceded by a variable
@@ -1995,7 +2077,7 @@ These operators have a high priority, in particular higher than the operator