define
fac x
if
= x 0
1
* x
fac
- x 1
Of course, you can put normal LISP-expressios in the middle of
sugar-expressions! Anyway, there is a special symbol, group, which, if
written first at a line, is removed. This allows for example the
following:
let group foo + 1 2 bar + 3 4 + foo bar
I've written a quick-and-dirty sugar-display-funcion that displays Scheme structures in Sugar-format, suitable for the suga-reader. Atm, it is pretty braindead and naive, but works. It is available here.
After creating Sugar, I recieved an e-mail from Darrell Johnson, who had been inspired by Sugar to create more or less the same thing, but for C++(!), cugar.