On Jul 19, 2007, at 10:44 PM, snacktime wrote:

> So today I finally had the time to sit down with racc and work on a
> natural language for defining recurring billing cycles.  The racc part
> was actually pretty easy once I got a handle on how yacc works, but
> it's the wording and syntax I'm struggling with a bit.
>
> I'm trying to include most of the different billing scenario's that
> I've seen used out there.  The basic flow is that you have different
> stages of a billing cycle.  The first stage is what to do when a
> customer first signs up.  You can charge them immediately, charge them
> in a number of days, or give them a free trial.  Subsequent stages
> define a billing cycle over a period of time.  You can create several
> stages where you can for example bill someone every month for 3
> months, then bill them every 6 months for 3 years, etc..
>
> What I'm having problems with is finding a way to use a similar syntax
> to describe two different scenarios.
>
> First we have the first stage which is something like this:
>
> charge X amount now|charge X amount in 5 days|charge nothing now

<snip>

seen this

   http://runt.rubyforge.org/

??

a @ http://drawohara.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama