[opentheory-users] quoted strings
Ramana Kumar
ramana.kumar at gmail.com
Mon Jan 10 19:12:17 UTC 2011
On Mon, Jan 10, 2011 at 6:53 PM, Joe Hurd <joe at gilith.com> wrote:
> Hi Ramana,
>
> I've tried to be clearer in the article specification what the format
> is for strings:
>
> http://www.gilith.com/research/opentheory/article.html#nameCommand
>
> Could you take a look and see if that answers your questions?
Honestly, that is still cryptic to me, although it's quite possible
you're saying everything you need to...
First of all, what does it mean to obtain a string by matching a
regular expression?
I thought matching was a predicate on regular expressions and strings,
i.e. regex -> string -> bool.
So are you just trying to say the match will succeed?
And then you're left with the string, you discard the quotes, but what
about the slashes inside the string?
Unless matching a regex means something more special that would deal
with the slashes...
>
> Cheers,
>
> Joe
>
> On Mon, Jan 10, 2011 at 7:21 AM, Ramana Kumar <ramana.kumar at gmail.com> wrote:
>> It appears that the quoted string command allows (requires) special
>> characters to be escaped.
>> For example, bool.art from bool-1.0 contains the following line, literally:
>>
>> "Data.Bool./\\"
>>
>> Is that name 'Data.Bool./\' or 'Data.Bool./\\'?
>>
>> The article format specification is at best unclear about this.
>> Reading the specification literally, it looks like you get a command
>> "s" (the quotation marks are literal characters and between them is a
>> variable) and interpret it as Name s, not Name (parse_as_string s). Of
>> course it does say that the variable stands for a string, and maybe
>> that's supposed to be the clue that it might contain character
>> escapes...
>>
>> _______________________________________________
>> opentheory-users mailing list
>> opentheory-users at gilith.com
>> http://www.gilith.com/opentheory/mailing-list
>>
>
> _______________________________________________
> opentheory-users mailing list
> opentheory-users at gilith.com
> http://www.gilith.com/opentheory/mailing-list
>
More information about the opentheory-users
mailing list