[sc34wg3] CTM should be context free

Xuân Baldauf xuan--2008.01--sc34wg3--isotopicmaps.org at baldauf.org
Sun Jan 27 20:54:38 EST 2008


Lars Heuer wrote:
> Hi Xuân,
>
> [...]
>   
>> Yes, especially as CTM as specified in the drafts so has not been
>> parseable by common regular expression parsers, either.. ;-)
>>     
>
> That's simply not true. You should give reasons if you think it is not
> parsable.
>
> Best regards,
> Lars
>   
Hi Lars,

here is one recent example, thanks to Steve:

Steve Pepper wrote:
> [...]
>
> You can if you want, though I wouldn't recommend it:
>
> 	donald = mailto:donald at duck.org {
> 	  - "Donald Duck";
> 	  - "Anders And" @norwegian;
> 	}
>
> This would work, unless you had declared a prefix called
> 'mailto', in which case the parser would try to interpret the
> IRI as a QName and you would get a syntax error.
>   
This is neither regular nor context free. IMNSHO, CTM should be a
context free language. We should not make CTM as hard as C++ in parsing,
both for humans and computers. I also do not see necessity for CTM being
not context free, does anybody else see such a necessity?
> Steve
>   


ciao,
Xuân.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.isotopicmaps.org/pipermail/sc34wg3/attachments/20080128/3059bb2c/attachment.htm 


More information about the sc34wg3 mailing list