Skip to content

Commit

Permalink
add a BaseException
Browse files Browse the repository at this point in the history
  • Loading branch information
dours committed Aug 25, 2022
1 parent 17e21f8 commit 929b96a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions transpiler/src/main/eo/preface/xBaseException.eo
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
+package preface
+alias pyint preface.pyint
+alias return preface.return
+alias cage org.eolang.cage
+alias xfakeclasses preface.xfakeclasses

[] > xBaseException
xfakeclasses.xpyTypeClass > x__class__
pyint 18 > x__id__
[] > apply
[stackUp] > @
cage result > pResult
[] > result
xBaseException > x__class__
stackUp.forward (return pResult) > @
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ object PrintLinearizedMutableEOWithCage {
"+alias xint preface.xint",
"+alias xiter preface.xiter",
"+alias xStopIteration preface.xStopIteration",
"+alias xBaseException preface.xBaseException",
"+alias xTypeError preface.xTypeError",
"+alias xZeroDivisionError preface.xZeroDivisionError",
"+alias xAssertionError preface.xAssertionError",
Expand Down Expand Up @@ -371,6 +372,7 @@ object PrintLinearizedMutableEOWithCage {
"xlist > dummy-xlist",
"xint > dummy-xint",
"xStopIteration > dummy-stop-iteration",
"xBaseException > dummy-base-exception",
"xZeroDivisionError > dummy-xZeroDivisionError",
"xAssertionError > dummy-xAssertionError",
"xValueError > dummy-xValueError",
Expand Down

0 comments on commit 929b96a

Please sign in to comment.