|
From: | David Sugar |
Subject: | Re: [Bayonne-devel] ccscript3: how to use # within quotes ? |
Date: | Tue, 10 Oct 2006 12:14:37 -0400 |
User-agent: | Thunderbird 1.5.0.7 (X11/20060913) |
collect exit={#12} ingnore={34} .... Anything within a {} is non-parsed, though it does not extend multi-line. Test Account wrote:
But how does it work with the new Bayonne ? with instructions like collect exit="#12" ignore="34" ... It will fail also, no ?do you have a description (BNF grammar maybe) of what you want to parse in compiler.cpp/getToken ?, just looking at the code it's not obvious.From: David Sugar <address@hidden> To: Test Account <address@hidden> CC: address@hidden Subject: Re: [Bayonne-devel] ccscript3: how to use # within quotes ? Date: Mon, 09 Oct 2006 15:26:25 -0400If 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 ? ThanksFrom: "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 trickFrom: "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 quotesfor instance set %var "12#3" with the builtin testscript, we get the error symbol 3 invalidIn 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<< dsugar.vcf >>_______________________________________________ Bayonne-devel mailing list address@hidden http://lists.gnu.org/mailman/listinfo/bayonne-devel
[Prev in Thread] | Current Thread | [Next in Thread] |