Browse code
Cleanup, export EDN:PARSE
Ed Langley authored on 09/07/2018 06:11:47
Showing 3 changed files
Showing 3 changed files
... | ... |
@@ -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 |
|