We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

XPML17

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

XPML17 is a programming language created by User:actuallyallama in 2017. It was designed because the creator hates XML, so he decided to make a programming language based on that.

The main implementation is available on github, and it also shows the example programs and standard functions.

Hello, world!

 <program>
     <main>
         <print literal="Hello, World!"/>
     </main>
 </program>

99 bottles of beer

 <program>
   <main arg0="int">
     <while l="arg0" op=">" rlit="1">
       <print var="arg0" literal=" bottles of beer on the wall, "/>
       <print var="arg0" literal=" bottles of beer."/>
       <print literal="&#10;Take one down, pass it around, "/>
       <do l="arg0" op="-" rlit="1"/>
       <print var="arg0" literal=" bottle"/>
       <if l="arg0" op="!=" rlit="1">
         <print literal="s"/>
       </if>
       <print literal=" of beer on the wall.&#10;"/>
     </while>
     <print literal="1 bottle of beer on the wall, 1 bottle of beer.&#10;Take one down, pass it around,&#10;We're out of beer!"/>
   </main>
 </program>