-
Notifications
You must be signed in to change notification settings - Fork 15
ClojureScript support #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Hi @prepor thanks for all the work. I will review the code as soon as I can and will take it from there. What I've browsed looks good. |
I wanted to try a few things at the REPL but found some things I don't know how handle yet.
This is fine:
But this fails:
This is a good chance for me to learn some basic ClojureScript. Will try to fix those errors. |
I'm sorry, for this far from ideal PR. I've fixed bunch of issues since the initial commit. |
Cool. I'm just going to to through the examples in the wiki and the sample programs to make sure things work fine on both platforms. |
I figured I had to prepare my build with this:
Looks like we're almost there. In addition, I ran examples from the wiki and it was mostly just fine (primitive and combinators), except for the
I'll continue to look into this as time allows. |
@prepor The failing tests just need to have a target string with embedded new lines, so comparing againts this string will fix them:
My problem with dev:cljs.user=> (k/run (k/bind [d k/digit l k/letter] (k/return [d l])) "1A")
nil
dev:cljs.user=> ["1" "A"] I tried the sample programs and it was mostly fine, except for the i18n part. Because of the separation between It's simpler for the user if the code of this file won't require any changes https://github.com/blancas/kern/blob/master/src/main/resources/local.clj The result should be:
|
Ok. We can use goog.string.format for string formatting. Committed |
Hi, what's the status of this PR? I really would like the cljs support. |
@rbuchmann It works for me and you can try to play with it ([ru.prepor/kern "1.2.0-SNAPSHOT"]). I have implemented the relatively complex parser and there are no known issues. |
@prepor Awesome, I'll try your fork then. |
@prepor Sorry, dude. I've been in a crunch at work and other things. I'll get back to this when I can. |
Hey, any status on merging this? |
1 similar comment
Hey, any status on merging this? |
@jakeisnt I got nowhere because I found clojurescript to be rough-going and quite frustrating as dual-language development, the whole js thing, and the tooling; the opposite of my experience coding kern for the fun of it. I recommend you guys fork this and take it from here. |
Hello!
I think it's cool to have full featured parser library for both platforms. Actually, the biggest change is midje removing and code style changes (:use :all is a bad practice and cljs even doesn't support it).