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
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
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:
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
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
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