This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-17
Channels
- # beginners (52)
- # boot (116)
- # cider (21)
- # cljs-dev (44)
- # clojure (104)
- # clojure-dev (82)
- # clojure-greece (5)
- # clojure-japan (4)
- # clojure-nl (14)
- # clojure-russia (65)
- # clojure-serbia (3)
- # clojure-spec (38)
- # clojure-uk (9)
- # clojure-ukraine (1)
- # clojurescript (65)
- # clojurewest (1)
- # community-development (1)
- # core-logic (3)
- # cursive (5)
- # data-science (9)
- # datomic (13)
- # emacs (45)
- # euroclojure (1)
- # hoplon (2)
- # instaparse (23)
- # javascript (1)
- # jobs (2)
- # klipse (43)
- # leiningen (8)
- # lumo (25)
- # off-topic (7)
- # om (13)
- # om-next (3)
- # onyx (11)
- # pedestal (12)
- # planck (19)
- # proton (1)
- # re-frame (26)
- # reagent (26)
- # remote-jobs (13)
- # ring-swagger (23)
- # spacemacs (1)
- # untangled (3)
looking to parse / edit datomic schemas .. does anybody know if there has been some previous work on this? ( maybe my google-fu is off but web search has not helped! )
@raymcdermott please specify, do you want to alter your schema? parsing the edn schema format? what’s the case?
@nottmey parsing the edn schema - use case is to make an editor that will assist the generation of correct datomic schemas
Since the schema that you are transacting is essentially in a [{…} …]
edn format, you can use standard edn tools.
If your editor is written in ClojureScript, you can for example use https://clojuredocs.org/clojure.edn/read-string for parsing and https://clojuredocs.org/clojure.pprint/pprint for displaying the schema.
There may already be specs (https://clojure.org/about/spec) for validation, or you write your own.
@raymcdermott Something like https://github.com/shaunxcode/datomicism ? It is apparently written in Coffeescript though...
@nottmey I know you're trying to be helpful and I know the tech you describe - I wanted to know if there actually are specs or if there is a BNF for use in CLJ/S. Don't know is also a good answer ;-)
@stijn I don't like that editor but yes the basic material to parse the BNF of the schema (not just the EDN) is what I was looking for before I start working on it ... happy to reinvent the wheel or at least put a new type of tire on it but wondered if I also have to reinvent the rim, hub and spokes too
@raymcdermott well, at least we now know what you are searching for. 🙂
@raymcdermott I think vase has to have something in it: https://github.com/cognitect-labs/vase/blob/master/src/com/cognitect/vase.clj#L26