grojure 0.10.0

2013-11-06 Thread Gavin Grover
A new version of Grojure is available: https://github.com/gavingroovygrover/grojure It's alpha because the grammar is still changing between versions. You will probably find grojure useful in 2 ways: * as an example of using the Kern combinator parsing library (by Armando Blancas) for a more com

new grojure version

2013-05-18 Thread Gavin Grover
grojure 0.7.1 is out at https://github.com/gavingroovygrover/grojure Grojure is a Javalike syntactic shell for Clojure using Kern, Amando Blancas' port of Haskell's Parsec, a monadic parser combinator library. Because Grojure's grammar will expand and change, it's probably of most use to Clojur

Re: Why is using (not (empty? coll)) not idiomatic?

2013-05-12 Thread Gavin Grover
Or even define `if-not-empty` or `when-not-empty` without the double `not`. On Sunday, May 12, 2013 9:04:43 AM UTC+8, Jean Niklas L'orange wrote: > > On Saturday, May 11, 2013 11:28:34 PM UTC+2, Sean Corfield wrote: > >> you could just write [...] >> > > In some cases, this is even more readable:

Re: More idiomatic way to use map like this?

2013-05-02 Thread Gavin Grover
Is this code applying an amount due against a customer's list of credit cards? If so, there seems to be a bug. The third line should be: card.appliedBalance = min(due, card.balance) and the Clojure code I'd write is: (defrecord Card [balance applied-balance]) (defn apply-due-to-cards [[d

Re: [ANN] Grojure, a Java/C# syntax atop Clojure using Kern

2013-04-29 Thread Gavin Grover
us will depend less on the ASM lib. Your > parser illustrates how to use grammar actions for writing a very compact > one-pass translator; pretty cool. > > On Sunday, April 28, 2013 9:41:00 PM UTC-7, Gavin Grover wrote: >> >> Grojure is a Java/C#/Groovy-like syntax

[ANN] Grojure, a Java/C# syntax atop Clojure using Kern

2013-04-28 Thread Gavin Grover
Grojure is a Java/C#/Groovy-like syntax atop Clojure using the Kern parser combinator library. It's also of interest as an example grammar for those using Kern to build their own grammars. Available from https://github.com/gavingroovygrover/grojure Gavin "Groovy" Grover -- -- You received th