You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/jsonic-demo-3/scribblings/jsonic.scrbl

35 lines
475 B
Racket

#lang scribble/manual
@(require (for-label json))
@title{jsonic: because JSON is boring}
@author{Roxy Lexington}
@defmodulelang[jsonic]
@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
]
}