Class 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 a String or an instance of XML from the jcabi-xml package.

    • Constructor Detail

      • Xmir

        public Xmir​(com.jcabi.xml.XML src)
        Ctor.
        Parameters:
        src - The source
    • 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