Published
Edited
Oct 11, 2019
Insert cell
Insert cell
sl`(+ 1 2 3 4 5)`
Insert cell
Insert cell
// TODO export the util stuff together?
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pegjsWithContext = pegjsFactory({context: {parser: {nodes}}});
Insert cell
toAST`(+ hello 1)`
Insert cell
Insert cell
Insert cell
Insert cell
trace = runtimeStuff.trace // what's the syntax for exporting multiple?
Insert cell
//trace('1');
//trace('(if 1 2 3)');
//trace(`(if 1 (do 3 4) (do 1 2))`);
//trace('50.0');
//trace(`(+ 1 (if 3 4 50))`);
//trace(`(do (+ 1 (if 3 4 50)))`);
//trace(`(do (+ 1 (if 3 4 50)))`);
//trace(`((lambda (x y) (+ 1 2) (+ 3 4))`)
//trace(`(define a 1)
// a`)
//trace(`(define a (lambda (x y) (+ x y)))
// (a 1 2)`)
//trace(`(define a (lambda (x y) 1 2 (+ x y)))
// (a 2 3)`);
trace(`(define a 0)
(while (< a 10)
(define a (+ a 1)))
a`);
Insert cell
something = (string) => string[0].toLowerCase();
Insert cell
sl = (strings) => runtimeStuff.run(strings[0]);
Insert cell
sl`(+ 1 2 3)`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more