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
xmlis aStringor an instance ofXMLfrom 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 StringtoEO()Converts XMIR to EO.StringtoPhi()Converts XMIR to PHI.StringtoPhiNoSugar()Converts XMIR to PHI without any syntax sugar.StringtoReversedEO()Converts XMIR to EO, in reverse notation.StringtoString()
-
-
-
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
-
-