You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@volodya-lombrozo first of all, as Yegor said above there is no such object seq in global scope. All object FQNs start with either Q or $. Here Q - global scope, $ - scope of current abstract object. So seq anyway will get a prefix org.eolang or Q.org.eolang. So you simple object seq is converted to the sequence of dispatches (method calls) Q.org.eolang.seq.
Globally, There are 2 different notations for dispatching, which are used in EO:
Direct
# horizontal
org.eolang.seq
# OR
Q.org.eolang.seq
# OR
$.instructions
# OR vertical
org
.eolang
.seq
# OR
Q
.org
.eolang
.seq
# OR
$
.instructions
In XMIR it may look like:
<o base="org.eolang.seq"/>
// OR
<o base="Q.org.eolang.seq"/>
// OR
<o base="Q"/>
<o base=".org" method=""/>
<o base=".eolang" method=""/>
<o base=".seq" method=""/>
// OR
<o base="$"/>
<o base=".instructions" method=""/>
At the level of XMIR such notation is not canonical and during optimize it will be transformed into the second one.
Reversed
seq.
eolang.
org
# OR
seq.
eolang.
org.
Q
# OR
instructions.
$
It works the same as direct notation but it looks like the sequence of applications. At the level of EO every object that is used as method ENDS with dot.
Here all objects that are used as methods STARTS with dot. Such notation is canonical. All XMIRs returned by unphi 100% are in reversed notation. So if you teach JEO to generate/understand XMIR in such notation - you'll succeed
So we should try to apply this "canonical" notation. It is reversed and we don't have any specification on it, so there might be some problems.
The text was updated successfully, but these errors were encountered:
This issue comes from this comment:
So we should try to apply this "canonical" notation. It is reversed and we don't have any specification on it, so there might be some problems.
The text was updated successfully, but these errors were encountered: