Home | History | Annotate | Download | only in lib

Lines Matching defs:ton

2 # https://github.com/jorge-leon/ton
44 # leg20180331: ton / TON - Tcl Object Notation
46 # This package provides manipulation functionality for TON - a data
54 # Finally, TON can be converted into (unformatted) JSON.
56 namespace eval ton {
62 proc ton::json2ton json {
65 # return: TON
69 lassign [jscan $json $i] i ton
73 return $ton
75 proc ton::trr {s i} {
84 proc ton::jscan {json i {d :}} {
90 # - TON
110 proc ton::num {json i c d} {
117 # - TON of number
133 proc ton::lit {json i} {
137 # - TON of literal
150 proc ton::str {json i} {
154 # - TON of string
165 proc ton::arr {json i} {
169 # - TON of array
193 proc ton::obj {json i} {
197 # - TON of object
232 # TON decoders
233 namespace eval ton::2list {
264 namespace eval ton::2dict {
272 namespace eval ton::a2dict {
287 namespace eval ton::2json {
303 package provide ton $ton::version