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 }}
12 : ?-- s" --" compare 0= ;
13 : ?}} s" }}" compare 0= ;
18 0 dup locals| nLocs locstate |
21 ?dup 0= abort" Error: out of text without seeing }}"
22 2dup 2dup ?-- -rot ?}} or 0=
27 ?-- if 1 to locstate endif
44 ; immediate compile-only