Quotations
![]()
This section will treat the glyphs involving quotation species. Quotation species are at their core lists of glyphs which can be stored on the stack to cast later, or cast only if some condition is met. They are useful for compressing spells with repeating sets of glyphs, or for gating functionality on some condition.
→ Serves as a sort of operator that tells the spell to add each glyph in the cursorium after this one onto a quotation species. Glyphs are added in the order they are encountered, similar to the cursorium.
→ A pair operator for open quote. Tells a spell to stop adding glyphs to a quotation species and to push it onto the capsum. Once on the capsum, the quote can never be modified.
quote$() → Places the quote’s glyphs at the front of the cursorium and runs them. Effectively tells the spell to execute the glyphs contained in a quote in order.
quote, bool$() → Calls the quote only if the boolean at the head of the stack has value true. Useful for gating functionality behind some condition.
quote, bool$() → Calls the quote depending on whether a popped boolean has value true. Once the quote has finished executing, the glyph again pops the head of the stack and calls the quote again if it finds a true value. The loop continues until the value is false, or the spell meets some error.
quote, list$() → For each species on the list, pushes the species onto the capsum and then calls the quote. This is repeated for each species in the list. Essentially allows practitioners to use a ‘for-each’ loop.