[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scheme State

From: Ralph Little
Subject: Scheme State
Date: Fri, 29 Sep 2006 09:08:57 +0000 (UTC)
User-agent: Loom/3.14 (

I'm doing some Scheme to parse music structures, but I'm finding that I need to
save and update some state information as I parse the tree.

I could set aside some globally scoped structure that is not passed around the
various calls while I'm parsing the tree but this feels wrong.

Could some Scheme guru out there point me in the right direction?

As a hint to what I'm up to, I'm parsing through bars of music and maintaining a
list of accidentals since the beginning of the bar so that I can implement the
"default" accidental style. 

Any help would be really appreciated!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]