xml-programming/test.xml
overflowerror 6ad0168eaf initial commit
I wrote this a few year back (according to the mtime of the files
Sep 12th 2021)
2024-02-02 22:02:20 +01:00

51 lines
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<program>
<func name="facc">
<args>
<arg name="i" type="int"/>
<returns type="int"/>
</args>
<body>
<switch>
<if>
<cond>
<lt>
<var name="i"/>
<int>1</int>
</lt>
</cond>
<then>
<return>
<int>1</int>
</return>
</then>
</if>
<else>
<then>
<return>
<mul>
<var name="i"/>
<call name="facc">
<sub>
<var name="i"/>
<int>1</int>
</sub>
</call>
</mul>
</return>
</then>
</else>
</switch>
</body>
</func>
<for name="i" from="1" to="10">
<body>
<output>
<call name="facc">
<var name="i"/>
</call>
</output>
</body>
</for>
</program>