Package org.eolang.parser
Class Xmir
- java.lang.Object
-
- org.eolang.parser.Xmir
-
public final class Xmir extends Object
Prints XMIR to EO or PHI.This class will help you turn XMIR (XML document) into EOLANG plain text source code or PHI calculus expression. It's as simple as this:
String eo = new Xmir(xml).toEO();
String phi = new Xmir(xml).toPhi();
Here, the
xml
is aString
or an instance ofXML
from the jcabi-xml package.
-
-
Constructor Summary
Constructors Constructor Description Xmir(com.jcabi.xml.XML src)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toEO()
Converts XMIR to EO.String
toPhi()
Converts XMIR to PHI.String
toPhiNoSugar()
Converts XMIR to PHI without any syntax sugar.String
toReversedEO()
Converts XMIR to EO, in reverse notation.String
toString()
-
-
-
Method Detail
-
toEO
public String toEO()
Converts XMIR to EO.- Returns:
- EO representation as
String
-
toReversedEO
public String toReversedEO()
Converts XMIR to EO, in reverse notation.- Returns:
- EO representation as
String
-
toPhi
public String toPhi()
Converts XMIR to PHI.- Returns:
- EO representation as
String
-
toPhiNoSugar
public String toPhiNoSugar()
Converts XMIR to PHI without any syntax sugar.- Returns:
- EO representation as
String
-
-