bayonne-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bayonne-devel] ccscript3: how to use # within quotes ?


From: David Sugar
Subject: Re: [Bayonne-devel] ccscript3: how to use # within quotes ?
Date: Mon, 09 Oct 2006 15:26:25 -0400
User-agent: Thunderbird 1.5.0.7 (X11/20060913)

If you want to suggest/do a patch for compiler.cpp/getToken I would be happy to add it in a new point release. I haven't had a chance to look at this behavior as yet. There is a lower level assumption that "#" is followed by a space or newline as well then it is considered a comment, where #x.. is assumed to be "valid". This was because at one time I was looking to have special # operations in script name parsing, and in fact there is special meaning for using #xxx in place of %xxx for a symbol name where the "value" will be used instead of the "string". This is also why using "xxx#123" produces invalid symbol, just like using "xxx%yyy" would substitute %yyy with it's value in a string.

Test Account wrote:
but it doesn't work when we add a parameter to a command
ex
mycommand myparam="#1"

should we modify compiler.cpp ScriptCompiler::getToken ?
any solution ?
Thanks


From: "Test Account" <address@hidden>
To: address@hidden
Subject: RE: [Bayonne-devel] ccscript3: how to use # within quotes ?
Date: Mon, 09 Oct 2006 15:10:00 +0000

putting \ infront of # within the quotes seems to do the trick



From: "Test Account" <address@hidden>
To: address@hidden
Subject: [Bayonne-devel] ccscript3: how to use # within quotes ?
Date: Mon, 09 Oct 2006 15:01:16 +0000

Hello,

With ccscript3 (1.0.9), it seems that is not possible anymore to use # within quotes
for instance
set %var "12#3"
with the builtin testscript, we get the error symbol 3 invalid
In the code, scrSet, getValue, getContent, it looks like it assumes that if there is a #, it must be a symbol, without taking the quotes into consideration.
How can we solve/bypass this problem ?
Thanks




_______________________________________________
Bayonne-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bayonne-devel




_______________________________________________
Bayonne-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bayonne-devel




_______________________________________________
Bayonne-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bayonne-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]