git.fiddlerwoaroof.com
Browse code

Cleanup, export EDN:PARSE

Ed Langley authored on 09/07/2018 06:11:47
Showing 3 changed files
... ...
@@ -332,8 +332,3 @@
332 332
                        (.s)
333 333
                        (.not (.item)))
334 334
                s)))
335
-
336
-(defun parse (input &optional (realizer 'fset))
337
-  (synthesize realizer
338
-              (read-edn input)))
339
-
... ...
@@ -7,7 +7,8 @@
7 7
            :fset-lossy
8 8
            :convert-primitive
9 9
            :synthesize-compound
10
-           :synthesize-tag))
10
+           :synthesize-tag
11
+           :parse))
11 12
 
12 13
 (defpackage :edn.generate
13 14
   (:use :cl)
... ...
@@ -1,12 +1,14 @@
1 1
 (in-package :edn)
2 2
 
3
-
4
-(defgeneric convert-primitive (implementation primitive))
5
-
6 3
 (defgeneric synthesize (implementation args))
7 4
 (defgeneric synthesize-compound (implementation discriminator args))
8 5
 (defgeneric synthesize-tag (implementation tag args))
9 6
 
7
+(defun parse (input &optional (realizer 'fset))
8
+  (synthesize realizer
9
+              (read-edn input)))
10
+
11
+
10 12
 (defmethod synthesize ((implementation symbol) discriminator)
11 13
   (synthesize (make-instance implementation) discriminator))
12 14