feat: add decoder

This commit is contained in:
hylo 2022-12-30 17:53:13 +01:00
parent d8993f2ebc
commit e456845b9a
1 changed files with 10 additions and 0 deletions

10
decoder.scm Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env -S guile -s
!#
(use-modules (json) (toml) (ice-9 match) (ice-9 pretty-print) (ice-9 textual-ports))
(define str (get-string-all (current-input-port)))
(define scm (toml->scm str))
(pretty-print scm)
;; (define json (scm->json scm #:pretty #t))