about summary refs log blame commit diff stats
path: root/lisp/js/l.html
blob: 8927607d366db9b5dc8eff4bf8628cbccf70ef9f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                            







                                                                
                                



                           
                                      


                           
                        



                                     
                                                
 


                                        


                 
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>lisp</title>
	<script src="lisp.js" type="text/javascript"></script>
</head>
<body>
	<script>
		// note the surrounding parentheses!
		// these are important and necessary (for now)
		const a = `(

		(print
			(concat "banana " "oatmeal " "waffels"))

		(def foo
			(+ 1 2))

		(print foo)

		(def bar
			(+ (+ 3 3) 3))

		(print bar)

		(fn bird
			(s t)
			(concat s t))

		(print 
			(bird "hello " "world"))

		)`;

		const ret = lisp.run(a);
	</script>
</body>
</html>