Using {} will be fine.
Thanks a lot
From: David Sugar <[EMAIL PROTECTED]>
To: Test Account <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [Bayonne-devel] ccscript3: how to use # within quotes ?
Date: Tue, 10 Oct 2006 12:14:37 -0400
In that particular case you should not use "string", but rather {literal}.
Hence:
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 <[EMAIL PROTECTED]>
To: Test Account <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [Bayonne-devel] ccscript3: how to use # within quotes ?
Date: Mon, 09 Oct 2006 15:26:25 -0400
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" <[EMAIL PROTECTED]>
To: [email protected]
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" <[EMAIL PROTECTED]>
To: [email protected]
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
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
<< dsugar.vcf >>
_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
<< dsugar.vcf >>
_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel