Am 04.12.2010 um 03:16 schrieb Segher Boessenkool:
I don't really understand the code in forth/lib/preprocessor.fs but it looks as if some state is held in three variables. Also the [ELSE] case handling in the [IF] loop looks unintuitive...
It looks like a bastardised version of the example code in the standard. It only handles nested [IF] , not [IFDEF] etc. It wouldn't be hard to add it (just add and extra case, where it does a string compare for [IF] ).
Thanks for the hint, working nicely now!
Andreas