Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <Program name="Custom Example">
- <Variables>
- <Variable name="counter" number="0" />
- <Variable name="zoom" number="0" />
- </Variables>
- <Instructions>
- <CustomInstruction callFormat="recursive countdown (0)" format="recursive countdown |x|" name="RecursiveCountdown" id="0" style="custom-instruction" pos="-385.1565,-136.2195" />
- <DisplayMessage id="1" style="display">
- <StringOp op="join" style="join">
- <Constant text="Time: " />
- <Variable local="true" variableName="x" />
- </StringOp>
- <Constant number="7" />
- </DisplayMessage>
- <WaitSeconds id="2" style="wait-seconds">
- <Constant text="1" />
- </WaitSeconds>
- <If id="3" style="if" pos="-442.2007,-337.1052">
- <Comparison op="g" style="op-gt">
- <Variable local="true" variableName="x" />
- <Constant text="0" />
- </Comparison>
- <Instructions>
- <CallCustomInstruction call="RecursiveCountdown" id="4" style="call-custom-instruction">
- <BinaryOp op="-" style="op-sub">
- <Variable local="true" variableName="x" />
- <Constant text="1" />
- </BinaryOp>
- </CallCustomInstruction>
- </Instructions>
- </If>
- </Instructions>
- <Expressions>
- <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">
- <BinaryOp op="min" style="op-min">
- <BinaryOp op="max" style="op-max">
- <Variable local="true" variableName="x" />
- <Variable local="true" variableName="min" />
- </BinaryOp>
- <Variable local="true" variableName="max" />
- </BinaryOp>
- </CustomExpression>
- <CustomExpression callFormat="fibonacci (0)" format="fibonacci |x| return (0)" name="FibExpression" style="custom-expression" pos="-387.3123,-456.0806">
- <Conditional style="conditional">
- <Comparison op="le" style="op-lte">
- <Variable local="true" variableName="x" />
- <Constant text="0" />
- </Comparison>
- <Constant text="0" />
- <Conditional style="conditional">
- <Comparison op="le" style="op-lte">
- <Variable local="true" variableName="x" />
- <Constant text="1" />
- </Comparison>
- <Constant text="1" />
- <BinaryOp op="+" style="op-add">
- <CallCustomExpression call="FibExpression" style="call-custom-expression">
- <BinaryOp op="-" style="op-sub">
- <Variable local="true" variableName="x" />
- <Constant text="1" />
- </BinaryOp>
- </CallCustomExpression>
- <CallCustomExpression call="FibExpression" style="call-custom-expression">
- <BinaryOp op="-" style="op-sub">
- <Variable local="true" variableName="x" />
- <Constant text="2" />
- </BinaryOp>
- </CallCustomExpression>
- </BinaryOp>
- </Conditional>
- </Conditional>
- </CustomExpression>
- </Expressions>
- </Program>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement