Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

J2EO & Polystat compatibility. Blocks #28

Open
someilay opened this issue May 27, 2022 · 0 comments
Open

J2EO & Polystat compatibility. Blocks #28

someilay opened this issue May 27, 2022 · 0 comments

Comments

@someilay
Copy link

Blocks

if with it's body (has runtime support):

Java:

if (condition) {
    then_part();
} else {
    else_part();
}

Eo:

seq > @
  s1641313620
[] > s1641313620
  s_r577405636.if > @
    b1691538257
    b459848100
[] > s_r577405636
  condition > @
[] > b1691538257
  seq > @
    s393040818
  [] > s393040818
    then_part > @
      this
[] > b459848100
  seq > @
    s1658926803
  [] > s1658926803
    else_part > @
      this

Where condition is an expression with &&, || and brackets

while with it's body (has runtime support):

Java:

while (condition) {
    block();
}

Eo:

seq > @
  s480971771
[] > s480971771
  s_r255944888.while > @
    [while_i]
      b1948863195 > @
[] > s_r255944888
  condition > @
[] > b1948863195
  seq > @
    s1890187342
  [] > s1890187342
    block > @
      this

Where condition is an expression with &&, || and brackets

do with it's body (hasn't runtime support):

Java:

do {
    block();
} while (condition);

Eo:

seq > @
  s322836221
[] > s322836221
  s_r1032000752.do > @
    [do_i]
      b770911223 > @
[] > s_r1032000752
  condition > @
[] > b770911223
  seq > @
    s1392906938
  [] > s1392906938
    block > @
      this

Where condition is an expression with &&, || and brackets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant