Skip to content

zplus11/TOON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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, "Indent" -> 4, "Delimiter" -> "\t"]
(* "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]

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.

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

License

Stars

Watchers

Forks

Packages

No packages published