On Saturday 03 May 2008 5:59:33 am dorin vatavu wrote:
> ---------- Forwarded message ----------
> From: dorin vatavu <dorin.vatavu gmail.com>
> Date: Sat, May 3, 2008 at 12:20 PM
> Subject: "for" problem in 1.3v
> To: Eric Laffoon <eric kdewebdev.org>
>
>
> Hi,
> When I insert kommander function "for" from
editor gave
> <for("i", 1, 10) > or <for(i, 1,
10)>
> but I receive an error when run it.
> The correct syntax must be
> <for i = 1 to 10 do>
> Maybe could be modify the kommander-editor to insert
the correct syntax
> Have an nice day!
First of all there are no "<>" in either
parser. Second, the variable is set
as QString which means it offers to quote it because of the
way the Function
Browser is set up. As for the rest... It does show the
correct syntax for the
new parser in the help section on the right. However it
operates in standard
mode, which is to remove any " " and change any
function name syntax.
Unfortunately that is not what needs changed here.
Obviously this can't be fixed without a new release, but I'm
not sure it's
possible to fix without a special hack. The Function Browser
automatically
extracts information from where functions are registered. We
can register for
old, new or both parsers but it doesn't like the same
function for old and
new. I will have to discuss with Andras how to make this
work without having
to do a series of one off hacks.
Thanks for bringing this to my attention. I always just
write out for loops.
--
Eric Laffoon
Project Lead - kdewebdev module
_______________________________________________
Kommander mailing list
Kommander kdewebdev.org
http://mail.kdewebdev.org/mailman/listinfo/kommander
|