Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOON

is a WL Paclet that provides support for the TOON format in Wolfram Language. It provides two functions, namely ToTOON and FromTOON1 that make conversion to-and-fro TOON possible.

Installation

is as easy as running

PacletInstall["Taggar/TOON"]

Once the paclet is installed, load it by running

Needs["Taggar`TOON`"]

Quick start

<<Taggar`TOON`

data = <|"Name" -> "TOON", "Language" -> "Wolfram"|>
ToTOON[data]
(* "Name: TOON\nLanguage: Wolfram" *)

Full example:

<<Taggar`TOON`

data = <|"context" -> <|"task" -> "Our favorite hikes together", 
    "location" -> "Boulder", "season" -> "spring_2025"|>, 
  "friends" -> {"ana", "luis", "sam"}, 
  "hikes" -> {<|"id" -> 1, "name" -> "Blue Lake Trail", 
     "distanceKm" -> 7.5, "elevationGain" -> 320, "companion" -> "ana",
      "wasSunny" -> True|>, <|"id" -> 2, "name" -> "Ridge Overlook", 
     "distanceKm" -> 9.2, "elevationGain" -> 540, 
     "companion" -> "luis", "wasSunny" -> False|>, <|"id" -> 3, 
     "name" -> "Wildflower Loop", "distanceKm" -> 5.1, 
     "elevationGain" -> 180, "companion" -> "sam", "wasSunny" -> True|>}|>;

ToTOON[data, "Indent" -> 4, "Delimiter" -> "\t"]

which returns the following output:

context:
    task: Our favorite hikes together
    location: Boulder
    season: spring_2025
friends[3	]: ana	luis	sam
hikes[3	]{id	name	distanceKm	elevationGain	companion	wasSunny}:
    1	Blue Lake Trail	7.5	320	ana	true
    2	Ridge Overlook	9.2	540	luis	false
    3	Wildflower Loop	5.1	180	sam	true

Version log

Version 0.1.0, on 02 January, 2026 — Initial upload, encoder complete except key-folding. This means over 95% spec-compliance.

Version 0.1.1, on 06 April, 2026 — encoder is now 100% spec compliant (v3).

v0.2.0, expected — Decoder implemented.

Contributions

are welcome.

Footnotes

  1. FromTOON is yet to be implemented. The paclet itself is under development and not yet stable. ↩

About

Implementation of TOON format in WL language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages