1 \ ** ficl/softwords/ficllocal.fr
2 \ ** stack comment style local syntax...
4 \ variables before the "--" are initialized in reverse order
5 \ from the stack. Those after the "--" are zero initialized
7 \ locstate: 0 = looking for -- or }}
14 : ?-- s" --" compare 0= ;
15 : ?}} s" }}" compare 0= ;
20 0 dup locals| nLocs locstate |
23 ?dup 0= abort" Error: out of text without seeing }}"
24 2dup 2dup ?-- -rot ?}} or 0=
29 ?-- if 1 to locstate endif
46 ; immediate compile-only