Skip to content

Commit

Permalink
feat(objectionary#834): add debug information to unroll transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Nov 11, 2024
1 parent e313904 commit 4db9b30
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions src/main/java/org/eolang/jeo/representation/CanonicalXmir.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.yegor256.xsline.StEndless;
import com.yegor256.xsline.TrClasspath;
import com.yegor256.xsline.TrDefault;
import com.yegor256.xsline.TrFast;
import com.yegor256.xsline.TrJoined;
import com.yegor256.xsline.Xsline;
import java.io.FileNotFoundException;
Expand Down Expand Up @@ -136,31 +137,33 @@ private XML parse(final String eoprog) throws IOException {
*/
private static XML unroll(final XML parsed) {
return new Xsline(
new TrJoined<Shift>(
new TrClasspath<Shift>(
"/org/eolang/parser/wrap-method-calls.xsl"
).back(),
new TrDefault<Shift>(
new StEndless(
new StClasspath(
"/org/eolang/parser/roll-bases.xsl"
new TrFast(
new TrJoined<Shift>(
new TrClasspath<Shift>(
"/org/eolang/parser/wrap-method-calls.xsl"
).back(),
new TrDefault<Shift>(
new StEndless(
new StClasspath(
"/org/eolang/parser/roll-bases.xsl"
)
)
)
),
new TrClasspath<Shift>(
"/org/eolang/parser/add-refs.xsl",
"/org/eolang/parser/add-cuts.xsl"
).back(),
new TrDefault<Shift>(
new StEndless(
new StClasspath(
"/org/eolang/parser/vars-float-down.xsl"
),
new TrClasspath<Shift>(
"/org/eolang/parser/add-refs.xsl",
"/org/eolang/parser/add-cuts.xsl"
).back(),
new TrDefault<Shift>(
new StEndless(
new StClasspath(
"/org/eolang/parser/vars-float-down.xsl"
)
)
)
),
new TrClasspath<Shift>(
"/org/eolang/parser/remove-cuts.xsl"
).back()
),
new TrClasspath<Shift>(
"/org/eolang/parser/remove-cuts.xsl"
).back()
)
)
).pass(parsed);
}
Expand Down

0 comments on commit 4db9b30

Please sign in to comment.