finish scrbl
parent
46f389f64d
commit
11dd0885f6
@ -1,9 +1,35 @@
|
|||||||
#lang scribble/manual
|
#lang scribble/manual
|
||||||
|
@(require (for-label json))
|
||||||
|
|
||||||
@title[#:style 'toc]{@tt{jsonic}: because JSON is boring}
|
@title{jsonic: because JSON is boring}
|
||||||
|
@author{Roxy Lexington}
|
||||||
@author[(author+email "Roger Freenbean" "roger@freenbean.com")]
|
|
||||||
|
|
||||||
@defmodulelang[jsonic]
|
@defmodulelang[jsonic]
|
||||||
|
|
||||||
Let's document.
|
@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
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue