Brandon's Blog

3/18/2010

Lingua Ranka

I just implemented a formatting language that turns:

[AGO]+20;[VP97]<:100>%10;[VP97]<100:200>%20;[VP97]<200:>%30

into:

For all diesel volumes, apply a 20 TL/m3 rebate

For all V-Power volumes, apply a 10% discount to all volumes up to 100 m3, a 20% discount to volumes between 100 m3 and 200 m3, and a 30% discount to volumes in excess of 200 m3

I will regret this one day.