<!>Sound Change Appliers (2014-08-29 14:34:37)
Sound Change Appliers
Anthologica Universe Atlas / Forums / Miscellaneria / Sound Change Appliers / <!>Sound Change Appliers (2014-08-29 14:34:37)

? MorrĂ­gan Witch Queen of New York
posts: 303
, Marquise message
I have the processing model set up to use file-handles already.

right now you load one lexicon and it gets run through DEFAULT. But the lexicons are actually stored in a map, even though there is only one of them right now. I'm interesting in letting users do a couple of things, like:
EXECUTE other rule files, which just does what that rule file does in a separate process;
IMPORT other rule files, which basically inserts those rules into your current rule file;
OPEN "some_lexicon.txt" (as) FILEHANDLE to load the contents of that file into a lexicon stored against the file-handle;
WRITE FILEHANDLE (as) "some_output1.txt" to save the current state of the lexicon to the specified file, but leave the handle open;
CLOSE FILEHANDLE (as) "some_output2.txt" to close the file-handle and save the lexicon to the specified file.