Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.69 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Program name="Custom Example">
  3.     <Variables>
  4.         <Variable name="counter" number="0" />
  5.         <Variable name="zoom" number="0" />
  6.     </Variables>
  7.     <Instructions>
  8.         <CustomInstruction callFormat="recursive countdown (0)" format="recursive countdown |x|" name="RecursiveCountdown" id="0" style="custom-instruction" pos="-385.1565,-136.2195" />
  9.         <DisplayMessage id="1" style="display">
  10.             <StringOp op="join" style="join">
  11.                 <Constant text="Time: " />
  12.                 <Variable local="true" variableName="x" />
  13.             </StringOp>
  14.             <Constant number="7" />
  15.         </DisplayMessage>
  16.         <WaitSeconds id="2" style="wait-seconds">
  17.             <Constant text="1" />
  18.         </WaitSeconds>
  19.         <If id="3" style="if" pos="-442.2007,-337.1052">
  20.             <Comparison op="g" style="op-gt">
  21.                 <Variable local="true" variableName="x" />
  22.                 <Constant text="0" />
  23.             </Comparison>
  24.             <Instructions>
  25.                 <CallCustomInstruction call="RecursiveCountdown" id="4" style="call-custom-instruction">
  26.                     <BinaryOp op="-" style="op-sub">
  27.                         <Variable local="true" variableName="x" />
  28.                         <Constant text="1" />
  29.                     </BinaryOp>
  30.                 </CallCustomInstruction>
  31.             </Instructions>
  32.         </If>
  33.     </Instructions>
  34.     <Expressions>
  35.         <CustomExpression callFormat="clamp (0) between (1) and (2)" format="clamp |x| between |min| and |max| return (0)" name="Test" style="custom-expression" pos="-388.3484,-61.85625">
  36.             <BinaryOp op="min" style="op-min">
  37.                 <BinaryOp op="max" style="op-max">
  38.                     <Variable local="true" variableName="x" />
  39.                     <Variable local="true" variableName="min" />
  40.                 </BinaryOp>
  41.                 <Variable local="true" variableName="max" />
  42.             </BinaryOp>
  43.         </CustomExpression>
  44.         <CustomExpression callFormat="fibonacci (0)" format="fibonacci |x| return (0)" name="FibExpression" style="custom-expression" pos="-387.3123,-456.0806">
  45.             <Conditional style="conditional">
  46.                 <Comparison op="le" style="op-lte">
  47.                     <Variable local="true" variableName="x" />
  48.                     <Constant text="0" />
  49.                 </Comparison>
  50.                 <Constant text="0" />
  51.                 <Conditional style="conditional">
  52.                     <Comparison op="le" style="op-lte">
  53.                         <Variable local="true" variableName="x" />
  54.                         <Constant text="1" />
  55.                     </Comparison>
  56.                     <Constant text="1" />
  57.                     <BinaryOp op="+" style="op-add">
  58.                         <CallCustomExpression call="FibExpression" style="call-custom-expression">
  59.                             <BinaryOp op="-" style="op-sub">
  60.                                 <Variable local="true" variableName="x" />
  61.                                 <Constant text="1" />
  62.                             </BinaryOp>
  63.                         </CallCustomExpression>
  64.                         <CallCustomExpression call="FibExpression" style="call-custom-expression">
  65.                             <BinaryOp op="-" style="op-sub">
  66.                                 <Variable local="true" variableName="x" />
  67.                                 <Constant text="2" />
  68.                             </BinaryOp>
  69.                         </CallCustomExpression>
  70.                     </BinaryOp>
  71.                 </Conditional>
  72.             </Conditional>
  73.         </CustomExpression>
  74.     </Expressions>
  75. </Program>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement