Segher Boessenkool | 4 Dec 2010 03:16

Re: Nested [IFDEF]s not working?

> 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] ).

Segher


Gmane