Folks,
I tweaked the autocoding a little bit to fit my needs and encountered some
minor glitches (I think):
All autocodings for the control structures such as "if", "ife", and so forth
are querying some variables via i..e. '(p "variable: "var)'. Shouldn't it be
an upper P? Lower P does not work at my installation; however, some
templates _are_ using upper P in the default.
Anyway, here's my real question regarding the autocoding for the loop
structure:
Following is my tweaked autocoding, which allows me creating ascending or
descending loops:
---------- 8< ----------8< ---------- 8< ---------- 8< ----------
(if (jde-parse-comment-or-quoted-p)
'(l "fori")
'(l '> "for (int " (P "variable: " var) "="
(P "starting bound: " lb)"; "
(s var)
"<"(P "ending bound: " ub)"; "
(s var) (P "increment (+/-): " incr) (s incr) ") "
(if jde-gen-k&r
()
'>'n)
"{"'>'n'>'r'n
"} // end of for (int " (s var) "=" (s lb)"; "
(s var) "<" (s ub) "; " (s var) (s incr)(s incr)")"'>'n'>)
)
---------- 8< ----------8< ---------- 8< ---------- 8< ----------
Looking into the code, you may notice that i query for the increment symbol,
which is usually '+' or '-'. But the current implementation allows _any_
character, even strings!
So, how can i delimit the allowed characters to '+' and '-'?
TIA and BR,
Michel
P.S.: Paul, thanks for the marvellous JDE package! :)