Releases: martinpi/ephemeral
Swift 5
Compatibility with Swift 5 established and verified.
Also started working on a new kalk backend to make the syntax for calculations easier. Put it on hold because a new implementation of the parser would be of so much help that I might just do that first.
Multiline Tabulator
Use tab at the beginning of a line to have multiline expressions in text format. I would love to give an example but this being HTML it's pretty hard to get a "tab" to display.
Much More Math
I've added binary functions to kalk, the built-in math system. While the syntax is still awful, kalk now features e.g. power and square root functions. I also enabled integer values all over the place and added a function to explicitly convert to int so results can be more readable.
Fix: iOS Framework
The iOS Framework did not build due to a missing bridging header. It should work correctly again now.
Cleanup & compatibility
Re-integrated kalk calculation system. Updated documentation. Some modifiers are closer to Tracery now to ease the Twitter bot creation.
Static library
New build target: static library (until it is tested it will be Mac only, then I plan to add an iOS target too). The use case in mind for this is to be able to create command line tools.
Seeding all the random
Main new feature: a random seed that is used throughout the process can be set via options at init of Tracery object. The same seed will produce determinism, meaning that expansion results are reproducible.
Multiline candidates & logging hooks
The parser now accepts candidates spread over multiple lines (separated by ''). Only works if the text input is used, not for JSON, of course. Also one can hook up their own logging function to e..g. redirect input to the UI.
A small fix for mankind
I had flipped a compiler switch but it wasn't necessary. Just roll with it.
Carthage-ready release
See the accidental tags below for detailed documentation. Took me a while to add a good release tag number.