From 11dd0885f6a35ebd4f25bae690a1f12a4d1a236c Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 11 Jan 2017 12:04:16 -0800 Subject: [PATCH] finish scrbl --- .../jsonic-demo-3/scribblings/jsonic.scrbl | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/beautiful-racket-demo/jsonic-demo-3/scribblings/jsonic.scrbl b/beautiful-racket-demo/jsonic-demo-3/scribblings/jsonic.scrbl index 7fb3c5a..a25a295 100644 --- a/beautiful-racket-demo/jsonic-demo-3/scribblings/jsonic.scrbl +++ b/beautiful-racket-demo/jsonic-demo-3/scribblings/jsonic.scrbl @@ -1,9 +1,35 @@ #lang scribble/manual +@(require (for-label json)) -@title[#:style 'toc]{@tt{jsonic}: because JSON is boring} - -@author[(author+email "Roger Freenbean" "roger@freenbean.com")] +@title{jsonic: because JSON is boring} +@author{Roxy Lexington} @defmodulelang[jsonic] -Let's document. \ No newline at end of file +@section{Introduction} + +This is a domain-specific language +that relies on the @racketmodname[json] library. + +In particular, the @racket[jsexpr->string] function. + +If we start with this: + +@verbatim|{ +#lang jsonic +[ + @$ 'null $@, + @$ (* 6 7) $@, + @$ (= 2 (+ 1 1)) $@ +] +}| + +We'll end up with this: + +@verbatim{ +[ + null, + 42, + true +] +} \ No newline at end of file