chapter 0.1.0

An implementation of the Yarn Spinner runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
title: Start
---
// Function tests

// "add_three_operands" is a function that adds three operands together

<<call assert(add_three_operands(1, 2, 4*1) == 7)>>

// last_value is a function that returns the last parameter

<<call assert(last_value(1,2,3) == 3)>>

// function calls as parameters

<<call assert(last_value(1, 2, last_value(4,2,3)) == 3)>>
===