|
Has the conventional meaning -- evalues the right hand side to a value
and sets to current value of the variable on the left to be that value.
The value of the assignment statement as a whole is the same as the value
of the right hand side. The Noun may not be defined
as ":final", or the program will be statically
rejected.
|
Noun ":=" eExpr
|
|
<!ELEMENT assignExpr (Noun, %eExpr;)>
|
|
lvalue-for-noun = jExpr
Where the lvalue has the same appearance in Java as the rvalue,
as determined by the Noun translation.
|
|
c := a + b
|
|
c := a.add(b)
|
|
<assignExpr>
<Noun>c</Noun>
<callExpr>
<Noun>a</Noun>
<Verb>add</Verb>
<Noun>b</Noun>
</callExpr>
</assignExpr>
|
|
If c is a simple noun (see Noun):
c = a + b
If it's boxed:
c_Box[0] = a + b
|
x |
|