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

Use wrap-method-calls.xsl #62

Open
c71n93 opened this issue Jun 19, 2023 · 0 comments
Open

Use wrap-method-calls.xsl #62

c71n93 opened this issue Jun 19, 2023 · 0 comments

Comments

@c71n93
Copy link
Member

c71n93 commented Jun 19, 2023

Now aoi is works only with "raw" xmir files. This approach causes some problems. For example issue #40. Example in this issue can be simplified:

Common dot notation

EO

[] > obj1
  [] > attr1
    1 > @

[x] > main
  x.attr1 > @

xmir

object main:

<o abstract="" line="13" name="main" pos="0">
   <o line="13" name="x" pos="1"/>
   <o base="x" line="14" pos="2" ref="13"/>
   <o base=".attr1" line="14" method="" name="@" pos="3"/>
</o>

Here aoi works fine and infers x as obj1.

Vertical dot notation

EO

[] > obj1
  [] > attr1
    1 > @

[x] > main
  attr1. > @
    x

xmir

object main:

<o abstract="" line="12" name="main" pos="0">
   <o line="12" name="x" pos="1"/>
   <o base=".attr1" line="13" name="@" pos="2">
      <o base="x" line="14" pos="4" ref="12"/>
   </o>
</o>

Here aoi doesn't work and can't infer x

Using wrap-method-calls.xsl optimisation

It seems that the right solution is to use already optimized xmir files. Thus, xmir will be similar for programs with similar functionality.

EO (common dot notation)

[] > obj1
  [] > attr1
    1 > @

[x] > main
  x.attr1 > @

EO (vertical dot notation)

[] > obj1
  [] > attr1
    1 > @

[x] > main
  attr1. > @
    x

Optimized xmir (with wrap-method-calls.xsl)

object main:

<o abstract="" line="12" name="main" pos="0">
   <o line="12" name="x" pos="1"/>
   <o base=".attr1" line="13" name="@" pos="2">
      <o base="x" line="14" pos="4" ref="12"/>
   </o>
</o>

Thus, all interaction with xmir needs to be reworked for using optimized with wrap-method-calls.xsl xmir.

@c71n93 c71n93 changed the title Passing optimized xmir to aoi Pass optimized xmir to aoi Jun 19, 2023
@c71n93 c71n93 changed the title Pass optimized xmir to aoi Use wrap-method-calls.xsl Sep 26, 2023
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